您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

start_services.sh 592B

123456789101112
  1. SPARK_HOME=$(python3 -c 'import json,sys;config=json.load(open("./settings.json"));print(config["spark_home"])')
  2. SPARK_MASTER=$(python3 -c 'import json,sys;config=json.load(open("./settings.json"));print(config["spark_master"])')
  3. echo "Starting spark master..."
  4. "$SPARK_HOME"/sbin/start-master.sh
  5. echo "Starting spark workers..."
  6. SPARK_WORKER_INSTANCES=5 "$SPARK_HOME"/sbin/start-worker.sh "$SPARK_MASTER"
  7. echo "Starting cassandra container..."
  8. docker run -d -p 9042:9042 cassandra
  9. echo "Starting spark history server..."
  10. mkdir -p /tmp/spark-events
  11. "$SPARK_HOME"/sbin/start-history-server.sh