Virtual machine installation CentOS7 Minimal, JDK, and Hadoop

Source: Internet
Author: User


Virtual machine installation CentOS7 Minimal, JDK, and hadooptable of Contents
    • 1. Installation version
    • 2. PD Installation
    • 3. Vim Installation and configuration
    • 4. The hostname changed to Bogon solution
    • 5. Installation and configuration of JDK
    • 6. Hadoop Installation Test
1Installation version

Centos-7-x8664-minimal-1503-01.iso

2PD Installation

Do not select Quick Install
After startup, the command line chooses to install
Network&hostname:on
Choose Good Installation DESTINATION
Root Password & user creation

3Vim Installation and Configuration
Suyum Install vim-enhanced.x86_64

Vim configuration file Import

SCP ~/.VIMRC [Email protected]:/home/galaxy/

If you want to modify the configuration file as root, also copy one to the/root directory

4Workaround for hostname changed to Bogon

Modify configuration files for Linux hosts/etc/sysconfig/network and/etc/hosts
1). Modify the host name inside the/etc/sysconfig/network.

[[email protected] ~]#  VI/ETC/SYSCONFIG/NETWORKNETWORKING=YESHOSTNAME=XG                //modify hostname for XG in this

2). Modify the name inside the/etc/hosts

[Email protected] ~]#  vi/etc/hosts127.0.0.1              xg

3). Do not need to restart the host, and finally execute under the terminal:

[[email protected] ~]# hostname xg     //XG for modified Hostname[[email protected] ~]#

This method is not useful after restarting
http://xugang-1017-126-com.iteye.com/blog/1633934

5Installation and configuration of the JDK
SCP ~/soft/01-Programming/java/jdk/jdk-8u45-linux-x64.rpm [email PROTECTED]:/HOME/GALAXY/SURPM-IVH jdk-8u45-linux-x64.rpm

The/etc/profile file adds:

Export Java_home=/usr/java/jdk1.8.0_45export classpath= ".: $JAVA _home/lib: $CLASSPATH" Export path= "$JAVA _home/bin:$ PATH "Source/etc/profile
6Hadoop installation Test
SCP ~/soft/01-Programming/hadoop-2.5.1.tar.gz [email Protected]:/home/galaxy/tar xvzf Hadoop-2.5.1.tar.gz[[email protected] hadoop-2.5.1]$ mkdir inputcp etc/hadoop/*.xml input./bin/hadoop jar share/hadoop/mapreduce/ Hadoop-mapreduce-examples-2.5.1.jar grep input Output ' dfs[a-z. + ' [[email protected] hadoop-2.5.1]$ cat Output/*1dfsadmin

Author:galaxy

created:2015-11-09 Mon 10:52

Emacs 24.5.6 (ORG mode 8.2.10)

Validate

Virtual machine installation CentOS7 Minimal, JDK, and Hadoop

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.