Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

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