Ubuntu15.04 single/pseudo-distributed installation configuration Hadoop and hive testing machine

Source: Internet
Author: User
Tags mysql version

Environment
  • System: Ubuntu 15.04 32bit
  • Hadoop version: hadoop-2.5.2.tar.gz
  • JDK version: jdk-8u-45-linux-i586.tar.gz
  • Hive Version: apache-hive-0.14.0-bin.tar.gz
  • MySQL version: Open-mysql

STEP 1: Installing the JDK

1. Configure the installation JDK, unzip the JDK,

TAR-ZXVF jdk-8u-45-linux-i586.tar.gz/usr/lib/jkd/

2. Re-configure the/etc/profile file

sudo gedit/etc/profile (only with JDK-related parts first)

3. Configure the default JDK versionTo set up our installed JDK as the default JDK version, do the following.
Execute code:

sudo update-alternatives --install /usr/bin/java java  /usr/lib/jdk /jdk1.8.0_45/bin/java 300  

sudo update-alternatives --install /usr/bin/javac javac /usr/lib/ jdk/jdk1.8.0_45/bin/javac 300  

sudo update-alternatives--config java

Test:

Java-version

STEP 2: Install Hadoop

http://dblab.xmu.edu.cn/blog/powerxing/install-hadoop-2-4-1-single-node/

The author introduces it in detail here.

But some issues need to be addressed:

A. If the system restarts Midway Discovery JPS when the Namenode with the Datanode failed to start normally.

workaround: May be due to a reboot, etc. sbin/start-dfs.sh to run it again.

STEP 3: Install Hive

HTTP://WWW.TUICOOL.COM/ARTICLES/BMUJAJJ  

Installation of the problem is not big, step by step solution can be.

But after running the Hive command, run show databases again; Some problems may occur (no database data is displayed) and prompt:

Relative path in absolute URI: ${system:java.io.tmpdir%7d/$%7bsystem:user.name%7d)

This is because the absolute path is not specified in the Hive_home/conf/hive-site.xml file.

Resolved as follows:

A. Create a new Iotmp folder, which is/usr/local/hive/iotmp

B. Replace ${system:java.io.tmpdir}/${system:user.name} with/usr/local/hive/iotmp in document Hive-site.xml

Restart Hive.

Ubuntu15.04 single/pseudo-distributed installation configuration Hadoop and hive testing machine

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.