falcon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Satish Mittal (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FALCON-428) Unable to start both prism and falcon server from same installation directory
Date Fri, 02 May 2014 19:06:16 GMT

    [ https://issues.apache.org/jira/browse/FALCON-428?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13988102#comment-13988102
] 

Satish Mittal commented on FALCON-428:
--------------------------------------

>From logs, it appears the error occurs because of failure to initialize MetadataMappingService.

{noformat}
2014-05-02 18:44:02,845 INFO  - [main:] ~ Initializing service : org.apache.falcon.metadata.MetadataMappingService
(ServiceInitializer:44)
2014-05-02 18:44:02,849 INFO  - [main:] ~ Initializing graph db (MetadataMappingService:97)
2014-05-02 18:44:03,224 FATAL - [main:] ~ Failed to initialize service org.apache.falcon.metadata.MetadataMappingService
(ServiceInitializer:48)
java.lang.RuntimeException: GraphFactory could not instantiate this Graph implementation [com.thinkaurelius.titan.core.TitanFactory].
        at com.tinkerpop.blueprints.GraphFactory.open(GraphFactory.java:48)
        at org.apache.falcon.metadata.MetadataMappingService.initializeGraphDB(MetadataMappingService.java:100)
        at org.apache.falcon.metadata.MetadataMappingService.init(MetadataMappingService.java:77)
        at org.apache.falcon.service.ServiceInitializer.initialize(ServiceInitializer.java:46)
        at org.apache.falcon.listener.ContextStartupListener.contextInitialized(ContextStartupListener.java:55)
        at org.mortbay.jetty.handler.ContextHandler.startContext(ContextHandler.java:549)
        at org.mortbay.jetty.servlet.Context.startContext(Context.java:136)
        at org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1282)
        at org.mortbay.jetty.handler.ContextHandler.doStart(ContextHandler.java:518)
        at org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:499)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.mortbay.jetty.handler.HandlerWrapper.doStart(HandlerWrapper.java:130)
        at org.mortbay.jetty.Server.doStart(Server.java:224)
        at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
        at org.apache.falcon.util.EmbeddedServer.start(EmbeddedServer.java:50)
        at org.apache.falcon.Main.main(Main.java:97)
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:616)
        at com.tinkerpop.blueprints.GraphFactory.open(GraphFactory.java:43)
        ... 15 more
Caused by: java.lang.IllegalArgumentException: Could not instantiate implementation: com.thinkaurelius.titan.diskstorage.berkeleyje.BerkeleyJEStoreManager
        at com.thinkaurelius.titan.diskstorage.Backend.instantiate(Backend.java:355)
        at com.thinkaurelius.titan.diskstorage.Backend.getImplementationClass(Backend.java:367)
        at com.thinkaurelius.titan.diskstorage.Backend.getStorageManager(Backend.java:311)
        at com.thinkaurelius.titan.diskstorage.Backend.<init>(Backend.java:121)
        at com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration.getBackend(GraphDatabaseConfiguration.java:1163)
        at com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.<init>(StandardTitanGraph.java:75)
        at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:40)
        ... 20 more
Caused by: java.lang.reflect.InvocationTargetException
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
        at com.thinkaurelius.titan.diskstorage.Backend.instantiate(Backend.java:344)
        ... 26 more
Caused by: com.thinkaurelius.titan.diskstorage.PermanentStorageException: Error during BerkeleyJE
initialization:
        at com.thinkaurelius.titan.diskstorage.berkeleyje.BerkeleyJEStoreManager.initialize(BerkeleyJEStoreManager.java:74)
        at com.thinkaurelius.titan.diskstorage.berkeleyje.BerkeleyJEStoreManager.<init>(BerkeleyJEStoreManager.java:42)
        ... 31 more
Caused by: com.sleepycat.je.EnvironmentLockedException: (JE 5.0.73) /home/satish/install/falcon-prism/data/graphdb
The environment cannot be locked for single writer access. ENV_LOCKED: The je.lck file could
not be locked. Environment is invalid and must be closed.
        at com.sleepycat.je.log.FileManager.<init>(FileManager.java:371)
        at com.sleepycat.je.dbi.EnvironmentImpl.<init>(EnvironmentImpl.java:453)
        at com.sleepycat.je.dbi.EnvironmentImpl.<init>(EnvironmentImpl.java:382)
        at com.sleepycat.je.dbi.DbEnvPool.getEnvironment(DbEnvPool.java:178)
        at com.sleepycat.je.Environment.makeEnvironmentImpl(Environment.java:246)
        at com.sleepycat.je.Environment.<init>(Environment.java:227)
        at com.sleepycat.je.Environment.<init>(Environment.java:170)
        at com.thinkaurelius.titan.diskstorage.berkeleyje.BerkeleyJEStoreManager.initialize(BerkeleyJEStoreManager.java:70)
        ... 32 more
2014-05-02 18:44:03,226 ERROR - [main:] ~ Failed startup of context org.mortbay.jetty.webapp.WebAppContext@41f6321{/,/home/satish/install/falcon-prism/server/webapp/prism}
(log:87)
{noformat}

As part of initializing MetadataMappingService, Titan graph factory open initializes its BerkeleyJEStoreManager
which tries to acquire single writer access lock over the file system by creating je.lck file.
However the first server has already created .lck file at same location by this time.

> Unable to start both prism and falcon server from same installation directory
> -----------------------------------------------------------------------------
>
>                 Key: FALCON-428
>                 URL: https://issues.apache.org/jira/browse/FALCON-428
>             Project: Falcon
>          Issue Type: Bug
>    Affects Versions: 0.5
>            Reporter: Satish Mittal
>             Fix For: 0.5
>
>
> With latest trunk, set falcon in distributed mode where both prism and falcon server
were started from same installation directory. The server that is started first comes up properly.
However the second server isn't able to initialize its context properly, thereby not able
to handle any requests.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message