Skip to content

Instantly share code, notes, and snippets.

@myouju
Created January 22, 2016 05:35
Show Gist options
  • Save myouju/32ddb8941f6975133a34 to your computer and use it in GitHub Desktop.
Save myouju/32ddb8941f6975133a34 to your computer and use it in GitHub Desktop.
emrでhive on tezをするときにclasspathをちゃんと設定する方法. bootstrapで実行する
#!/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