Created
January 22, 2016 05:35
-
-
Save myouju/32ddb8941f6975133a34 to your computer and use it in GitHub Desktop.
emrでhive on tezをするときにclasspathをちゃんと設定する方法. bootstrapで実行する
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export HADOOP_USER_CLASSPATH_FIRST=true; | |
echo " | |
export TEZ_CONF_DIR=/etc/tez/conf | |
export TEZ_HOME=/home/hadoop/tez | |
export TEZ_JARS=/apps/tez/tez-0.4.1/*:/apps/tez/tez-0.4.1/lib/* | |
export TEZ_LOG_DIR=/home/hadoop/tez/log | |
export HADOOP_CLASSPATH=\${TEZ_CONF_DIR}:\${TEZ_JARS}/*:\${TEZ_JARS}/lib/*:\${HADOOP_CLASSPATH}" >> /home/hadoop/conf/hadoop-user-env.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment