Hortonworks hadoop export paths

For spark, java, yarn and hadoop:
vi /etc/profile

#### Add the below exports and path ####
export SPARK_HOME=/usr/hdp/current/spark2-client
export SPARK_CONF_DIR=/etc/spark2/conf
export SPARK_LOG_DIR=/var/log/spark2
export SPARK_PID_DIR=/var/run/spark2
export HADOOP_HOME=/usr/hdp/current/hadoop-client
export HADOOP_CONF_DIR=/usr/hdp/current/hadoop-client/conf
export JAVA_HOME=/mnt/vol1/jdk1.8.0_144
export HADOOP_COMMON_HOME=/usr/hdp/current/hadoop-client
export HADOOP_HDFS_HOME=/usr/hdp/current/hadoop-hdfs-client
export HADOOP_MAPRED_HOME=/usr/hdp/current/hadoop-mapreduce-client
export YARN_CONF_DIR=/usr/hdp/current/hadoop-client/etc/hadoop
export PATH=$PATH:$JAVA_HOME/bin:$SPARK_HOME:$SPARK_CONF_DIR:$SPARK_LOG_DIR:$SPARK_PID_DIR:$HADOOP_HOME:$HADOOP_CONF_DIR:$HADOOP_COMMON_HOME:$HADOOP_HDFS_HOME:$HADOOP_MAPRED_HOME:$YARN_CONF_DIR

# source /etc/profile
0 Comments

There are no comments yet

Leave a comment

Your email address will not be published. Required fields are marked *