hadoopビッグデータの最も全環境変数の構成-ワンタッチで解決

1283 ワード

#jdk
export JAVA_HOME=/home/soft/jdk
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar

#scala
export SCALA_HOME=/home/soft/scala/
export PATH=$SCALA_HOME/bin:$PATH


#hadoop
export HADOOP_HOME=/home/soft/hadoop
export PATH=$PATH:$JAVA_HOME/bin
export PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin

export HADOOP_COMMON_LIB_NATIVE_DIR=$HADOOP_HOME/lib/native  
export HADOOP_OPTS="-Djava.library.path=$HADOOP_HOME/lib"  

export JAVA_LIBRARY_PATH=$HADOOP_HOME/lib/native  


#marven
export M2_HOME=/home/soft/marven
export PATH=$PATH:$M2_HOME/bin


#hive
export HIVE_HOME=/home/soft/hive
export PATH=$PATH:$HIVE_HOME/bin


#hbase
export HBASE_HOME=/home/soft/hbase
export PATH=$PATH:$HBASE_HOME/bin

#zk
export ZK_HOME=/home/soft/zk
export PATH=$PATH:$ZK_HOME/bin

#pig
export PIG_HOME=/home/soft/pig
export PATH=$PATH:$PIG_HOME/bin

#sqoop
export SQOOP_HOME=/home/soft/sqoop
export PATH=$PATH:$SQOOP_HOME/bin

#flume
export FLUME_HOME=/home/soft/flume
export PATH=$PATH:$FLUME_HOME/bin

#kafka
export KAFKA_HOME=/home/soft/kafka
export PATH=$PATH:$KAFKA_HOME/bin

#storm
export STORM_HOME=/home/soft/storm
export PATH=$PATH:$STORM_HOME/bin

#spark
export SPARK_HOME=/home/soft/spark
export PATH=$PATH:$SPARK_HOME/bin:$SPARK_HOME/sbin