use withComputer IllegalArgumentException: Undefined type used in query"


王Xiaoxi <xiao...@...>
 

I'm a newbie of Janusgraph. I try to connect to the Janusgraph clusters by starting a Gremlin Console on my mac and I try to use the `withComputer`. There are 3 servers of the clusters. And about a few hundred million nodes and a few thousand million edges in the database.

I typed on the gremlin console:

```
graph = JanusGraphFactory.open("conf/janusgraph-cql-es-server-inner-read.properties")
g = graph.traversal()
g.V(17525371056)
```
And everything is normal.

After I typed the following: 

gcp = graph.traversal().withComputer()
gcp.V(17525371056)

Non-stop exceptions:

org.janusgraph.diskstorage.keycolumnvalue.scan.Standard Scanner Executor - Exception processing row [200- 0- 12-150-172-171- 61-128]: java.lang.IllegalArgumentException: Undefined type used in query: gremlin.traversalVertexProgram.haltedTraversers

I can't stop it both on my gremlin console and the JanusGraph Server.
Finally, I restart the servers.

So, did I misunderstand `withComputer`? Why did it happen?
I will use `SparkGraphComputer` in the future after I get a feel for how the `WithComputer` work.

Thanks for any suggestions

-- Xiaoxi Wang




HadoopMarc <bi...@...>
 

Hi Xiao,

What you did should normally work (e.g. try https://docs.janusgraph.org/getting-started/basic-usage/), so I cannot see what is wrong in your setup.

Note that it does not really make sense to start an OLAP traversal with g.V(17525371056), because the OLAP mechanism retrieves all or a large subset of all vertices, see:
https://tinkerpop.apache.org/docs/current/reference/#traversalvertexprogram

HTH,    Marc

Op vrijdag 25 september 2020 om 06:06:46 UTC+2 schreef xi...@...:

I'm a newbie of Janusgraph. I try to connect to the Janusgraph clusters by starting a Gremlin Console on my mac and I try to use the `withComputer`. There are 3 servers of the clusters. And about a few hundred million nodes and a few thousand million edges in the database.

I typed on the gremlin console:

```
graph = JanusGraphFactory.open("conf/janusgraph-cql-es-server-inner-read.properties")
g = graph.traversal()
g.V(17525371056)
```
And everything is normal.

After I typed the following: 

gcp = graph.traversal().withComputer()
gcp.V(17525371056)

Non-stop exceptions:

org.janusgraph.diskstorage.keycolumnvalue.scan.Standard Scanner Executor - Exception processing row [200- 0- 12-150-172-171- 61-128]: java.lang.IllegalArgumentException: Undefined type used in query: gremlin.traversalVertexProgram.haltedTraversers

I can't stop it both on my gremlin console and the JanusGraph Server.
Finally, I restart the servers.

So, did I misunderstand `withComputer`? Why did it happen?
I will use `SparkGraphComputer` in the future after I get a feel for how the `WithComputer` work.

Thanks for any suggestions

-- Xiaoxi Wang