启动图形(DSEGraphFrame)时出错

时间:2019-02-01 10:36:01

标签: scala apache-spark gremlin datastax-enterprise-graph dse-graph-frames

我在验证/产品环境中有一个dse图。 当我尝试在Scala中使用Spark启动DSEGraphFrame查询时,会出现问题。

val graph = spark.dseGraph("my_graph")

生成以下异常:

  

线程“主”中的异常   com.datastax.driver.core.exceptions.InvalidQueryException:方法   DseGraphRpc.getSchemaBlob不存在。确保所需   该方法的组件处于活动/启用状态       在com.datastax.driver.core.exceptions.InvalidQueryException.copy(InvalidQueryException.java:40)       在com.datastax.driver.core.DriverThrowables.propagateCause(DriverThrowables.java:26)       在com.datastax.driver.core.DefaultResultSetFuture.getUninterruptible(DefaultResultSetFuture.java:284)       在com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:49)       在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处       在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)       在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)       在java.lang.reflect.Method.invoke(Method.java:498)       在com.datastax.spark.connector.cql.SessionProxy.invoke(SessionProxy.scala:37)       在com.sun.proxy。$ Proxy27.execute(未知来源)       在sun.reflect.NativeMethodAccessorImpl.invoke0(本机方法)处       在sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)       在sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)       在java.lang.reflect.Method.invoke(Method.java:498)       在com.datastax.spark.connector.cql.SessionProxy.invoke(SessionProxy.scala:37)       在com.sun.proxy。$ Proxy28.execute(未知来源)       在com.datastax.bdp.util.rpc.RpcUtil.callInternal(RpcUtil.java:57)       在com.datastax.bdp.util.rpc.RpcUtil.call(RpcUtil.java:40)       在com.datastax.bdp.graph.spark.DseGraphRpc.callGetSchema(DseGraphRpc.java:45)       在com.datastax.bdp.graph.spark.graphframe.DseGraphFrame $$ anonfun $ getSchemaFromServer $ 1.apply(DseGraphFrame.scala:586)       在com.datastax.bdp.graph.spark.graphframe.DseGraphFrame $$ anonfun $ getSchemaFromServer $ 1.apply(DseGraphFrame.scala:586)       在com.datastax.spark.connector.cql.CassandraConnector $$ anonfun $ withSessionDo $ 1.apply(CassandraConnector.scala:115)       在com.datastax.spark.connector.cql.CassandraConnector $$ anonfun $ withSessionDo $ 1.apply(CassandraConnector.scala:114)       在com.datastax.spark.connector.cql.CassandraConnector.closeResourceAfterUse(CassandraConnector.scala:158)       在com.datastax.spark.connector.cql.CassandraConnector.withSessionDo(CassandraConnector.scala:114)       在com.datastax.bdp.graph.spark.graphframe.DseGraphFrame $ .getSchemaFromServer(DseGraphFrame.scala:586)       在com.datastax.bdp.graph.spark.graphframe.DseGraphFrameBuilder $ .apply(DseGraphFrameBuilder.scala:257)处       在com.datastax.bdp.graph.spark.graphframe.SparkSessionFunctions.dseGraph(SparkSessionFunctions.scala:20)

如何正确运行DSEGraphFrame?

1 个答案:

答案 0 :(得分:0)

问题出在图形未激活的dse群集中的一个节点上