g.addV("mmdUse").property("name","gaoyue").property("phone","112").iterate();
}
}
it dose not work ,i use germlin console query vertex,but it dose not exsit, the log is
09:53:42.522 [main] INFO org.janusgraph.graphdb.database.IndexSerializer - Hashing index keys
09:53:42.553 [main] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter ColumnRangeFilter [system-registration.c0a8017916228-DESKTOP-GUCT8TL1.startup-time, system-registration.c0a8017916228-DESKTOP-GUCT8TL1.startup-timf)
09:53:42.581 [main] DEBUG org.janusgraph.diskstorage.hbase.HBaseStoreManager - Substituted default CF name "system_properties" with short form "s" to reduce HBase KeyValue size
09:53:42.671 [main] INFO org.janusgraph.diskstorage.log.kcvs.KCVSLog - Loaded unidentified ReadMarker start time 2017-07-20T01:53:42.671Z into org.janusgraph.diskstorage.log.kcvs.KCVSLog$MessagePuller@69f1a286
09:53:42.687 [main] DEBUG org.janusgraph.diskstorage.log.kcvs.KCVSLog - Creating log read executor: initialDelay=100000000 delay=5000000000 unit=NANOSECONDS
09:53:42.687 [main] DEBUG org.janusgraph.graphdb.database.StandardJanusGraph - Installed shutdown hook Thread[Thread-8,5,main]
java.lang.Throwable: Hook creation trace
at org.janusgraph.graphdb.database.StandardJanusGraph.<init>(StandardJanusGraph.java:167)
at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:107)
at org.janusgraph.core.JanusGraphFactory.open(JanusGraphFactory.java:87)
at com.mimidai.chapter02.GraphTest.main(GraphTest.java:19)
09:53:42.765 [main] DEBUG org.janusgraph.graphdb.transaction.StandardJanusGraphTx - Guava vertex cache size: requested=20000 effective=20000 (min=100)
09:53:42.765 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created dirty vertex map with initial size 32
09:53:42.765 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created vertex cache with max size 20000
09:53:42.780 [main] DEBUG org.janusgraph.graphdb.tinkerpop.JanusGraphBlueprintsGraph - Created new thread-bound transaction standardjanusgraphtx[0x31dadd46]
09:53:42.780 [main] DEBUG org.janusgraph.graphdb.transaction.StandardJanusGraphTx - Guava vertex cache size: requested=20000 effective=20000 (min=100)
09:53:42.780 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created dirty vertex map with initial size 32
09:53:42.780 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created vertex cache with max size 20000
09:53:42.812 [pool-4-thread-1] DEBUG org.janusgraph.diskstorage.log.kcvs.KCVSLog - MessagePuller configured with ReadMarker timestamp slightly ahead of read lag time; waiting for the clock to catch up
09:53:42.859 [main] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter FilterList AND (2/2): [ColumnRangeFilter [\x00, \xFF), ColumnPaginationFilter (2000, 0)]
09:53:42.859 [main] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - Starting id block renewal thread upon 0
09:53:42.859 [JanusGraphID(0)(4)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter FilterList AND (2/2): [ColumnRangeFilter [\x00, \xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF), ColumnPaginationFilter (5, 0)]
09:53:42.874 [JanusGraphID(0)(4)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseStoreManager - Substituted default CF name "janusgraph_ids" with short form "i" to reduce HBase KeyValue size
09:53:43.212 [JanusGraphID(0)(4)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter ColumnRangeFilter [\xFF\xFF\xFF\xFF\xFF\xFF\xFFi\x00\x00\x00\x00\x00\x00\x00\x00, \xFF\xFF\xFF\xFF\xFF\xFF\xFFi\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF)
09:53:43.212 [JanusGraphID(0)(4)[0]] DEBUG org.janusgraph.diskstorage.idmanagement.ConsistentKeyIDAuthority - Acquired ID block [[101,151)/0:4] on partition(0)-namespace(4) (my rid is c0a8017916228-DESKTOP-GUCT8TL1)
09:53:43.212 [JanusGraphID(0)(4)[0]] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - Retrieved ID block from authority on partition(0)-namespace(4), exec time 344.1 ms, exec+q time 344.6 ms
09:53:43.212 [main] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - ID partition(0)-namespace(4) acquired block: [[101,151)/0:4]
09:53:43.212 [main] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - Starting id block renewal thread upon 0
09:53:43.212 [JanusGraphID(0)(4)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter FilterList AND (2/2): [ColumnRangeFilter [\x00, \xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF), ColumnPaginationFilter (5, 0)]
09:53:43.212 [JanusGraphID(0)(4)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseStoreManager - Substituted default CF name "janusgraph_ids" with short form "i" to reduce HBase KeyValue size
09:53:43.256 [main] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter FilterList AND (2/2): [ColumnRangeFilter [\x00, \xFF), ColumnPaginationFilter (2000, 0)]
09:53:43.256 [main] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - Starting id block renewal thread upon 0
09:53:43.568 [JanusGraphID(0)(4)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter ColumnRangeFilter [\xFF\xFF\xFF\xFF\xFF\xFF\xFF7\x00\x00\x00\x00\x00\x00\x00\x00, \xFF\xFF\xFF\xFF\xFF\xFF\xFF7\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF)
09:53:43.571 [JanusGraphID(0)(4)[0]] DEBUG org.janusgraph.diskstorage.idmanagement.ConsistentKeyIDAuthority - Acquired ID block [[151,201)/0:4] on partition(0)-namespace(4) (my rid is c0a8017916228-DESKTOP-GUCT8TL1)
09:53:43.571 [JanusGraphID(0)(4)[0]] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - Retrieved ID block from authority on partition(0)-namespace(4), exec time 353.5 ms, exec+q time 353.6 ms
09:53:43.571 [JanusGraphID(0)(3)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter FilterList AND (2/2): [ColumnRangeFilter [\x00, \xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF), ColumnPaginationFilter (5, 0)]
09:53:43.574 [JanusGraphID(0)(3)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseStoreManager - Substituted default CF name "janusgraph_ids" with short form "i" to reduce HBase KeyValue size
09:53:43.920 [JanusGraphID(0)(3)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter ColumnRangeFilter [\xFF\xFF\xFF\xFF\xFF\xFD\x8E\xFF\x00\x00\x00\x00\x00\x00\x00\x00, \xFF\xFF\xFF\xFF\xFF\xFD\x8E\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF)
09:53:43.920 [JanusGraphID(0)(3)[0]] DEBUG org.janusgraph.diskstorage.idmanagement.ConsistentKeyIDAuthority - Acquired ID block [[80001,160001)/0:4] on partition(0)-namespace(3) (my rid is c0a8017916228-DESKTOP-GUCT8TL1)
09:53:43.920 [JanusGraphID(0)(3)[0]] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - Retrieved ID block from authority on partition(0)-namespace(3), exec time 654.5 ms, exec+q time 654.8 ms
09:53:43.920 [main] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - ID partition(0)-namespace(3) acquired block: [[80001,160001)/0:4]
09:53:44.123 [main] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - Starting id block renewal thread upon 0
09:53:44.139 [JanusGraphID(13)(0)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter FilterList AND (2/2): [ColumnRangeFilter [\x00, \xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF), ColumnPaginationFilter (5, 0)]
09:53:44.139 [JanusGraphID(13)(0)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseStoreManager - Substituted default CF name "janusgraph_ids" with short form "i" to reduce HBase KeyValue size
09:53:44.491 [JanusGraphID(13)(0)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter ColumnRangeFilter [\xFF\xFF\xFF\xFF\xFF\xFF\xB1\xDF\x00\x00\x00\x00\x00\x00\x00\x00, \xFF\xFF\xFF\xFF\xFF\xFF\xB1\xDF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF)
09:53:44.491 [JanusGraphID(13)(0)[0]] DEBUG org.janusgraph.diskstorage.idmanagement.ConsistentKeyIDAuthority - Acquired ID block [[10001,20001)/0:4] on partition(13)-namespace(0) (my rid is c0a8017916228-DESKTOP-GUCT8TL1)
09:53:44.491 [JanusGraphID(13)(0)[0]] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - Retrieved ID block from authority on partition(13)-namespace(0), exec time 354.0 ms, exec+q time 354.7 ms
09:53:44.491 [main] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - ID partition(13)-namespace(0) acquired block: [[10001,20001)/0:4]
09:53:44.491 [main] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - Starting id block renewal thread upon 0
09:53:44.491 [JanusGraphID(13)(3)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter FilterList AND (2/2): [ColumnRangeFilter [\x00, \xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF), ColumnPaginationFilter (5, 0)]
09:53:44.491 [JanusGraphID(13)(3)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseStoreManager - Substituted default CF name "janusgraph_ids" with short form "i" to reduce HBase KeyValue size
09:53:44.841 [JanusGraphID(13)(3)[0]] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter ColumnRangeFilter [\xFF\xFF\xFF\xFF\xFF\xFD\x8E\xFF\x00\x00\x00\x00\x00\x00\x00\x00, \xFF\xFF\xFF\xFF\xFF\xFD\x8E\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF)
09:53:44.841 [JanusGraphID(13)(3)[0]] DEBUG org.janusgraph.diskstorage.idmanagement.ConsistentKeyIDAuthority - Acquired ID block [[80001,160001)/0:4] on partition(13)-namespace(3) (my rid is c0a8017916228-DESKTOP-GUCT8TL1)
09:53:44.841 [JanusGraphID(13)(3)[0]] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - Retrieved ID block from authority on partition(13)-namespace(3), exec time 348.8 ms, exec+q time 349.2 ms
09:53:44.841 [main] DEBUG org.janusgraph.graphdb.database.idassigner.StandardIDPool - ID partition(13)-namespace(3) acquired block: [[80001,160001)/0:4]
09:53:44.841 [main] DEBUG org.janusgraph.graphdb.transaction.StandardJanusGraphTx - Guava vertex cache size: requested=20000 effective=20000 (min=100)
09:53:44.841 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created dirty vertex map with initial size 32
09:53:44.841 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created vertex cache with max size 20000
09:53:44.841 [main] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter FilterList AND (2/2): [ColumnRangeFilter [\x00, \xFF), ColumnPaginationFilter (2000, 0)]
09:53:44.841 [main] DEBUG org.janusgraph.graphdb.transaction.StandardJanusGraphTx - Guava vertex cache size: requested=20000 effective=20000 (min=100)
09:53:44.841 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created dirty vertex map with initial size 32
09:53:44.841 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created vertex cache with max size 20000
09:53:44.841 [main] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter ColumnRangeFilter [\x10\xC2, \x10\xC3)
09:53:44.856 [main] DEBUG org.janusgraph.graphdb.transaction.StandardJanusGraphTx - Guava vertex cache size: requested=20000 effective=20000 (min=100)
09:53:44.856 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created dirty vertex map with initial size 32
09:53:44.856 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created vertex cache with max size 20000
09:53:44.856 [main] DEBUG org.janusgraph.diskstorage.hbase.HBaseKeyColumnValueStore - Generated HBase Filter ColumnRangeFilter [\x10\xC0, \x10\xC1)
09:53:44.872 [main] DEBUG org.janusgraph.graphdb.transaction.StandardJanusGraphTx - Guava vertex cache size: requested=20000 effective=20000 (min=100)
09:53:44.872 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created dirty vertex map with initial size 32
09:53:44.872 [main] DEBUG org.janusgraph.graphdb.transaction.vertexcache.GuavaVertexCache - Created vertex cache with max size 20000
but this way can insert into graph
public static void main(String[] args) throws ExecutionException, InterruptedException {
Cluster.Builder builder = Cluster.build();
builder.addContactPoint("192.168.1.108");
Cluster cluster = builder.create();
Client client = cluster.connect();
ResultSet results = client.submit("g.addV('mmdUser').property('name','zhangwei').property('phone','110')");
CompletableFuture<List<Result>> all = results.all();
List<Result> resultList = all.get();
for (Result result : resultList) {
System.out.println(result.getString());
}
client.close();
cluster.close();
}