Created
September 29, 2015 20:07
-
-
Save sayrer/aa6242ae82cd55395f89 to your computer and use it in GitHub Desktop.
Running Titan "Getting started"
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rob-Sayres-MacBook-Pro:titan-test sayre$ cd ~/Downloads/titan-1.0.0-hadoop1/ | |
Rob-Sayres-MacBook-Pro:titan-1.0.0-hadoop1 sayre$ ls | |
CHANGELOG.asc LICENSE.txt NOTICE.txt UPGRADE.asc bin conf data ext javadocs lib log scripts | |
Rob-Sayres-MacBook-Pro:titan-1.0.0-hadoop1 sayre$ bin/gremlin.sh | |
objc[75580]: Class JavaLaunchHelper is implemented in both /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/bin/java and /Library/Java/JavaVirtualMachines/jdk1.8.0_40.jdk/Contents/Home/jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined. | |
\,,,/ | |
(o o) | |
-----oOOo-(3)-oOOo----- | |
plugin activated: aurelius.titan | |
plugin activated: tinkerpop.server | |
plugin activated: tinkerpop.utilities | |
SLF4J: Class path contains multiple SLF4J bindings. | |
SLF4J: Found binding in [jar:file:/Users/sayre/Downloads/titan-1.0.0-hadoop1/lib/slf4j-log4j12-1.7.5.jar!/org/slf4j/impl/StaticLoggerBinder.class] | |
SLF4J: Found binding in [jar:file:/Users/sayre/Downloads/titan-1.0.0-hadoop1/lib/logback-classic-1.1.2.jar!/org/slf4j/impl/StaticLoggerBinder.class] | |
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. | |
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory] | |
13:01:48 INFO org.apache.tinkerpop.gremlin.hadoop.structure.HadoopGraph - HADOOP_GREMLIN_LIBS is set to: /Users/sayre/Downloads/titan-1.0.0-hadoop1/lib | |
plugin activated: tinkerpop.hadoop | |
plugin activated: tinkerpop.tinkergraph | |
gremlin> 100-10 | |
==>90 | |
gremlin> "Titan:" + " The Rise of Big Graph Data" | |
==>Titan: The Rise of Big Graph Data | |
gremlin> [name:'aurelius', vocation:['philosopher', 'emperor']] | |
==>name=aurelius | |
==>vocation=[philosopher, emperor] | |
gremlin> graph = TitanFactory.open('conf/titan-berkeleyje-es.properties') | |
==>standardtitangraph[berkeleyje:/Users/sayre/Downloads/titan-1.0.0-hadoop1/conf/../db/berkeley] | |
gremlin> GraphOfTheGodsFactory.load(graph) | |
==>null | |
gremlin> g = graph.traversal() | |
==>graphtraversalsource[standardtitangraph[berkeleyje:/Users/sayre/Downloads/titan-1.0.0-hadoop1/conf/../db/berkeley], standard] | |
gremlin> saturn = g.V().has('name', 'saturn').next() | |
==>v[4192] | |
gremlin> g.V(saturn).valueMap() | |
==>[name:[saturn], age:[10000]] | |
gremlin> g.V(saturn).in('father').in('father').values('name') | |
==>hercules | |
gremlin> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment