#追加至/etc/profile
#Java PATH
export JAVA_HOME=/usr/local/java
export JRE_HOME=${JAVA_HOME}/jre
export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
#Hadoop PATH
export HADOOP_HOME=/usr/local/hadoop
export HADOOP_INSTALL=$HADOOP_HOME
export HADOOP_MAPRED_HOME=$HADOOP_HOME
export HADOOP_COMMON_HOME=$HADOOP_HOME
export HADOOP_HDFS_HOME=$HADOOP_HOME
export YARN_HOME=$HADOOP_HOME
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:$HIVE_HOME/lib/*
export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib:$HADOOP_COMMON_LIB_NATIVE_DIR"
#Hive PATH
export HIVE_HOME=/usr/local/hive
#hbase path
export HBASE_HOME=/usr/local/hbase
#sqoop path
export SQOOP_HOME=/usr/local/sqoop
#ZOOKEEPER PATH
export ZOOKEEPER_HOME=/usr/local/zookeeper
#FLUME_PATH
export FLUME_HOME=/usr/local/flume
export FLUME_HOME_DIR=$FLUME_HOME/conf
#Kafka PATH
export KAFKA_HOME=/opt/kafka
#Scala PATH
export SCALA_HOME=/opt/scala
#Spark PATH
export SPARK_HOME=/opt/spark
#PATH
export PATH=$PATH:$HADOOP_HOME/sbin:$HADOOP_HOME/bin:$JAVA_HOME/bin:$HIVE_HOME/bin:$HBASE_HOME/bin:$SQOOP_HOME/bin:$ZOOKEEPER_HOME/bin:$FLUME_HOME/bin:$KAFKA_HOME/bin:$SCALA_HOME/bin:$SPARK_HOME/bin
Hadoop生态环境变量
最新推荐文章于 2023-05-28 19:20:32 发布