Instalé Hive 0.14 encima de Hadoop 2.6.0.
La configuración consistía principalmente en extraer el archivo tar.bin.
Seguí esta guía para hacer la configuración.
http://www.ishaanguliani.com/content/hive-0140-setup-ubuntu
Comienzo hiveserver2 con una línea de comando:
( $HIVE_HOME/bin/hiveserver2 &> hiveserver.log & )
Ahora, me pregunto cuál es el adecuado para detener hiveserver2. Puedo matarlo pero dudo que proporcione una salida elegante.
escriba un pequeño script de shell para encontrar el proceso hiveserver2 y detenerlo. Utilicé el siguiente script de shell para detener hiveserver2 y el proceso de metastore de hive. Espero que esto ayude.
hive2_pid=`pgrep -f org.apache.hive.service.server.HiveServer2` if [[ -n "$hive2_pid" ]] then echo "Found hivesevrer2 PID-- "$hive2_pid kill $hive2_pid # if process is still around, use kill -9 if ps -p $hive2_pid > /dev/null ; then echo "Initial kill failed, killing with -9 " kill -9 $hive2_pid fi echo "Hive server2 stopped successfully" else echo "Hiveserver2 process not found , HIveserver2 is not running !!!" fi meta_pid=`pgrep -f org.apache.hadoop.hive.metastore.HiveMetaStore` if [[ -n "$meta_pid" ]] then echo "Found hivesevrer2 PID-- "$meta_pid kill $meta_pid # if process is still around, use kill -9 if ps -p $meta_pid > /dev/null ; then echo "Initial kill failed, killing with -9 " kill -9 $meta_pid fi echo "Hive metastore stopped successfully" else echo "Hive metastore process not found , Hive metastore is not running !!!" fi
$ sudo service hive-server2 stop
consulte este enlace: http://www.cloudera.com/documentation/archive/cdh/4-x/4-2-0/CDH4-Installation-Guide/cdh4ig_topic_18_8.html