-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix gremlin-console can't work #1027
Conversation
Change-Id: Ice222d809e4161f1d4d1f04822bef1c5af380a10
Codecov Report
@@ Coverage Diff @@
## master #1027 +/- ##
============================================
- Coverage 69.35% 69.11% -0.24%
- Complexity 5314 5428 +114
============================================
Files 325 329 +4
Lines 25978 26570 +592
Branches 3687 3818 +131
============================================
+ Hits 18017 18365 +348
- Misses 6220 6413 +193
- Partials 1741 1792 +51
Continue to review full report at Codecov.
|
|
run with memory backend: $ hugegraph-0.11.1/bin/gremlin-console.sh
objc[8740]: Class JavaLaunchHelper is implemented in both /bin/java and /jre/lib/libinstrument.dylib. One of the two will be used. Which one is undefined.
\,,,/
(o o)
-----oOOo-(3)-oOOo-----
plugin activated: HugeGraph
plugin activated: tinkerpop.server
plugin activated: tinkerpop.utilities
plugin activated: tinkerpop.tinkergraph
gremlin> graph = HugeFactory.open("hugegraph-0.11.1/conf/hugegraph.properties")
==>standardhugegraph[hugegraph]
gremlin> g=graph.traversal()
==>graphtraversalsource[standardhugegraph[hugegraph], standard]
gremlin> g.V()
main dict load finished, time elapsed 1268 ms
model load finished, time elapsed 73 ms.
gremlin> graph.schema().vertexLabel('person').useCustomizeStringId().create();graph.schema().edgeLabel('next').sourceLabel('person').targetLabel('person').create(); g.addV('person').property(id,'A').as('a').addV('person').property(id,'B').as('b').addV('person').property(id,'C').as('c').addV('person').property(id,'D').as('d').addV('person').property(id,'E').as('e').addV('person').property(id,'F').as('f').addE('next').from('a').to('b').addE('next').from('b').to('c').addE('next').from('b').to('d').addE('next').from('c').to('d').addE('next').from('c').to('e').addE('next').from('d').to('e').addE('next').from('e').to('f').addE('next').from('f').to('d')
==>e[SF>1>>SD][F-next->D]
gremlin> g.V()
==>v[A]
==>v[B]
==>v[C]
==>v[D]
==>v[E]
==>v[F] register with |
start tinkerpop gremlin server
remote.yaml
|
start HugeGraphServer remote.yaml
|
Change-Id: I97603e8c8e4c3f806e782cdea375a7a85594889b
ec247b5
to
cdcd2df
Compare
连接远程的server,提交gremlin语句启动HugeGraphServer 进入gremlin控制台
配置remote.yaml
连接到服务:
创建数据:
执行查询语句:
|
Accessing local data in consoleEnter the gremlin console
Register the backend and serializer of rocksdb
Create graph instance
|
* Fix gremlin-console can't work * Let gremlin console can remote connect to HugeGremlinServer Change-Id: Ice222d809e4161f1d4d1f04822bef1c5af380a10
* Fix mysql backend openWithoutDB ssl-mode not work (#842) * fix bug of missing offset with index query (#866) * allow system async task in gremlin context (#892) * sm allow cassandra backend creating thread as needed while execute cql (#896) * fix: Invalid limit 10000000, must be <= capacity (#950) * Fix gremlin-console can't work (#1027) Change-Id: Ice222d809e4161f1d4d1f04822bef1c5af380a10 Co-authored-by: Linary <liningrui@vip.qq.com> Co-authored-by: zhoney <zhangyi51@baidu.com>
maybe related to: apache/tinkerpop@134d745#diff-1ae6d5b30eaffe6d49a30d5eeef2dec3 |
Fix #1026
Change-Id: Ice222d809e4161f1d4d1f04822bef1c5af380a10