Issues starting up Titan embedded with cassandra + elastic search remote

253 views
Skip to first unread message

Brian

unread,
Jul 23, 2013, 5:32:05 PM7/23/13
to aureliu...@googlegroups.com
I've followed the instructions to set https://github.com/thinkaurelius/titan/wiki/Using-Elastic-Search and verified I can access my elasticsearch node from my cassandra node, yet I still get the following error when I start titan:

13/07/23 21:22:19 INFO elasticsearch.plugins: [Gemini] loaded [], sites []
13/07/23 21:22:20 INFO es.ElasticSearchIndex: Configured remote host: 33.33.33.36 : 9300
13/07/23 21:22:20 INFO es.ElasticSearchIndex: Configured remote host:  : 9300
13/07/23 21:22:20 ERROR service.CassandraDaemon: Exception in thread Thread[main,5,main]
java.lang.IllegalArgumentException: Could not instantiate implementation: com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndex
    at com.thinkaurelius.titan.diskstorage.Backend.getImplementationClass(Backend.java:274)
    at com.thinkaurelius.titan.diskstorage.Backend.getIndexes(Backend.java:245)
    at com.thinkaurelius.titan.diskstorage.Backend.<init>(Backend.java:98)
    at com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration.getBackend(GraphDatabaseConfiguration.java:440)
    at com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.<init>(StandardTitanGraph.java:67)
    at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:40)
    at com.thinkaurelius.titan.tinkerpop.rexster.RexsterTitanServer.start(RexsterTitanServer.java:70)
    at com.thinkaurelius.titan.tinkerpop.rexster.RexsterTitanServer.startDaemon(RexsterTitanServer.java:80)
    at com.thinkaurelius.titan.tinkerpop.rexster.RexsterTitanServer.main(RexsterTitanServer.java:118)
Caused by: java.lang.reflect.InvocationTargetException
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
    at com.thinkaurelius.titan.diskstorage.Backend.getImplementationClass(Backend.java:263)
    ... 8 more
Caused by: org.elasticsearch.client.transport.NoNodeAvailableException: No node available
    at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:202)
    at org.elasticsearch.client.transport.support.InternalTransportClusterAdminClient.execute(InternalTransportClusterAdminClient.java:85)
    at org.elasticsearch.client.support.AbstractClusterAdminClient.health(AbstractClusterAdminClient.java:83)
    at org.elasticsearch.action.admin.cluster.health.ClusterHealthRequestBuilder.doExecute(ClusterHealthRequestBuilder.java:93)
    at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:62)
    at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:57)
    at com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndex.<init>(ElasticSearchIndex.java:149)
    ... 13 more
13/07/23 21:22:20 INFO thrift.ThriftServer: Stop listening to thrift clients
13/07/23 21:22:20 INFO gms.Gossiper: Announcing shutdown
13/07/23 21:22:21 INFO net.MessagingService: Waiting for messaging service to quiesce
13/07/23 21:22:21 INFO net.MessagingService: MessagingService shutting down server thread.



my properties file:


storage.backend=embeddedcassandra
storage.cassandra-config-dir=file:///etc/cassandra/cassandra.yaml

storage.index.search.backend=elasticsearch
storage.index.search.client-only=true
storage.index.search.local-mode=false
storage.index.search.hostname=33.33.33.36,


Anyone have any ideas I can try out?

Thanks,
Brian

 

Antonio VonG

unread,
Jul 24, 2013, 12:43:18 AM7/24/13
to aureliu...@googlegroups.com
You should post your configuration files.

Brian

unread,
Jul 24, 2013, 9:37:46 AM7/24/13
to aureliu...@googlegroups.com
I ended up fixing the issue by overriding the default value, 0.0.0.0, for network.host in elasticsearch.yml with the private network ip address for that node (I'm testing a cluster setup via Vagrant).

Surendra Pratap

unread,
Jun 11, 2018, 7:50:03 AM6/11/18
to Aurelius
Hi Can,

Please share the config file and changes done for the same as I'm facing the same issue.
Reply all
Reply to author
Forward
0 new messages