Skip to content

Commit

Permalink
added cassandra.local and hbase.local, created bin directory and move…
Browse files Browse the repository at this point in the history
…d gremlin bin and shell scripts into it.
  • Loading branch information
okram committed Jun 13, 2012
1 parent f5afcc3 commit c2e1a66
Show file tree
Hide file tree
Showing 9 changed files with 27 additions and 10 deletions.
2 changes: 2 additions & 0 deletions bin/cassandra.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
storage.backend=cassandra
storage.hostname=127.0.0.1
2 changes: 1 addition & 1 deletion gremlin.bat → bin/gremlin.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
:: Windows launcher script for Gremlin
@echo off

cd %CD%\target\
cd %CD%\..\target\

set TARGET=

Expand Down
3 changes: 3 additions & 0 deletions bin/gremlin.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

`dirname $0`/../target/titan-*-standalone/bin/gremlin.sh $@
2 changes: 2 additions & 0 deletions bin/hbase.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
storage.backend=hbase
storage.hostname=127.0.0.1
3 changes: 0 additions & 3 deletions gremlin.sh

This file was deleted.

10 changes: 8 additions & 2 deletions src/assembly/distribution.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,14 @@
<fileSet>
<fileMode>0775</fileMode>
<includes>
<include>gremlin.sh</include>
<include>gremlin.bat</include>
<include>bin/gremlin.sh</include>
<include>bin/gremlin.bat</include>
</includes>
</fileSet>
<fileSet>
<includes>
<include>bin/cassandra.local</include>
<include>bin/hbase.local</include>
</includes>
</fileSet>
<fileSet>
Expand Down
11 changes: 7 additions & 4 deletions src/main/bin/README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ titan$ ./gremlin.sh
\,,,/
(o o)
-----oOOo-(_)-oOOo-----
gremlin> g = TitanFactory.open('tmp/titan-local');
==>standardtitangraph[local]
gremlin> g = TitanFactory.open('/tmp/titan-local');
==>titangraph[local:/tmp/titan-local]


2. Running Titan/Cassandra via Gremlin
Expand All @@ -43,8 +43,9 @@ gremlin> conf = new BaseConfiguration();
gremlin> conf.setProperty("storage.backend","cassandra");
gremlin> conf.setProperty("storage.hostname","127.0.0.1");
gremlin> g = TitanFactory.open(conf);
==>standardtitangraph[cassandra]
==>titangraph[cassandra:127.0.0.1]

It is possible to use TitanFactory.open('bin/cassandra.local') to reduce verbosity of opening a local instance.

3. Running Titan/HBase via Gremlin

Expand All @@ -58,7 +59,9 @@ gremlin> conf = new BaseConfiguration();
gremlin> conf.setProperty("storage.backend","hbase");
gremlin> conf.setProperty("storage.hostname","127.0.0.1");
gremlin> g = TitanFactory.open(conf);
==>standardtitangraph[hbase]
==>titangraph[hbase:127.0.0.1]

It is possible to use TitanFactory.open('bin/hbase.local') to reduce verbosity of opening a local instance.

----------------------------------------------------------

Expand Down
2 changes: 2 additions & 0 deletions src/main/bin/cassandra.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
storage.backend=cassandra
storage.hostname=127.0.0.1
2 changes: 2 additions & 0 deletions src/main/bin/hbase.local
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
storage.backend=hbase
storage.hostname=127.0.0.1

0 comments on commit c2e1a66

Please sign in to comment.