Gremlin-console unable to connect different keyspace
Ankur Goel <ankur...@...>
Hi, I am using embedded janusgraph server (cassandra + ES). have generated two graphs by change following properties in default janusgraph-cassandra-es-server.properties : storage.cassandra.keyspace But when connecting through gremlin interface to access different keyspace or graph getting error: gremlin> g = JanusGraphFactory.open('/home/devusr/janusgraph/conf/gremlin-server/janusgraph-cassandra-es-server.properties') 18:25:30 WARN org.janusgraph.graphdb.configuration.GraphDatabaseConfiguration - Local setting cache.db-cache-clean-wait=20 (Type: GLOBAL_OFFLINE) is overridden by globally managed value (50). Use the ManagementSystem interface instead of the local configuration to control this setting. ==>standardjanusgraph[cassandrathrift:[192.168.207.47]] gremlin> g.V().count() No signature of method: org.janusgraph.graphdb.database.StandardJanusGraph.V() is applicable for argument types: () values: [] Possible solutions: tx(), io(org.apache.tinkerpop.gremlin.structure.io.Io$Builder), is(java.lang.Object), any(), any(groovy.lang.Closure), use([Ljava.lang.Object;) Type ':help' or ':h' for help. Display stack trace? [yN] Please suggest what wrong i am doing. ~AnkurG |
|
Re: org.janusgraph.diskstorage.locking.TemporaryLockingException: Temporary locking failure
Ankur Goel <ankur...@...>
Just to update problem got resolved, i was using without: mgmt.setConsistency(leadidCUniqueIndex, ConsistencyModifier.LOCK); After removing, this works like charms earlier in adding 300 vertex we were having this problem very frequently. isnt this strange for single node embedded configuration (cassandra + es) this is affecting too much. Learning is:having unique index is suicidal in janus. Is there any other way if needs to use unique index. Luckily we handled unique thing through application. ~AnkurG
On Wednesday, September 6, 2017 at 7:44:38 PM UTC+5:30, Ankur Goel wrote:
|
|
Re: org.janusgraph.diskstorage.locking.TemporaryLockingException: Temporary locking failure
Jason Plurad <plu...@...>
It is difficult to help with just a stack trace. Please provide a some more context of the problem, like the graph configuration, the schema definition, and the graph mutation code that is happening before the commit. On Wednesday, September 6, 2017 at 10:14:38 AM UTC-4, Ankur Goel wrote:
|
|
org.janusgraph.diskstorage.locking.TemporaryLockingException: Temporary locking failure
ankur...@...
We are using single node Janusgraph instance with embeded (cassandra and es). While adding multiple vertex getting following exception: org.janusgraph.diskstorage.locking.TemporaryLockingException: Temporary locking failure at org.janusgraph.diskstorage.locking.AbstractLocker.writeLock(AbstractLocker.java:309) at org.janusgraph.diskstorage.locking.consistentkey.ExpectedValueCheckingStore.acquireLock(ExpectedValueCheckingStore.java:103) at org.janusgraph.diskstorage.keycolumnvalue.KCVSProxy.acquireLock(KCVSProxy.java:52) at org.janusgraph.diskstorage.BackendTransaction.acquireIndexLock(BackendTransaction.java:255) at org.janusgraph.graphdb.database.StandardJanusGraph.prepareCommit(StandardJanusGraph.java:565) at org.janusgraph.graphdb.database.StandardJanusGraph.commit(StandardJanusGraph.java:713) at org.janusgraph.graphdb.transaction.StandardJanusGraphTx.commit(StandardJanusGraphTx.java:1363) at com.test.ankur.janusgraph.serviceImpl.VerticesServiceImpl.addLeads(VerticesServiceImpl.java:113) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:99) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:281) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:96) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213) at com.sun.proxy.$Proxy39.addLeads(Unknown Source) at com.test.ankur.janusgraph.mains.AppMain.main(AppMain.java:48) Caused by: org.janusgraph.diskstorage.TemporaryBackendException: Lock write retry count exceeded at org.janusgraph.diskstorage.locking.consistentkey.ConsistentKeyLocker.writeSingleLock(ConsistentKeyLocker.java:339) at org.janusgraph.diskstorage.locking.consistentkey.ConsistentKeyLocker.writeSingleLock(ConsistentKeyLocker.java:123) at org.janusgraph.diskstorage.locking.AbstractLocker.writeLock(AbstractLocker.java:304) ... 21 more Please help in this. |
|
Re: how to create index using gremlin scala
yair...@...
OK. I got it.
This works:
Thanks. |
|
Re: how to create index using gremlin scala
yair...@...
I suspect that, but I couldn't see how I get to the janusgraph api from the ScalaGraph. This is my code:
so from graph instance above - can I get to the java API? On Tuesday, September 5, 2017 at 5:11:34 PM UTC+3, HadoopMarc wrote:
|
|
Re: how to create index using gremlin scala
HadoopMarc <marc.d...@...>
The janusgraph management API is not part of Tinkerpop, and thus not of gremlin-scala. So, you can just use the janusgraph java API within scala. Hope this helps, Marc Op dinsdag 5 september 2017 13:10:51 UTC+2 schreef ya...@...:
|
|
how to create index using gremlin scala
yair...@...
I am using gremlin scala and I can't seem to find the management API so I can create indexes. Any pointers? |
|
Re: set (ArrayList) property as JSON string
Adam Holley <holl...@...>
FYI, Solr support for LIST and SET cardinality should be in 0.2.0 On Thursday, July 6, 2017 at 4:38:40 PM UTC-5, Kelvin Lawrence wrote:
|
|
Re: Backup and restore when using Janus via Gremlin server and a Berkley DB backend
emeh...@...
Thank's I will get that going in my app. On Friday, September 1, 2017 at 8:00:13 PM UTC-4, Jason Plurad wrote:
|
|
Re: Terminal initialization failed ... Found class jline.Terminal, but interface was expected
Robert Dale <rob...@...>
Titan/JanusGraph has been using 2.11 and TinkerPop has been using 2.12 for the last 2 years or so. JanusGraph overrides TinkerPop's version. There is only one copy of jline in either TinkerPop or JanusGraph distributions. In jline, the interface change was from 1.x to 2.x. I would suspect that jline 1.x is somewhrere in your classpath. A quick search leads to some stackoverflow answers that point to the HADOOP classpath. However, if you believe that this is a bug in either JanusGraph, TinkerPop, please provide the steps to reproduce with a clean distribution and without manipulating the classpath. In the meantime, I have created an issue to update JanusGraph to the TinkerPop version - https://github.com/JanusGraph/janusgraph/pull/491 Robert Dale On Sat, Sep 2, 2017 at 7:23 AM, Rohit Jain <rohit.j...@...> wrote: Here is what one of our developers found: |
|
Re: Terminal initialization failed ... Found class jline.Terminal, but interface was expected
Rohit Jain <rohit.j...@...>
Here is what one of our developers found:
It looks like there are some incompatibilities in the interface for the class jline.Terminal between jline 2.11 and jline 2.12. If the jline 2.12, part of Cloudera CDH Hive, is loaded, Gremlin will fail with the following error: [ERROR] Terminal initialization failed; falling back to unsupported java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected If the jline 2.11 version is loaded, Gremlin does not have a problem. To work around the issue at this moment, here is what was done: We changed gremlin.sh around line 43, to add the janusgraph/lib at the beginning of the current class path. It is likely, that the only library needed to be in front was jline. But we added them all to the front, so they get preference over any of the current jars and classes. #WORKAROUND....PUT LIB in front of classpath #export CLASSPATH="${CLASSPATH:-}:$CP" export CLASSPATH="$CP:${CLASSPATH:-}" This indicates that perhaps Gremlin / Tinkerpop, as included with JanusGraph, may not be compatible with jline 2.12 after all. |
|
Re: Backup and restore when using Janus via Gremlin server and a Berkley DB backend
Jason Plurad <plu...@...>
Yeah, I'd think that would work. Here's the doc: http://docs.oracle.com/cd/E17277_02/html/GettingStartedGuide/backuprestore.html On Friday, September 1, 2017 at 4:03:06 PM UTC-4, Mark Henderson wrote:
|
|
Re: Terminal initialization failed ... Found class jline.Terminal, but interface was expected
Rohit Jain <rohit.j...@...>
... /opt/cloudera/parcels/CDH/lib/hive/lib/jline-2.12.jar .../disk1/rohit/janusgraph-0.1.1-hadoop2/lib/jline-2.11.jar ... Rohit |
|
Re: Terminal initialization failed ... Found class jline.Terminal, but interface was expected
Robert Dale <rob...@...>
SCRIPT_DEBUG=y ./bin/gremlin.sh Robert Dale On Fri, Sep 1, 2017 at 4:39 PM, Rohit Jain <rohit.j...@...> wrote:
|
|
Re: Terminal initialization failed ... Found class jline.Terminal, but interface was expected
Rohit Jain <rohit.j...@...>
Robert, I am not a Linux expert either :-( Do you know how I can find out what version of jline in my CLASSPATH I am picking up? Rohit |
|
Re: Terminal initialization failed ... Found class jline.Terminal, but interface was expected
Robert Dale <rob...@...>
You clearly have too many versions of jline. JanusGraph uses 2.11, TinkerPop uses 2.12. Either should work fine but use just one. Robert Dale On Fri, Sep 1, 2017 at 4:27 PM, Rohit Jain <rohit.j...@...> wrote:
|
|
Re: Terminal initialization failed ... Found class jline.Terminal, but interface was expected
Rohit Jain <rohit.j...@...>
Robert, You are just so fast! We are on Linux centos I think. I tried setting it to none as you suggested, but I still got the same error. Here are the versions of jline installed on the system. $ find . -name jline* ./crunch/lib/jline-2.10.4.jar ./hadoop-httpfs/webapps/webhdfs/WEB-INF/lib/jline-2.11.jar ./llama/lib/jline-2.11.jar ./sentry/lib/jline-2.11.jar ./hadoop-kms/webapps/kms/WEB-INF/lib/jline-2.11.jar ./hadoop-0.20-mapreduce/lib/jline-2.11.jar ./whirr/lib/jline-2.11.jar ./impala/lib/jline-2.12.jar ./zookeeper/lib/jline-2.11.jar ./hadoop-yarn/lib/jline-2.11.jar ./oozie/oozie-sharelib-yarn/lib/hive2/jline-2.11.jar ./oozie/oozie-sharelib-yarn/lib/sqoop/jline-2.11.jar ./oozie/oozie-sharelib-yarn/lib/hcatalog/jline-2.11.jar ./oozie/oozie-sharelib-yarn/lib/pig/jline-2.11.jar ./oozie/oozie-sharelib-yarn/lib/hive/jline-2.11.jar ./oozie/oozie-sharelib-yarn/lib/spark/jline-2.10.5.jar ./oozie/oozie-sharelib-yarn/lib/spark/jline-2.11.jar ./oozie/lib/jline-2.11.jar ./oozie/libserver/jline-2.11.jar ./oozie/oozie-sharelib-mr1/lib/hive2/jline-2.11.jar ./oozie/oozie-sharelib-mr1/lib/sqoop/jline-2.11.jar ./oozie/oozie-sharelib-mr1/lib/hcatalog/jline-2.11.jar ./oozie/oozie-sharelib-mr1/lib/pig/jline-2.11.jar ./oozie/oozie-sharelib-mr1/lib/hive/jline-2.11.jar ./oozie/oozie-sharelib-mr1/lib/spark/jline-2.10.5.jar ./oozie/oozie-sharelib-mr1/lib/spark/jline-2.11.jar ./oozie/libtools/jline-2.11.jar ./hive/lib/jline-2.12.jar |
|
Re: Terminal initialization failed ... Found class jline.Terminal, but interface was expected
Robert Dale <rob...@...>
What OS, terminal are you using? Are there other versions of jline in the classpath? You can try setting `-Djline.terminal=none` e.g. `export JAVA_OPTIONS="-Djline.terminal=none" ; ./bin/gremlin.sh` Robert Dale On Fri, Sep 1, 2017 at 4:02 PM, Rohit Jain <rohit.j...@...> wrote:
|
|
Terminal initialization failed ... Found class jline.Terminal, but interface was expected
Rohit Jain <rohit.j...@...>
Hi folks, I keep running into this problem. I don't know how I got around it the last time but it has cropped up again. Any ideas? bin/gremlin.sh \,,,/ (o o) -----oOOo-(3)-oOOo----- [ERROR] Terminal initialization failed; falling back to unsupported java.lang.IncompatibleClassChangeError: Found class jline.Terminal, but interface was expected Rohit |
|