Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/apache-spark/6.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache spark 我想将我的spark数据集写入phoenix表,有人能帮我吗?_Apache Spark_Phoenix - Fatal编程技术网

Apache spark 我想将我的spark数据集写入phoenix表,有人能帮我吗?

Apache spark 我想将我的spark数据集写入phoenix表,有人能帮我吗?,apache-spark,phoenix,Apache Spark,Phoenix,我已经编写了以下代码,但它不起作用 df.write().format("org.apache.phoenix.spark").mode(SaveMode.Overwrite).options(ImmutableMap.of("zkUrl", clientProp.getProperty("zookeeper.url"), "table", "mdr_rec.kafka_offsets")).save(); 我遇到以下错误: at org.apache.spark.sql.execut

我已经编写了以下代码,但它不起作用

df.write().format("org.apache.phoenix.spark").mode(SaveMode.Overwrite).options(ImmutableMap.of("zkUrl", clientProp.getProperty("zookeeper.url"), "table", "mdr_rec.kafka_offsets")).save();
我遇到以下错误:

    at org.apache.spark.sql.execution.datasources.SaveIntoDataSourceCommand.run(SaveIntoDataSourceCommand.scala:46)
    at org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult$lzycompute(commands.scala:70)

你能包括整个堆栈跟踪,这将是非常有用的吗