Skip to content

Instantly share code, notes, and snippets.

@xiaom
Last active Aug 29, 2015
Embed
What would you like to do?
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