java+hadoop+spark+hbase+scala
在/etc/profile 下面加上如下环境变量
export JAVA_HOME=/usr/java/jdk1.8.0_102
export JRE_HOME=$JAVA_HOME/jreexport CLASSPATH=$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib:$JRE_HOME/libexport PATH=$JAVA_HOME/bin:/usr/local/nginx/sbin:$PATH:$JRE_HOME/binexport SCALA_HOME=/usr/local/scala
export PATH=$PATH:$SCALA_HOME/binexport HADOOP_HOME=/usr/local/hadoop
export YARN_HOME=$HADOOP_HOMEexport HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/nativeexport HADOOP_CONF_DIR=${HADOOP_HOME}/etc/hadoopexport HDFS_CONF_DIR=${HADOOP_HOME}/etc/hadoopexport YARN_CONF_DIR=${HADOOP_HOME}/etc/hadoopexport PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin:$HBASE_HOME/bin:$HIVE_HOME/bin:$ZOOKEEPER/bin export HBASE_CLASSPATH=/usr/local/hbase/confexport HBASE_HOME=/usr/local/hbaseexport PATH=$PATH:$HBASE_HOME/bin#kafka zookeeper
export KAFKA_HOME=/usr/local/kafkaexport ZK_HOME=/usr/local/zookeeperexport PATH=$KAFKA_HOME/bin:$ZK_HOME/bin:$PATH#FLUME
export FLUME_HOME=/usr/local/flumeexport PATH=.:$FLUME_HOME/bin:$PATH