hiveServe2 With AMI 3.3.1, it is started as soon as the cluster is ready.
$ ps -ef | grep hiveserver2
hadoop 27009 539 0 02:03 pts/9 00:00:00 grep hiveserver2
root 31866 1 0 Dec08 pts/1 00:00:00 su - hadoop -c bash -c /home/hadoop/hive/bin/hive --service hiveserver2
That's why it's running.
You can easily start and stop it because a script is prepared.
#Start-up
$ sudo /etc/init.d/hive-serverd start
#End
$ sudo /etc/init.d/hive-serverd stop
The log is in *** / mnt / var / log / hive-serve ***, so check it for the time being.
The HiveServer2 client for python has pyhs2, It's easy to install with pip, so I'll give it a try.
$ sudo pip install pyhs2
It's ok, so install this one before running it.
$ sudo yum install cyrus-sasl-devel.x86_64
You should be able to enter safely with this.
But this pip is
/ usr / bin / python2.7
It is used here
/ usr / bin / python
Not here.
This may have been added during Hue installation.
After that, borrow sample You can connect by rewriting user and password to ** hive **.
Recommended Posts