rdd.saveAsSequenceFile

时间:2017-09-30 14:52:37

标签: scala apache-spark

错误消息如下:

error: type mismatch; 
[INFO]  found   :Some[Class[org.apache.hadoop.io.compress.SnappyCodec]]
[INFO]  required: org.apache.hadoop.conf.Configuration [INFO]    
rdd.saveAsSequenceFile(dstPath, Some(classOf[org.apache.hadoop.io.compress.SnappyCodec]))

代码如下:

  

rdd.saveAsSequenceFile(dstPath,有些(classOf [org.apache.hadoop.io.compress.SnappyCodec]))

和rdd类型是rdd:RDD [(Text,BytesWritable)]

0 个答案:

没有答案