java+hadoop+spark+hbase+scala
在/etc/profile 下面加上如下环境变量
export JAVA_HOME=/usr/java/jdk1.8.0_102
export JRE_HOME=$JAVA_HOME/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 YARN_HOME=$HADOOP_HOME
export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native
export HADOOP_CONF_DIR=${HADOOP_HOME}/etc/hadoop
export HDFS_CONF_DIR=${HADOOP_HOME}/etc/hadoop
export YARN_CONF_DIR=${HADOOP_HOME}/etc/hadoop
export PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin:$HBASE_HOME/bin:$HIVE_HOME/bin:$ZOOKEEPER/bin export HBASE_CLASSPATH=/usr/local/hbase/conf
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
#FLUME
export FLUME_HOME=/usr/local/flume
export PATH=.:$FLUME_HOME/bin:$PATH