http://blog.csdn.net/reesun/article/details/8556078 (服务端,客户端及服务客户一并配置,3种样例)
http://www.cnblogs.com/linbingdong/p/5829369.html
http://blog.csdn.net/reesun/article/details/8556078 (Server, Client同节点与不同节点)
Hive安装配置指北(含Hive Metastore详解)
http://blog.csdn.net/u014695188/article/details/54646575
hdfs dfs -mkdir -p /usr/hive/warehouse hdfs dfs -mkdir -p /usr/hive/tmp hdfs dfs -mkdir -p /usr/hive/log hdfs dfs -chmod g+w /usr/hive/warehouse hdfs dfs -chmod g+w /usr/hive/tmp hdfs dfs -chmod g+w /usr/hive/log
hive的三种启动方式区别:
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 &
http://blog.csdn.net/wulantian/article/details/38112359
hive下执行hdfs
hive> dfs -ls /user/hive/warehouse;
hive> desc test_table;
select * from part_testt where tdate='02' and city = 'gz';
load data local inpath '/usr/local/test-data/hive.txt' into table part_testt partition (tdate='02', city='gz');
bin/hive --service hiveserver >/dev/null 2>/dev/null &
$ hive --service metastore &
-
$ hive --service hiveserver2 &
hive --service hiveserver -p
10002 &
service hive-metastore stop
service hive-server stop
nohup hive --service hiveserver2 >/dev/null 2>&1 &
nohup hive --service hiveserver2 >/dev/null 2>&1 &