【发布时间】:2016-02-05 14:07:24
【问题描述】:
在 Zeppelin 中尝试从 Spark 写入 HDFS 时,我收到 ClassNotFoundException for org.apache.hadoop.mapred.DirectFileOutputCommitter:
java.lang.RuntimeException: java.lang.RuntimeException: java.lang.ClassNotFoundException: Class org.apache.hadoop.mapred.DirectFileOutputCommitter not found
at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:2106)
at org.apache.hadoop.mapred.JobConf.getOutputCommitter(JobConf.java:725)
at org.apache.spark.rdd.PairRDDFunctions$$anonfun$saveAsHadoopFile$4.apply$mcV$sp(PairRDDFunctions.scala:983)
正在尝试运行的代码:
val model = LinearRegressionWithSGD.train(someRDD, numIterations)
val modelPath = "hdfs:///some_path/LinearRegressionWithSGD"
model.save(sc, modelPath)
在搜索这个类时,我什至找不到它。我能找到的最接近的是org.apache.hadoop.mapred.FileOutputCommitter in Hadoop。
我正在使用 Zeppelin 的提交 18c8c9ea512a0d87699a73e2ca26192d03748661(10 月 9 日)、YARN 上的 Spark 1.5.0 和 Hadoop 2.6。
【问题讨论】:
标签: apache-spark apache-zeppelin apache-spark-mllib