问题描述:
在使用idea调试spark时报错:

原因分析:
在代码中开启了lzo压缩,而在windows本地环境中找不到lzo压缩的配置。
def main(args: Array[String]): Unit = {
// 设置执行用户
System.setProperty("HADOOP_USER_NAME", "hive")
val conf: SparkConf = new SparkConf()
// 使用kryo序列化
.set("spark.serializer", "org.apache.spark.serializer.KryoSerializer")
// 开启动态分区
.set("spark.hadoop.hive.exec.dynamic.partition", "true")
// 设置为非严格模式
.set("spark.hadoop.hive.exec.dynamic.partition.mode", "nonstrict")
// 开启压缩
.set("mapred.output.compress", "true")
.set("spark.hadoop.hive.exec.compress.output", "true")
// 使用lzo压缩
.set("io.compres


8653

被折叠的 条评论
为什么被折叠?



