hive 三种启动方式及用途,关注通过jdbc连接的启动

 1, hive  命令行模式,直接输入/hive/bin/hive的执行程序,或者输入 hive –service cli

       用于linux平台命令行查询,查询语句基本跟mysql查询语句类似

 2, hive  web界面的启动方式,hive –service hwi  

      用于通过浏览器来访问hive,感觉没多大用途

3, hive  远程服务 (端口号10000) 启动方式,nohup hive –service hiveserver  & 

      用java等程序实现通过jdbc等驱动的访问hive就用这种起动方式了,这个是程序员最需要的方式了

 启动hive service :$HIVE_HOME/bin/hive --service hiveserver 10001 >/dev/null 2>/dev/null &

相关的jar包下载:http://mvnrepository.com/artifact/org.apache.hive/hive-service/0.8.1

 
link:http://blog.csdn.net/a221133/article/details/6734746
原文地址:https://www.cnblogs.com/tangtianfly/p/2398193.html