To install the hive1.2.1 in Node2, proceed as follows:
1. Unpacking the hive's installation package
2. Change Directory: MV apache-hive-1.2.1-bin/home/install/hive-1.2
3.VI ~/.bash_profile
To configure the environment variables:
SOURCE ~/.bash_profile
The result may be a problem that is incompatible with the Hadoop jar package JLine and can be manually modified
CP Hive-1.2/lib/jline-2.12.jar hadoop-2.5/share/hadoop/yarn/lib/
RM-RF Hadoop-2.5/share/hadoop/yarn/lib/jline-0.9.94.jar
Hive (Start hive), exit the available quit;
Hive has its own database derby, but Derby does not support distributed
Hiveserver2 &>/tmp/hive.log & (can view error log under TMP Hive.log)
NETSTAT-NTLP | grep 100 (see background monitoring)
Tail-f/tmp/hive.log
You can also install MySQL on a virtual machine at will, for example, on Node3:
1. On node3: Yum install Mysql-server
2.cd/home/install/hive-1.2/conf/, make the following edits to the Hive-site file
Service mysqld start to launch MySQL
Quit available quit
Http://node4:50070/explorer.html#/user/hive/warehouse/trackinfo (View the path to the created table)
Installation steps for Hive