首页 > 代码库 > java+hadoop+spark+hbase+scala+kafka+zookeeper配置环境变量记录备忘

java+hadoop+spark+hbase+scala+kafka+zookeeper配置环境变量记录备忘

java+hadoop+spark+hbase+scala

在/etc/profile 下面加上如下环境变量

 

export JAVA_HOME=/usr/java/jdk1.8.0_102
export JRE_HOME=/usr/java/jdk1.8.0_102/jre
export CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib:$JRE_HOME/lib
export PATH=$JAVA_HOME/bin:/usr/local/nginx/sbin:$PATH:$JRE_HOME/bin

export SCALA_HOME=/usr/local/scala
export PATH=$PATH:$SCALA_HOME/bin

export HADOOP_HOME=/usr/local/hadoop
export PATH=$PATH:$HADOOP_HOME/bin

export HBASE_HOME=/usr/local/hbase
export PATH=$PATH:$HBASE_HOME/bin

#kafka zookeeper
export KAFKA_HOME=/usr/local/kafka
export ZK_HOME=/usr/local/zookeeper

export PATH=$KAFKA_HOME/bin:$ZK_HOME/bin:$PATH

 

java+hadoop+spark+hbase+scala+kafka+zookeeper配置环境变量记录备忘