在spark-env.sh文件中配置了一下参数;
export SPARK_WORKER_MEMORY=4g
export SPARK_WORKER_CORES=1
export SPARK_WORKER_INSTANCES=12但是现在我想恢复到原来的默认分配的资源该怎么恢复呢
怎么只显示最后俩个,请大家帮帮忙。

解决方案 »

  1.   

    spark-submit提交时候
    --class cn.spark.sparktest.core.WordCountCluster \--num-executors 3 \  配置executor的数量--executor-memory 100m \  配置每个executor的内存大小--executor-cores 3 \  配置每个executor的cpu core数量--driver-memory 100m \  配置driver的内存(影响很大)/usr/local/SparkTest-0.0.1-SNAPSHOT-jar-with-dependencies.jar \
    可以手动指定