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