spark 執行模式的簡單總結
阿新 • • 發佈:2019-01-06
spark-submit --master spark://192.168.8.19:7077
--deploy-mode client /Users/haozhugogo/Downloads/hdfs_wordcount.py /Users/haozhugogo/Downloads/sparktest.txt
//spark自帶叢集跑 本機是driver,可以看到日誌
spark-submit --master spark://192.168.8.19:7077
--deploy-mode cluster /Users/haozhugogo/Downloads/hdfs_wordcount.py /Users/haozhugogo/Downloads/sparktest.txt
//spark自帶叢集跑 其他機器是driver,本機看不到具體日誌了
spark-submit --master yarn --deploy-mode client
/Users/haozhugogo/Downloads/hdfs_wordcount.py /Users/haozhugogo/Downloads/sparktest.txt //利用yarn叢集來跑 本機是driver,可以看到日誌
spark-submit --class
ScalaTest --master yarn --deploy-mode cluster
/Users/haozhugogo/Downloads/sparkStreamingTest.jar /Users/haozhugogo/Downloads/sparktest.txt //利用yarn叢集來跑 其他機器是driver,本機看不到具體日誌了