I try to copy the hadoop hdfs-site.xml, core-site.xml, mapred-site.xml to $SPARK_HOME/conf or let HADOOP_CONF_DIR set to SPARK_CLASSPATH, give the error:
Exception in thread "main" java.lang.RuntimeException: Error in configuring object
at org.apache.hadoop.util.ReflectionUtils.setJobConf(ReflectionUtils.java:93)
at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:64)
at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:117)
at spark.rdd.HadoopRDD.createInputFormat(HadoopRDD.scala:61)
at spark.rdd.HadoopRDD.getPartitions(HadoopRDD.scala:51)
at spark.RDD.partitions(RDD.scala:168)
at spark.rdd.MappedRDD.getPartitions(MappedRDD.scala:9)
at spark.RDD.partitions(RDD.scala:168)
at spark.rdd.MappedRDD.getPartitions(MappedRDD.scala:9)
at spark.RDD.partitions(RDD.scala:168)
at spark.Partitioner$.defaultPartitioner(Partitioner.scala:36)
at spark.PairRDDFunctions.reduceByKey(PairRDDFunctions.scala:267)
at com.qvod.kuaiwan.stats.spark.PlayCount$.getUserGamePlayCountHDFS(PlayCount.scala:40)
at com.qvod.kuaiwan.stats.spark.PlayCount$.statsPlayCount(PlayCount.scala:104)
at com.qvod.kuaiwan.stats.spark.StartUp$.main(StartUp.scala:39)
at com.qvod.kuaiwan.stats.spark.StartUp.main(StartUp.scala)
help me!
在 2013年8月21日星期三UTC+8下午6时04分21秒,
wingma...@gmail.com写道: