How to use Hadoop commands

Source: Internet
Author: User
[Hadoop @ hadoop222logs] $/home/hadoop/hadoop-1.1.2/bin/hadoopfs? Use Helios sshell: create a directory named/daihu [hadoop @ hadoop222logs] $/home/hadoop/hadoop-1.1.2/bin/hadoopdfs-mkdir [hadoop @ hadoop222 logs] $/home/hadoop/hadoop-1.1.2/bin /hadoop fs? Help
DFSShell usage:
Create a directory named/daihu
[Hadoop @ hadoop op222 logs] $/home/hadoop/hadoop-1.1.2/bin/hadoopdfs-mkdir daihu
[Hadoop @ hadoop222 logs] $/home/hadoop/hadoop-1.1.2/bin/hadoopdfs-mkdir paul
View the new directory:
[Hadoop @ hadoop op222 logs] $/home/hadoop/hadoop-1.1.2/bin/hadoop fs-ls
Found 2 items
Drwxr-xr-x? Hadoopsupergroup 02013-07-24/user/hadoop/daihu
Drwxr-xr-x? Hadoopsupergroup 02013-07-24/user/hadoop/paul
You have new mail in/var/spool/mail/root
[Hadoop @ hadoop222 logs] $
Upload an object:
[Hadoop @ hadoop222 logs] $/home/hadoop/hadoop-1.1.2/bin/hadoop fs-put/home/paul/redis_insert.py/usr/hadoop/paul
Upload a large file:
[Hadoop @ hadoop222 logs] $/home/hadoop/hadoop-1.1.2/bin/hadoop fs-put/var/lib/redis/dump. rdb/usr/hadoop/daihu
Upload a file
[Hadoop @ hadoop222 ~] $/Home/hadoop/hadoop-1.1.2/bin/hadoop fs-put/home/paul/redis_backup_minute.py/user/hadoop/paul/
View uploaded files
[Hadoop @ hadoop222 ~] $/Home/hadoop/hadoop-1.1.2/bin/hadoop fs-lsr/user/hadoop/paul
-Rw-r? R? 2 hadoopsupergroup 617 2013-07-2419: 24/user/hadoop/paul/redis_backup_minute.py
View and upload a large file:
[Hadoop @ hadoop222 ~] $/Home/hadoop/hadoop-1.1.2/bin/hadoop fs-lsr/user/hadoop/paul
-Rw-r? R? 2 hadoop supergroup 393418579 2013-07-2419: 29/user/hadoop/paul/dump. rdb
-Rw-r? R? 2 hadoopsupergroup 617 2013-07-2419: 24/user/hadoop/paul/redis_backup_minute.py
[Hadoop @ hadoop222 ~] $
[Hadoop @ hadoop222 ~] $
Administrator tool:
[Hadoop @ hadoop222 logs] $/home/hadoop/hadoop-1.1.2/bin/hadoow.sadmin-report
Configured Capacity: 101568978944 (94.59 GB)
Present Capacity: 78086033408 (72.72 GB)
DFS Remaining: 78085951488 (72.72 GB)
DFS Used: 81920 (80 KB)
DFS Used %: 0%
Under replicated blocks: 0
Blocks with primary UPT replicas: 0
Missing blocks: 0
-----------------
Datanodes available: 2 (2 total, 0 dead)
Name: 172.1.3.223: 50010
Decommission Status: Normal
Configured Capacity: 50784489472 (47.3 GB)
DFS Used: 40960 (40 KB)
Non DFS Used: 17533685760 (16.33 GB)
DFS Remaining: 33250762752 (30.97 GB)
DFS Used %: 0%
DFS Remaining %: 65.47%
Last contact: Wed Jul 24 17:56:13 CST 2013
Name: 172.1.3.221: 50010
Decommission Status: Normal
Configured Capacity: 50784489472 (47.3 GB)
DFS Used: 40960 (40 KB)
Non DFS Used: 5949259776 (5.54 GB)
DFS Remaining: 44835188736 (41.76 GB)
DFS Used %: 0%
DFS Remaining %: 88.29%
Last contact: Wed Jul 24 17:56:12 CST 2013
You have new mail in/var/spool/mail/root
[Hadoop @ hadoop222 logs] $

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.