标签:任务 zookeeper out 解压 export hdf route add directory enable
docker cp spark-2.4.4-bin-hadoop2.7.tar.gz cluster-master:/root/tar
tar xivf spark-2.4.4-bin-hadoop2.7.tar.gz -C /opt/hadoop
SPARK_LOCAL_DIRS=/opt/spark/spark-2.4.4-bin-hadoop2.7
HADOOP_CONF_DIR=/opt/hadoop/hadoop-2.7.7/etc/hadoop
YARN_CONF_DIR=/opt/hadoop/hadoop-2.7.7/etc/hadoop
JAVA_HOME=/opt/jdk/jdk1.8.0_221
export SPARK_MASTER_IP=cluster-master
export SPARK_DAEMON_JAVA_OPTS="
-Dspark.deploy.recoveryMode=ZOOKEEPER
-Dspark.deploy.zookeeper.url=172.15.0.2:2181
-Dspark.deploy.zookeeper.dir=/sparkmaster"
cluster-slave1
cluster-slave2
cluster-slave3
spark.eventLog.enabled true
spark.eventLog.dir hdfs://jinbill/spark/eventLog
spark.history.fs.logDirectory hdfs://jinbill/spark/eventLog
spark.eventLog.compress true
start-all.sh
Spark Master 访问地址
Spark Slave1 访问地址
Spark Slave2 访问地址
Spark Slave3 访问地址
Spark 历史任务 访问地址
标签:任务 zookeeper out 解压 export hdf route add directory enable
原文地址:https://www.cnblogs.com/njpkhuan/p/11611951.html