hadoop environment configuration

vi edit /etc/profile export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.7.0_10.jdk/Contents/Home
(mac is installed under /Library/Java/JavaVirtualMachines by default, just find the corresponding version) export HADOOP_HOME=/Volumes /HDD2/hadoop/hadoop-1.1.2
(hadoop installation root directory) export HBASE_HOME=Volumes/HDD2/hadoop/hbase-0.94.7-security
(hbase installation root directory)
configure the path variable
export PATH=$PATH:$ JAVA_HOME/bin:$HADOOP_HOME/bin:$HBASE_HOME/bin
Save the command after adding: wq
make it effective immediately after saving source /etc/profile

References: http://blog.csdn.net/hguisu/article/details/7237395

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326642581&siteId=291194637
Recommended