Bringing together the Apache Cassandra experts from the community and DataStax.

Want to learn? Have a question? Want to share your expertise? You are in the right place!

Not sure where to begin? Getting Started

 

question

sankar avatar image
sankar asked Erick Ramirez edited

No request processor found for com.datastax.dse.driver.internal.core.graph.BytecodeGraphStatement

I am using DSE graph 6.8 with driver 4.11.0

I am getting the Exception in thread "main" java.lang.IllegalArgumentException: No request processor found for com.datastax.dse.driver.internal.core.graph.BytecodeGraphStatement

String dcName = "Graph";
String graphName = "food_qs";
try (CqlSession session = CqlSession.builder()
.addContactPoint(new InetSocketAddress(host, 8086))
.withLocalDatacenter("Graph")
.build()) {

String script = "g.V().has('person','person_id', 'person1').elementMap()";
ScriptGraphStatement statement =
ScriptGraphStatement.builder(script).build();
GraphTraversalSource g = AnonymousTraversalSource.traversal().withRemote(DseGraph.remoteConnectionBuilder(session)
.withExecutionProfile(session.getContext().getConfig().getDefaultProfile()
.withString(DseDriverOption.GRAPH_NAME, graphName)).build());
System.out.println(g.V().count().next());

}

Please let me know , if am missing something.

graph
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

alexandre.dutra avatar image
alexandre.dutra answered

Have you seen the upgrade guide? Since driver 4.10 Tinkerpop became an optional dependency. This means that you need to explicitly add it to your application's dependencies.

1 comment Share
10 |1000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Yes it worked . Thanks

0 Likes 0 ·