2.Hadoop Cluster Installation Advanced

Source: Internet
Author: User
Tags hadoop fs

Hadoop advanced 1. Configure SSH-free (1) Modify the slaves file

Switch to master machine, this section is all done in master.

Enter the/usr/hadoop/etc/hadoop directory, locate the slaves file, and modify:

slave1slave2slave3
(2) Sending the public key

Enter the. SSH directory under the root directory:

    1. Generate Public Private key

      SSH-KEYGEN-T RSA

      Will generate two files: Id.rsa id.rsa.pub

    2. Send

      Ssh-copy-id Master

      Ssh-copy-id slave1

      Ssh-copy-id Slave2

      Ssh-copy-id Slave3

      In the. SSH directory on four machines, a Authorized_keys file will be generated

2. Configure cluster set up, Shutdown (1) Open

start-dfs.sh

(2) Close

stop-dfs.sh

3.hdfs file Directory command
Command meaning Example meaning
Hadoop Fs-ls Directory View all files and subdirectories under a directory Hadoop Fs-ls/ Viewing the root directory
Hadoop fs-put Native Files directory Upload native files to the HDFs directory Hadoop fs-put hello.txt/ Upload the hello.txt to the HDFs root directory
Hadoop fs-rm files or directories Delete a file or directory Hadoop fs-rm/hello.txt Delete Hello.txt
Hadoop fs-text text File View text files Hadoop fs-text/hello.txt View Hello.txt Content

2.Hadoop Cluster Installation Advanced

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.