Hadoop---Environment building the next day

Source: Internet
Author: User

1. Prepare the Linux image, VMware or Visualbox, and then install the Linux system on the virtual machine to save the user name and password.

2. Configure the virtual machine process, you can set the memory to 1GB, hard disk 8GB, network set to NAT, turn on sharing and so on.

3. Install the Linux image.

4. Solve the problem of Chinese input in Linux. The steps are as follows:

(1) switch to the root user, or use the terminal type command Su to enter the root password.

(2) Type yum install "@Chinese support".

(3) After waiting for completion, type exit to exit terminal.

(4) Go back to the desktop and enter System->preferences->input method (if not, write it off first).

(5) Enter, select the above USB IBUS (recommended), click the Input Method Preferences button, pop up the IBUS Preferences dialog box, select the Input Method tab, Select Chinese in the drop-down menu and click the Add button.

(6) You can set the start bar prompt in the General tab, toggle shortcut keys, and so on.

(7) After the cancellation, you can use the input method.

5. Follow the steps to configure root permissions for the user first. Here's how:

Method One:

(1) Log in as root, or use the terminal type command Su to enter the root password.

(2) Open the/etc/sudoers file with the VI command and find the following line:

%wheel all= (All) all

Modify the above code to:

# #Allows people in group wheel to run all commands %wheel all= (All) all

(3) Modify the user so that it enters the root group (wheel). The command is as follows:

Method Two:

(1) Log in as root, or use the terminal type command Su to enter the root password.

(2) Open the/etc/sudoers file with the VI command and find the following line:

# #Allows ROOT to run any commands anywhere rootall = (all) all

Modify the above code to:

# #Allows people in group wheel to run all commands rootall =(all) all xxx (user name) all = [All] All

6. Modify the machine name (under the premise of modifying the user root permission). The command is as follows:

(1) Use the terminal type command Su to enter the root password.

(2) Under Terminal type Vi/etc/sysconfig/network, enter VI Modify mode, shown as:

networking=Yes HOSTNAME=localhost.localdomain

Modified to:

networking=Yes Networking_ipv6=no HOSTNAME=xxx (host name)

(3) Restart effective, under terminal can see the hostname has been rid of.

7. To open the SSH service, proceed as follows:

(1) Open terminal, type the command Su, enter the root password.

(2) First check whether Openssh-server has been installed, the command is as follows:

Rpm-qa |grep SSH

If it is not installed, type the command and wait for it to complete:

Yum Install Openssh-server

(3) After the installation of the/ETC/INIT.D directory will be added to a service called sshd, you can set up the SSHD service boot automatically, the command is as follows:

Chkconfig sshd on

You can also use Chkconfig sshd off to turn off the auto-start service.

In addition, you can use Chkconfig--add sshd to add services, use Chkconfig--list to list all self-starting services, and use Chkconfig--list sshd to see if a service is self-booting (the 0~6 is off is not self-booting).

(4) Type Chkconfig--list sshd to check if sshd is set to power on at this runlevel, or if it is not set to start automatically, type Chkconfig--level 2345 sshd on setting to start automatically. Then type services sshd Restart Restart service, type NETSTAT-ANTP |grep sshd to confirm that Port 22 has been started, type IPTABLES-NL to see if Port 22 is released, and if not, set SSH Service release in the firewall settings 。

8. Download and install JDK 1.6 and use terminal to unzip the installation JDK as follows:

/home/hadoop/desktop/hadoop/jdk-6u24-linux-i586.bin

After the installation is complete, execute the Edit profile with the following code:

Vi/etc/profile

Before UMAs k022, add a statement to configure the environment variables:

Export java_home=/home/hadoop/jdk1.6. 0_24 (the exact installation path and JDK version may be different) export Java_bin=/home/hadoop/jdk1.6.0_24/< C1>bin export PATH= $PATH: $JAVA _home/bin export CLASSPATH=.: $JAVA _home/lib/dt.jar: $JAVA _home/li b/Tools.jar export java_home java_bin PATH CLASSPATH

Last use. /etc/profile the modified file takes effect immediately (note that there is a space between the path).

You can type the java-version command to determine if the environment is configured correctly, and if information such as the version number succeeds, the JDK environment is configured successfully.

Hadoop---Environment building the next day

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.