Big Data
Spark
tags: Local Mode
-
Pi:
$SPARK_HOME/bin/spark-submit --class org.apache.spark.examples.SparkPi --master local[2] /usr/local/spark/examples/jars/spark-examples_2.11-2.3.1.jar 100
Standalone Mode
-
啟動 Spark 後,在執行下方程式碼
/usr/local/spark/sbin/start-all.sh
-
Pi:
$SPARK_HOME/bin/spark-submit --class org.apache.spark.examples.SparkPi --master spark://192.168.61.132:7077 --executor-memory 1G --total-executor-cores 2 /usr/local/spark/examples/jars/spark-examples_2.11-2.3.1.jar 100
沒有留言:
張貼留言