Getting Error When Setting standalone(Remote) Elastic Search Index using Berkley DB.

22 views
Skip to first unread message

Surendra Pratap

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

Pleae help in connecting a standalone/remote ES instance suing Titan-BerkleyDB. Local configuration is working. Please refer the error and configuration file.

-------------------------------------------titan-berkeleyje-es.properties---------------

storage.backend=berkeleyje
storage.hostname=localhost
storage.directory=../db/berkeley


#ES Remote Mode
index.search.backend=elasticsearch
index.search.hostname=localhost
index.search.elasticsearch.client-only=true
index.search.elasticsearch.local-mode=false

---------------------------------------------------------------------------------------------------
 INFO [main] (InternalNode.java:141) - [Mop Man] version[1.5.1], pid[21648], build[5e38401/2015-04-09T13:41:35Z]
 INFO [main] (InternalNode.java:143) - [Mop Man] initializing ...
 INFO [main] (PluginsService.java:151) - [Mop Man] loaded [], sites []
 INFO [main] (InternalNode.java:213) - [Mop Man] initialized
 INFO [main] (InternalNode.java:232) - [Mop Man] starting ...
 INFO [main] (TransportService.java:155) - [Mop Man] bound_address {inet[/0:0:0:0:0:0:0:0:9301]}, publish_address {inet[/10.203.100.125:9301]}
 INFO [main] (DiscoveryService.java:85) - [Mop Man] elasticsearch/hRPATKqdQTOxNg52IzKYEA
 INFO [elasticsearch[Mop Man][clusterService#updateTask][T#1]] (InternalClusterService.java:437) - [Mop Man] new_master [Mop Man][hRPATKqdQTOxNg52IzKYEA][WKWIN1612839][inet[/10.203.100.125:9301]], reason: zen-disco-join (elected_as_master)
 INFO [elasticsearch[Mop Man][clusterService#updateTask][T#1]] (GatewayService.java:272) - [Mop Man] recovered [0] indices into cluster_state
 INFO [main] (HttpServer.java:91) - [Mop Man] bound_address {inet[/0:0:0:0:0:0:0:0:9201]}, publish_address {inet[/10.203.100.125:9201]}
 INFO [main] (InternalNode.java:267) - [Mop Man] started
 INFO [main] (ReflectiveConfigOptionLoader.java:159) - Loaded and initialized config classes: 7 OK out of 12 attempts in PT0.023S
 INFO [main] (GraphDatabaseConfiguration.java:1358) - Set default timestamp provider MICRO
 INFO [main] (GraphDatabaseConfiguration.java:1518) - Generated unique-instance-id=0acb647d21648-WKWIN16128391
 INFO [main] (Backend.java:459) - Configuring index [search]
 INFO [main] (PluginsService.java:151) - [Briquette] loaded [], sites []
 INFO [main] (ElasticSearchIndex.java:354) - Configured remote host: localhost : 9300
 INFO [elasticsearch[Briquette][generic][T#2]] (TransportClientNodesService.java:444) - [Briquette] failed to get local cluster state for [#transport#-1][WKWIN1612839][inet[localhost/127.0.0.1:9300]], disconnecting...
org.elasticsearch.transport.NodeDisconnectedException: [][inet[localhost/127.0.0.1:9300]][cluster:monitor/state] disconnected
Exception in thread "main" java.lang.IllegalArgumentException: Could not instantiate implementation: com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndex
at com.thinkaurelius.titan.util.system.ConfigurationUtil.instantiate(ConfigurationUtil.java:55)
at com.thinkaurelius.titan.diskstorage.Backend.getImplementationClass(Backend.java:473)
at com.thinkaurelius.titan.diskstorage.Backend.getIndexes(Backend.java:460)
at com.thinkaurelius.titan.diskstorage.Backend.<init>(Backend.java:147)
at com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration.getBackend(GraphDatabaseConfiguration.java:1805)
at com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.<init>(StandardTitanGraph.java:123)
at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:94)
at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:74)
at com.tutorialacademy.ds.titan.TitanStart.main(TitanStart.java:37)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.thinkaurelius.titan.util.system.ConfigurationUtil.instantiate(ConfigurationUtil.java:44)
... 8 more
Caused by: org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: []
at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:279)
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:198)
at org.elasticsearch.client.transport.support.InternalTransportClusterAdminClient.execute(InternalTransportClusterAdminClient.java:86)
at org.elasticsearch.client.support.AbstractClusterAdminClient.health(AbstractClusterAdminClient.java:127)
at org.elasticsearch.action.admin.cluster.health.ClusterHealthRequestBuilder.doExecute(ClusterHealthRequestBuilder.java:92)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:91)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:65)
at com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndex.<init>(ElasticSearchIndex.java:201)
... 13 more



Reply all
Reply to author
Forward
0 new messages