Skip to content

Instantly share code, notes, and snippets.

@pingles
Created May 4, 2011 08:11
Show Gist options
  • Save pingles/954913 to your computer and use it in GitHub Desktop.
Save pingles/954913 to your computer and use it in GitHub Desktop.
Hive upstart init script
start on runlevel [2345]
stop on runlevel [06]
respawn
script
export HOME="/home/deploy"
export JAVA_HOME="/usr/lib/jvm/java-6-sun"
export HIVE_HOME="/usr/lib/hive"
export HADOOP_HOME="/usr/lib/hadoop"
HIVE_PORT=10001 $HIVE_HOME/bin/hive --service hiveserver
end script
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment