Centos8下安装Spark

1、下载压缩包

	命令:wget https://downloads.lightbend.com/scala/2.11.8/scala-2.11.8.tgz

2、解压缩包

	命令:tar -xzvf scala-2.11.8.tgz

3、环境变量配置

export JAVA_HOME=/opt/java/jdk1.8.0_301
export HADOOP_HOME=/opt/Hadoop/hadoop-2.7.3
export HADOOP_CONF_DIR=${HADOOP_HOME}/etc/hadoop
export HADOOP_COMMON_LIB_NATIVE_DIR=${HADOOP_HOME}/lib/native
export SPARK_HOME=/opt/spark/spark-2.1.0-bin-hadoop2.6
export SCALA_HOME=/opt/scala/scala-2.11.8
export CLASSPATH=$:CLASSPATH:$JAVA_HOME/lib/
export PATH=.:${JAVA_HOME}/bin:${HIVE_HOME}/bin:${HADOOP_HOME}/bin:/opt/mongodb/bin:${SPARK_HOME}/bin:${SCALA_HOME}/bin:$PATH
export JAVA_LIBRARY_PATH=$HADOOP_HOME/lib/native
export HIVE_HOME=/opt/hive/apache-hive-2.3.9-bin
export HIVE_CONF_DIR=${HIVE_HOME}/conf

Centos8下安装Spark

4、启动Spark

	命令(没有空格!!没有空格!!!没有空格!!!闷头查了半天bash,,,,):spark-shell

Centos8下安装Spark

Centos8下安装Spark

上一篇:centos8安装java1.8


下一篇:apns关于APP数字角标的理解