微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Spark在shell中调试

将要调试的程序打包,上传到服务器目录,/home/hadoop/test/test.jar

然后在脚本中指定--jars参数为该目录。

spark-shell --master yarn \
--queue prod \
--driver-memory 10G --executor-memory 10G --num-executors 50 --executor-cores 2  \
--jars /home/hadoop/test/test.jar \
--conf spark.driver.maxResultSize=20G \
--conf spark.port.maxRetries=16 \
--conf spark.executor.memoryOverhead=5120 \
--conf spark.dynamicAllocation.enabled=false \
--conf spark.executor.extraClasspath=$HADOOP_PATH/lib/native \
--conf spark.driver.extraClasspath=$HADOOP_PATH/lib/native \
--name testSparkShell

 

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐