Installation steps for Hive

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.