# /etc/profile
# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc
# It's NOT good idea to change this file unless you know what you
# are doing. Much better way is to create custom.sh shell script in
# /etc/profile.d/ to make custom changes to environment. This will
# prevent need for merging in future updates.
pathmunge () {
case ":${PATH}:" in
*:"$1":*)
;;
*)
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
esac
}
# export JAVA_HOME=/usr/java/jdk1.6.0_35
export JAVA_HOME=/usr/java/jdk1.6.0_35
# export PATH=$PATH:$JAVA_HOME/bin
export PATH=$PATH:$JAVA_HOME/bin
export CLASSPATH=$JAVA_HOME/jre/ext:$JAVA_HOME/lib/tools.jar
export HADOOP_HOME=/home/root/hadoop-1.0.4
pathmunge /home/root/hadoop-1.0.4/bin
if [ -x /usr/bin/id ]; then
if [ -z "$EUID" ]; then
# ksh workaround
EUID=`id -u`
for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
if [ "$PS1" ]; then
. $i
else
. $i >/dev/null 2>&1
fi
fi
done
unset i
unset pathmunge
'Study & Edu > BigData' 카테고리의 다른 글
빅데이터 2틀째 수업, 마지막 시간 필기 (0) | 2015.03.14 |
---|---|
수업 두번 째 날 - server1, server2, server3 설정 및 확인 (0) | 2015.03.14 |
하둡 압축풀기 (0) | 2015.03.07 |
vi /etc/profile 내용 복붙 -파란색줄 추가 (0) | 2015.03.07 |
p)47 에 ssh설정 - 터미널에서 실습한거 복붙 (0) | 2015.03.07 |