错误消息如下:
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)]