Skip to content

Instantly share code, notes, and snippets.

@zcox
Last active December 21, 2015 22:48
Show Gist options
  • Select an option

  • Save zcox/6377426 to your computer and use it in GitHub Desktop.

Select an option

Save zcox/6377426 to your computer and use it in GitHub Desktop.
val conf = new BaseConfiguration()
conf.setProperty("storage.backend","cassandra")
conf.setProperty("storage.hostname","127.0.0.1")
conf.setProperty("storage.index.search.backend", "elasticsearch")
conf.setProperty("storage.index.search.hostname", "127.0.0.1:9200")
conf.setProperty("storage.index.search.client-only", true)
conf.setProperty("storage.index.search.local-mode", false)
val graph = TitanFactory.open(conf)
app: 2013-08-29 07:33:51,762 INFO c.n.a.c.i.CountingConnectionPoolMonitor - AddHost: 127.0.0.1
app: 2013-08-29 07:33:51,927 INFO c.n.a.c.i.ConnectionPoolMBeanManager - Registering mbean: com.netflix.MonitoredResources:type=ASTYANAX,name=KeyspaceTitanConnectionPool,ServiceType=connectionpool
app: 2013-08-29 07:33:51,927 INFO c.n.a.c.i.CountingConnectionPoolMonitor - AddHost: 127.0.0.1
app: 2013-08-29 07:33:52,115 INFO c.t.titan.diskstorage.Backend - Configuring index [search] based on:
app: backend: elasticsearch
app: hostname: 127.0.0.1:9200
app: client-only: true
app: local-mode: false
app:
app: 2013-08-29 07:33:52,310 INFO org.elasticsearch.plugins - [Josten, Conrad] loaded [], sites []
app: 2013-08-29 07:33:53,307 INFO c.t.t.d.es.ElasticSearchIndex - Configured remote host: 127.0.0.1 : 9200
app: 2013-08-29 07:33:58,402 INFO org.elasticsearch.client.transport - [Josten, Conrad] failed to get local cluster state for [#transport#-1][inet[/127.0.0.1:9200]], disconnecting...
app: org.elasticsearch.transport.ReceiveTimeoutTransportException: [][inet[/127.0.0.1:9200]][cluster/state] request_id [0] timed out after [5001ms]
app: at org.elasticsearch.transport.TransportService$TimeoutHandler.run(TransportService.java:342) [elasticsearch-0.90.0.jar:na]
app: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146) [na:1.6.0_27]
app: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.6.0_27]
app: at java.lang.Thread.run(Thread.java:679) [na:1.6.0_27]
app[ERROR]: java.lang.IllegalArgumentException: Could not instantiate implementation: com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndex
app[ERROR]: at com.thinkaurelius.titan.diskstorage.Backend.getImplementationClass(Backend.java:274)
app[ERROR]: at com.thinkaurelius.titan.diskstorage.Backend.getIndexes(Backend.java:245)
app[ERROR]: at com.thinkaurelius.titan.diskstorage.Backend.<init>(Backend.java:98)
app[ERROR]: at com.thinkaurelius.titan.graphdb.configuration.GraphDatabaseConfiguration.getBackend(GraphDatabaseConfiguration.java:440)
app[ERROR]: at com.thinkaurelius.titan.graphdb.database.StandardTitanGraph.<init>(StandardTitanGraph.java:67)
app[ERROR]: at com.thinkaurelius.titan.core.TitanFactory.open(TitanFactory.java:40)
app[ERROR]: at com.pongr.Main$delayedInit$body.apply(Main.scala:127)
app[ERROR]: at scala.Function0$class.apply$mcV$sp(Function0.scala:34)
app[ERROR]: at scala.runtime.AbstractFunction0.apply$mcV$sp(AbstractFunction0.scala:12)
app[ERROR]: at scala.App$$anonfun$main$1.apply(App.scala:60)
app[ERROR]: at scala.App$$anonfun$main$1.apply(App.scala:60)
app[ERROR]: at scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
app[ERROR]: at scala.collection.immutable.List.foreach(List.scala:45)
app[ERROR]: at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:30)
app[ERROR]: at scala.App$class.main(App.scala:60)
app[ERROR]: at com.pongr.Main$.main(Main.scala:78)
app[ERROR]: at com.pongr.Main.main(Main.scala)
app[ERROR]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
app[ERROR]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
app[ERROR]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
app[ERROR]: at java.lang.reflect.Method.invoke(Method.java:616)
app[ERROR]: at scala.tools.nsc.util.ScalaClassLoader$$anonfun$run$1.apply(ScalaClassLoader.scala:78)
app[ERROR]: at scala.tools.nsc.util.ScalaClassLoader$class.asContext(ScalaClassLoader.scala:24)
app[ERROR]: at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.asContext(ScalaClassLoader.scala:88)
app[ERROR]: at scala.tools.nsc.util.ScalaClassLoader$class.run(ScalaClassLoader.scala:78)
app[ERROR]: at scala.tools.nsc.util.ScalaClassLoader$URLClassLoader.run(ScalaClassLoader.scala:101)
app[ERROR]: at scala.tools.nsc.ObjectRunner$.run(ObjectRunner.scala:33)
app[ERROR]: at scala.tools.nsc.ObjectRunner$.runAndCatch(ObjectRunner.scala:40)
app[ERROR]: at scala.tools.nsc.MainGenericRunner.runTarget$1(MainGenericRunner.scala:56)
app[ERROR]: at scala.tools.nsc.MainGenericRunner.process(MainGenericRunner.scala:80)
app[ERROR]: at scala.tools.nsc.MainGenericRunner$.main(MainGenericRunner.scala:89)
app[ERROR]: at scala.tools.nsc.MainGenericRunner.main(MainGenericRunner.scala)
app[ERROR]: Caused by: java.lang.reflect.InvocationTargetException
app[ERROR]: at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
app[ERROR]: at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
app[ERROR]: at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
app[ERROR]: at java.lang.reflect.Constructor.newInstance(Constructor.java:532)
app[ERROR]: at com.thinkaurelius.titan.diskstorage.Backend.getImplementationClass(Backend.java:263)
app[ERROR]: ... 31 more
app[ERROR]: Caused by: org.elasticsearch.client.transport.NoNodeAvailableException: No node available
app[ERROR]: at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:202)
app[ERROR]: at org.elasticsearch.client.transport.support.InternalTransportClusterAdminClient.execute(InternalTransportClusterAdminClient.java:85)
app[ERROR]: at org.elasticsearch.client.support.AbstractClusterAdminClient.health(AbstractClusterAdminClient.java:83)
app[ERROR]: at org.elasticsearch.action.admin.cluster.health.ClusterHealthRequestBuilder.doExecute(ClusterHealthRequestBuilder.java:93)
app[ERROR]: at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:62)
app[ERROR]: at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:57)
app[ERROR]: at com.thinkaurelius.titan.diskstorage.es.ElasticSearchIndex.<init>(ElasticSearchIndex.java:149)
app[ERROR]: ... 36 more
7335 [main] INFO com.thinkaurelius.titan.diskstorage.Backend - Configuring index [search] based on:
backend: elasticsearch
directory: /home/zcox/dev/cassandra1/elasticsearch
client-only: false
local-mode: true
7757 [main] INFO org.elasticsearch.node - [Pip the Troll] {0.90.0}[12004]: initializing ...
7765 [main] INFO org.elasticsearch.plugins - [Pip the Troll] loaded [], sites []
10965 [main] INFO org.elasticsearch.node - [Pip the Troll] {0.90.0}[12004]: initialized
10965 [main] INFO org.elasticsearch.node - [Pip the Troll] {0.90.0}[12004]: starting ...
10973 [main] INFO org.elasticsearch.transport - [Pip the Troll] bound_address {local[1]}, publish_address {local[1]}
10979 [elasticsearch[Pip the Troll][clusterService#updateTask][T#1]] INFO org.elasticsearch.cluster.service - [Pip the Troll] new_master [Pip the Troll][1][local[1]]{local=true}, reason: local-disco-initial_connect(master)
10984 [main] INFO org.elasticsearch.discovery - [Pip the Troll] elasticsearch/1
11180 [main] INFO org.elasticsearch.http - [Pip the Troll] bound_address {inet[/0:0:0:0:0:0:0:0:9200]}, publish_address {inet[/192.168.0.2:9200]}
11180 [main] INFO org.elasticsearch.node - [Pip the Troll] {0.90.0}[12004]: started
12219 [elasticsearch[Pip the Troll][clusterService#updateTask][T#1]] INFO org.elasticsearch.gateway - [Pip the Troll] recovered [1] indices into cluster_state
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment