Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>As a first note, <code>embeddedcassandra</code> is no longer what you want in Titan 0.4.0. You can read more about that <a href="https://groups.google.com/forum/#!searchin/aureliusgraphs/embeddedcassandra/aureliusgraphs/EasJTTkDtfY/sPcrWLT9JKsJ">here</a>. In the Titan Server distribution for 0.4.0 cassandra and rexster run in separate JVMs and should generally run out-of-the-box from the distribution. </p> <p>Also note, that I would say it is recommended to create types/indices by way of the Gremlin Console directly. I like being "close to the graph" when working with <code>TypeMaker</code>. You can read more about such production implementation patterns <a href="http://thinkaurelius.com/2013/07/25/developing-a-domain-specific-language-in-gremlin/">here</a>.</p> <p>As for your specific problem, your issue helped uncover a hole in the documentation (which has since been <a href="https://github.com/thinkaurelius/titan/wiki/Rexster-Graph-Server#getting-started-quickly-with-titan-serverzip">remedied</a>). To ensure that elasticsearch gets started with Titan Server make sure that you do:</p> <pre><code>bin/titan.sh -c cassandra-es start </code></pre> <p>At this point you can connect via Rexster to construct and query elasticsearch indices. Here's an example from Rexster Console:</p> <pre><code>rexster[groovy]&gt; g = rexster.getGraph("graph") ==&gt;titangraph[cassandra:null] rexster[groovy]&gt; g.makeKey("name").dataType(String.class).indexed("search",Vertex.class).make() ==&gt;v[74] rexster[groovy]&gt; g.commit() ==&gt;null rexster[groovy]&gt; g.addVertex([name:'marko']) ==&gt;v[4] rexster[groovy]&gt; g.addVertex([name:'stephen']) ==&gt;v[8] rexster[groovy]&gt; g.commit() ==&gt;null rexster[groovy]&gt; g.V.has('name',PREFIX,'mar') ==&gt;v[4] </code></pre> <p>Note that by starting Titan Server in this mode, elasticsearch is running in <a href="https://github.com/thinkaurelius/titan/wiki/Using-Elastic-Search#elasticsearch-embedded-configuration">embedded mode</a> to the Titan instance started by Rexster which means that:</p> <blockquote> <p>Elasticsearch will not be accessible from outside of this particular Titan instance, i.e., remote connections will not be possible</p> </blockquote> <p>So if you are trying to connect via a Titan Gremlin Console, I don't believe it will work. Connections have to run through Rexster.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload