그래서 .profile에서 .bashrc을 읽게 하는 코드를 추가해 준다.
.profile
if [ -f ~/.bashrc ]; then . ~/.bashrc; fi
.bashrc
export JAVA_HOME=`/usr/libexec/java_home -v 1.7`
export HADOOP_INSTALL=/Users/hadoop/hadoop
export HADOOP_CONF_DIR=$HADOOP_INSTALL/etc/hadoop/
export HADOOP_MAPRED_HOME=$HADOOP_INSTALL
export HADOOP_COMMON_HOME=$HADOOP_INSTALL
export HADOOP_HDFS_HOME=$HADOOP_INSTALL
export YARN_HOME=$HADOOP_INSTALL
export PATH=$PATH:$HADOOP_INSTALL/bin:$HADOOP_INSTALL/sbin
export HADOOP_LOG_DIR=/Users/hadoop/log
http://www.sixplan.net/blogs/?p=51
댓글 없음:
댓글 쓰기