Skip to content

Instantly share code, notes, and snippets.

@sgykfjsm
Last active January 2, 2016 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgykfjsm/8357410 to your computer and use it in GitHub Desktop.
Save sgykfjsm/8357410 to your computer and use it in GitHub Desktop.
#!/bin/bash
sudo -u mapred -g hadoop \
env JAVA_HOME=/usr/lib/jvm/java-1.7.0-openjdk-amd64 \
HADOOP_HOME=`pwd`/hadoop-2.0.0-mr1-cdh4.2.1 \
HADOOP_CONF_DIR=/etc/hadoop/conf \
JAVA_LIBRARY_PATH=/usr/local/lib/ \
`pwd`/hadoop-2.0.0-mr1-cdh4.2.1/bin/hadoop jobtracker
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment