Socialabel

Friday, April 18, 2014

Setting Environment Hadoop Ecosystem

/etc/profile
atau
/etc/environment

#
# Check which shell is reading this file
#

# Set Hadoop-related environment variables
export HADOOP_HOME='/opt/hadoop-1.2.0'

# Set JAVA_HOME (we will also configure JAVA_HOME directly for Hadoop later on)
export JAVA_HOME='/usr/lib64/jvm/jre-1.7.0-openjdk'

# Add Hadoop bin/ directory to PATH
export PATH=$PATH:$HADOOP_HOME/bin

### Komodo Program
export KOMODO_HOME='/opt/komodo'
export PATH=$PATH:$KOMODO_HOME/bin

## PIG Setting ###
export PIG_HOME='/opt/pig-0.12.1'
export PATH=$PATH:$PIG_HOME/bin

## HIVE Setting ###
export HIVE_HOME='/opt/hive-0.11.0-bin'
export PATH=$PATH:$HIVE_HOME/bin

No comments:

Post a Comment