Three configuration methods for Hive metastore
http://blog.csdn.net/reesun/article/details/8556078 (server, client and service client are configured together, 3 samples)
http://www.cnblogs.com/linbingdong/p/5829369.html
http://blog.csdn.net/reesun/article/details/8556078 (Server, Client same node and different node)
Hive installation and configuration guide (including Hive Metastore detailed explanation)
hive2.1.1 installation and deployment
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
The difference between the three startup methods of hive:
1. hive command line mode, directly enter the execution program of /hive/bin/hive, or enter hive –service cli
for command line query on the Linux platform, the query statement is basically similar to the mysql query statement
2 , the startup method of the hive web interface, hive –service hwi
is used to access hive through a browser, it does not feel much use
3, hive remote service (port number 10000) startup method, nohup hive –service hiveserver &
use java and other programs to achieve Drivers such as jdbc use this startup method to access hive. This is the most needed way for programmers to
start hive service: $HIVE_HOME/bin/hive --service hiveserver 10001 >/dev/null 2>/dev/null &
Hive common commands to organize
http://blog.csdn.net/wulantian/article/details/38112359
Execute hdfs under hive
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 &