$ service iptables status
|
$ service iptables stop
$ chkconfig --level 345 iptables off
|
$ unzip janusgraph-0.2.0-hadoop2.zip
|
$ cd janusgraph-0.2.0-hadoop2
$ bin/gremlin.sh
|
$ gremlin>100-10
==>90
$ gremlin> "JanusGraph:" + " The Rise of Big Graph Data"
==>JanusGraph: The Rise of Big Graph Data
$ gremlin> [name:'aurelius', vocation:['philosopher', 'emperor']]
==>name=aurelius==>vocation=[philosopher, emperor]
|
$ cd $JANUSGRAPH_HOME
$ cp conf/janusgraph-hbase-solr.properties
conf/gremlin-server/janusgraph-hbase-solr-server.properties
|
$ cd $JANUSGRAPH_HOME
$ cp conf/gremlin-server/gremlin-server.yaml
conf/gremlin-server/janusgraph-gremlin-server.yaml
|
gremlin.graph=org.janusgraph.core.JanusGraphFactory
|
storage.backend=hbase
storage.hostname=192.168.251.160,192.168.251.161,192.168.251.162
storage.hbase.table=search
|
index.search.backend=solr
index.search.solr.mode=cloud
index.search.solr.zookeeper-url=localhost:2181
index.search.solr.configset=janusgraph-configset
|
$ SOLR_HOME/server/scripts/cloud-scripts/zkcli.sh
-cmd upconfig -z localhost:2181
-d $JANUSGRAPH_HOME/conf/solr -n janusgraph-configset
|
graphs: {
graph: conf/gremlin-server/janusgraph-hbase-solr-server.properties}
|
$ cd $JANUSGRAPH_HOME
$ bin/gremlin-server.sh ./conf/gremlin-server/janusgraph-gremlin-server.yaml
|
$ vim $JANUSGRAPH_HOME/conf/remote.yaml
|
$ bin/gremlin.sh
\,,,/
(o o)
-----oOOo-(3)-oOOo-----
plugin activated: tinkerpop.server
plugin activated: tinkerpop.hadoop
plugin activated: tinkerpop.utilities
plugin activated: janusgraph.imports
plugin activated: tinkerpop.tinkergraph
gremlin> :remote connect tinkerpop.server conf/remote.yaml
==>Connected - localhost/127.0.0.1:8182
gremlin> :> graph.addVertex("name", "stephen")
==>v[256]
gremlin> :> g.V().values('name')
==>stephen
|