Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
# Setting PATH for Python 3.8
# The original version is saved in .zprofile.pysave
PATH="/Library/Frameworks/Python.framework/Versions/3.8/bin:${PATH}"
# Hadoop
export HADOOP_HOME=/Users/welcome/Desktop/hadoop/hadoop-3.2.1/
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_CONF_DIR=$HADOOP_HOME/etc/hadoop
export YARN_CONF_DIR=$HADOOP_HOME/etc/hadoop
export MYSQL_HOME=/usr/local/mysql-8.0.12-macos10.13-x86_64/bin
export M2_HOME=/Users/welcome/Desktop/hadoop/apache-maven-3.8.6
export SCALA_HOME=/Users/welcome/Desktop/hadoop/scala-2.13.0
export SQOOP_HOME=/Users/welcome/Desktop/hadoop/sqoop-1.4.7.bin__hadoop-2.6.0
export HIVE_HOME=/Users/welcome/Desktop/hadoop/apache-hive-3.1.2-bin
export HIVE_PATH=$HIVE_HOME/bin
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_202.jdk/Contents/Home
export SPARK_HOME=/Users/welcome/Desktop/hadoop/spark-3.2.0-bin-hadoop3.2
export PATH=$PATH:$HADOOP_HOME/sbin:$HADOOP_HOME/bin:$MYSQL_HOME:$HIVE_PATH:$M2_HOME/bin:$SCALA_HOME/bin:$SPARK_HOME/bin:$SPARK_HOME/sbin:$SQOOP_HOME/bin
export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib/native"
export KAFKA_HOME=/Users/welcome/Desktop/hadoop/kafka_2.13-2.8.0
#export PATH=$PATH:/Users/welcome/Desktop/hadoop/hadoop-3.2.1/bin:/Users/welcome/Desktop/hadoop/hadoop-3.2.1/sbin
~
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment