0% found this document useful (0 votes)
100 views

Hadoop Basic Commands

This document outlines basic Hadoop Distributed File System (HDFS) commands for creating directories, listing files, copying data between local and HDFS, viewing file contents, deleting data, and getting help. It provides the command syntax to perform common HDFS tasks like creating directories with ./hadoop dfs -mkdir, listing contents with ./hadoop dfs -ls, copying files with ./hadoop dfs -copyFromLocal and ./hadoop dfs -copyToLocal, viewing files with ./hadoop dfs -cat, deleting with ./hadoop dfs -rm, and getting help with ./hadoop dfs -help. It also explains how to view HDFS through a web browser by visiting localhost:50070 and clicking directories.

Uploaded by

bispsolutions
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
100 views

Hadoop Basic Commands

This document outlines basic Hadoop Distributed File System (HDFS) commands for creating directories, listing files, copying data between local and HDFS, viewing file contents, deleting data, and getting help. It provides the command syntax to perform common HDFS tasks like creating directories with ./hadoop dfs -mkdir, listing contents with ./hadoop dfs -ls, copying files with ./hadoop dfs -copyFromLocal and ./hadoop dfs -copyToLocal, viewing files with ./hadoop dfs -cat, deleting with ./hadoop dfs -rm, and getting help with ./hadoop dfs -help. It also explains how to view HDFS through a web browser by visiting localhost:50070 and clicking directories.

Uploaded by

bispsolutions
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 8

Hadoop Basics commands

Agenda
Create directory on HDFS List your directories/files on HDFS Copy data from local FS to HDFS Copy data from HDFS to local FS Copy data from HDFS to HDFS View content of a file on HDFS Delete data from HDFS Get help for HDFS commands All Hadoop commands All Hadoop dfs commands View HDFS on browser View your data on Browser

Create directory on HDFS


./hadoop dfs -mkdir /input_files

List your directories/files on HDFS


./hadoop dfs -ls << HDFS path >>

Copy data from Local FS to HDFS


./hadoop dfs -copyFromLocal <<local path>> <<HDFS path>>

Copy data from HDFS to local FS


./hadoop dfs -copyToLocal <<HDFS path>> <<local path>>

Copy data from HDFS to HDFS


./hadoop dfs -cp << HDFS path >> << HDFS path >>

View content of a file on HDFS


./hadoop dfs -cat <<HDFS file path>>

Delete data from HDFS


./hadoop dfs -rm << HDFS file path

Get help for HDFS commands


./hadoop dfs -help << HDFS command

Hadoop commands
./hadoop

Hadoop DFS commands


./hadoop dfs

View HDFS on browser


visit localhost:50070

Click on your directory

View your data on Browser

Thanks

Contact Point :www.bispsolutions.com

You might also like