Skip to content

Instantly share code, notes, and snippets.

@xiaom
Last active August 29, 2015 13:58
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 xiaom/10414323 to your computer and use it in GitHub Desktop.
Save xiaom/10414323 to your computer and use it in GitHub Desktop.
hive-scripts/start_hive.sh: Scripts to start hive
#!/bin/sh
# http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.0.0.2/bk_reference/content/reference_chap3_1.html
export HIVE_HOME=/opt/hive/hive-0.12.0-bin/
export HIVE_CONF=$HIVE_HOME/conf.drill/
su -l hive -c "env HADOOP_HOME=/usr nohup $HIVE_HOME/bin/hive --service metastore > /tmp/hive.out 2> /tmp/hive.log &"
su -l hive -c "nohup $HIVE_HOME/bin/hiveserver2 -hiveconf hive.metastore.uris=\" \" > /tmp/hiveServer2.out 2>/tmp/hiveServer2.log &"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment