Hadoop based Hortonworks installation: Java installation

Source: Internet
Author: User
Tags hortonworks

The Hadoop installation in this article is based on the Hortonworks RPMs installation

Documents See: Http://docs.hortonworks.com/CURRENT/index.htm

Http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u31-download-1501634.html

Download Java jdk-6u31-linux-x64.bin

#Java settings

chmod U+x/home/jdk-6u31-linux-x64.bin

/home/jdk-6u31-linux-x64.bin-noregister

MV jdk1.6.0_31/usr/

#Create Symbolic Links (symlinks) to the JDK.

Mkdir/usr/java

Ln-s/usr/jdk1.6.0_31//usr/java/default

Ln-s/usr/java/default/bin/java/usr/bin/java

#Set up your environment to define Java_home

#to put the Java Virtual Machine and the Java compiler on your path.

echo "Export Java_home=/usr/java/default" >>/etc/profile

echo "Export path=\ $JAVA _home/bin:\ $PATH" >>/etc/profile

Source/etc/profile

This article is from the "Shadow Knight" blog, please be sure to keep this source http://andylhz2009.blog.51cto.com/728703/1019703

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.