{"id":264,"date":"2019-02-21T07:28:04","date_gmt":"2019-02-21T07:28:04","guid":{"rendered":"https:\/\/prwatech.in\/blog\/?p=264"},"modified":"2023-07-12T06:41:55","modified_gmt":"2023-07-12T06:41:55","slug":"hadoop-basic-hdfs-commands","status":"publish","type":"post","link":"https:\/\/prwatech.in\/blog\/hadoop\/hdfs\/hadoop-basic-hdfs-commands\/","title":{"rendered":"Hadoop Basic HDFS Commands"},"content":{"rendered":"<p>&nbsp;<\/p>\n<h1>Hadoop Basic HDFS Commands<\/h1>\n<p>&nbsp;<\/p>\n<p><strong>Hadoop HDFS Commands, <\/strong>welcome to the world of Hadoop HDFS Basic commands. Are you the one who is looking forward to knowing the apache Hadoop HDFS commands List which comes under Hadoop technology? Or the one who is very keen to explore the list of all the HDFS commands in Hadoop with examples that are available? Then you\u2019ve landed on the Right path which provides the standard and Basic Hadoop HDFS Commands.<\/p>\n<p>If you are the one who is keen to learn the technology then learn the advanced certification course from the best <a href=\"https:\/\/prwatech.in\/hadoop-training-institute-in-btm-layout\/\">Hadoop training institute<\/a> who can help guide you about the course from the 0 Level to Advanced level. So don\u2019t just dream to become the certified Pro Developer Achieve it by choosing the best World classes <a href=\"https:\/\/prwatech.in\/hadoop-training-institutes-in-bangalore\/\">Hadoop Training institute<\/a> which consists of World-class Trainers.<\/p>\n<p>&nbsp;<\/p>\n<p>We, Prwatech listed some of the Top Hadoop HDFS Commands which Every Hadoop Developer should know about. So follow the Below Mentioned Hadoop Basic HDFS Commands and Learn the Advanced Hadoop course from the best Hadoop Trainer like a Pro.<\/p>\n<p>&nbsp;<\/p>\n<h3>Open a terminal window to the current working directory.<\/h3>\n<p>==&gt; \/home\/training<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1373\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/1-23.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"229\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/1-23.png 610w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/1-23-300x81.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Print the Hadoop version<\/h3>\n<p>\u21d2\u00a0Hadoop version<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1374\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/2-23.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"313\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/2-23.png 621w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/2-23-300x111.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>List the contents of the root directory in HDFS<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -ls \/<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1375\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/3-22.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"280\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/3-22.png 582w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/3-22-300x99.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Count the number of directories, files, and bytes under the paths<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -count hdfs:\/<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1376\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/4-18.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"151\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/4-18.png 570w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/4-18-300x53.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Run a DFS filesystem checking utility<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fsck &#8211; \/<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1377\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/5-19.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"604\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/5-19.png 577w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/5-19-300x213.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Run a cluster balancing utility<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop balancer<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1378\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/6-18.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"381\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/6-18.png 580w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/6-18-300x134.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Create a new directory named &#8220;Hadoop&#8221; below the \/user\/training directory in HDFS.<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -mkdir \/user\/training\/Hadoop<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1379\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/7-18.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"124\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/7-18.png 611w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/7-18-300x44.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1380\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/8-18.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"155\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/8-18.png 613w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/8-18-300x55.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Add a sample text file from the local directory named &#8220;data&#8221; to the new directory you created in HDFS during the previous step<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -put data\/sample.txt\/user\/training\/Hadoop<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1381\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/801.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"111\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/801.png 536w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/801-300x39.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p><strong> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1382\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/802.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"86\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/802.png 586w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/802-300x30.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>List the contents of this new directory in HDFS<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -ls \/user\/training\/Hadoop<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1383\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/9-13.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"103\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/9-13.png 610w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/9-13-300x36.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Add the entire local directory called &#8220;retail&#8221; to the \/user\/training directory in HDFS<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -put data\/retail \/user\/training\/Hadoop<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1384\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/10-13.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"150\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/10-13.png 611w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/10-13-300x53.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p><strong> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1385\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/101.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"307\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/101.png 610w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/101-300x108.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Since \/user\/training is your home directory in HDFS, any command that does not have an absolute path is interpreted as relative to that directory. The next command will, therefore,\u00a0list your home directory, and should show the items you&#8217;ve just added there<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -ls<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1386\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/11-12.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"232\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/11-12.png 594w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/11-12-300x82.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Delete a file &#8216;customers&#8217; from the &#8220;retail&#8221;\u00a0 \u00a0directory<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -rm Hadoop\/retail\/customers<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1387\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/131.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"113\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/131.png 608w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/131-300x40.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p><strong> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1388\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/132.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"92\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/132.png 610w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/132-300x32.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Ensure this file is no longer in HDFS<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -ls Hadoop\/retail\/customers<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1389\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/14-12.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"109\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/14-12.png 609w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/14-12-300x38.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Delete all files from the &#8220;retail&#8221; directory using a wildcard<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -rm hadoop\/retail\/*<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1390\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/151.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"135\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/151.png 611w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/151-300x48.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p><strong> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1391\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/152.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"139\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/152.png 644w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/152-300x49.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>To empty the trash<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -expunge<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1392\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/16-10.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"88\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/16-10.png 620w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/16-10-300x31.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Finally, remove the entire retail directory and all<br \/>\nof its contents in HDFS<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -rm -r Hadoop\/retail<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1393\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/17-10.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"117\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/17-10.png 623w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/17-10-300x41.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>List the Hadoop directory again<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -ls Hadoop<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1394\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/18-10.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"132\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/18-10.png 611w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/18-10-300x47.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Add the purchases.txt file from the local directory named &#8220;\/home\/training\/&#8221; to the Hadoop directory you created in HDFS<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -copyFromLocal \/home\/training\/purchases.txt Hadoop\/<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1395\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/19-9.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"166\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/19-9.png 608w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/19-9-300x59.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>To view the contents of your text file purchases.txt which is present in your Hadoop directory<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -cat hadoop\/purchases.txt<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1396\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/20-8.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"236\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/20-8.png 611w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/20-8-300x83.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Add the purchases.txt file from &#8220;Hadoop&#8221; directory which is present in HDFS directory to the directory &#8220;data&#8221; which is present in your local directory<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -copyToLocal hadoop\/purchases.txt \/home\/training\/data<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1397\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/21-8.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"173\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/21-8.png 610w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/21-8-300x61.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>cp is used to copy files between directories present in HDFS<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -cp \/user\/training\/*.txt \/user\/training\/Hadoop<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1398\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/22-5.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"195\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/22-5.png 609w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/22-5-300x69.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>&#8216;-get&#8217; command can be used alternatively to &#8216;-copyToLocal&#8217; command<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -get hadoop\/sample.txt \/home\/training\/<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1399\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/23-5.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"160\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/23-5.png 611w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/23-5-300x56.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Display last kilobyte of the file &#8220;purchases.txt&#8221; to stdout<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -tail hadoop\/purchases.txt<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1400\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/24-5.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"487\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/24-5.png 609w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/24-5-300x172.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Default file permissions are 666 in HDFS<\/h3>\n<p>&nbsp;<\/p>\n<p>Use &#8216;-chmod&#8217; command to change permissions of a file<br \/>\n\u21d2\u00a0\u00a0Hadoop fs -ls hadoop\/purchases.txt<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1401\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/25-4.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"233\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/25-4.png 610w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/25-4-300x82.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>sudo -u hdfs Hadoop fs -chmod 600 hadoop\/purchases.txt<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1402\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/251.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"152\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/251.png 610w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/251-300x54.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Default names of owner and group are training, training\u00a0\u00a0Use &#8216;-chown&#8217; to change owner name and group name simultaneously<\/h3>\n<p>\u21d2 hadoop fs -ls hadoop\/purchases.txt<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1403\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/261.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"130\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/261.png 610w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/261-300x46.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>sudo -u hdfs Hadoop fs -chown root: root hadoop\/purchases.txt<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1404\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/262.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"98\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/262.png 608w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/262-300x35.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>The default\u00a0name of group is training Use &#8216;-chgrp&#8217; command to change the group name<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -ls hadoop\/purchases.txt<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1405\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/271.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"104\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/271.png 613w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/271-300x37.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>sudo -u hdfs Hadoop fs -chgrp training hadoop\/purchases.txt<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1406\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/272.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"121\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/272.png 613w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/272-300x43.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Move a directory from one location to other<\/h3>\n<p>\u21d2 Hadoop fs -mv Hadoop apache_hadoop<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1407\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/28-3.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"164\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/28-3.png 613w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/28-3-300x58.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>The default replication factor to a file is 3. Use &#8216;-setrep&#8217; command to change the replication factor of a\u00a0 file<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -setrep -w 2 apache_hadoop\/sample.txt<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1413\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/29-2.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"168\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/29-2.png 612w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/29-2-300x59.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>Command to make the name node leave safe\u00a0 mode<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs -expunge\u00a0sudo -u hdfs hdfs dfsadmin -safemode leave<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1408\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/31-2.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"124\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/31-2.png 612w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/31-2-300x44.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<h3>List all the Hadoop file system shell commands<\/h3>\n<p>\u21d2\u00a0\u00a0Hadoop fs<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1409\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/321.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"568\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/321.png 614w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/321-300x200.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1410\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/322.png\" alt=\"hadoop hdfs commands\" width=\"850\" height=\"504\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/322.png 612w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/322-300x178.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>\u21d2\u00a0\u00a0Hadoop fs -help<\/p>\n<p><strong><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1411\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/331.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"450\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/331.png 612w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/331-300x159.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/> <img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-1412\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/332.png\" alt=\"Hadoop HDFS Commands\" width=\"850\" height=\"454\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/332.png 603w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/332-300x160.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/strong><\/p>\n<p>I hope you like <a href=\"https:\/\/prwatech.in\">Prwatech<\/a>\u00a0Hadoop Basic HDFS Commands, Get the Advanced certification from World-class Trainers of Best <a href=\"https:\/\/prwatech.in\/hadoop-training-institute-in-bangalore\/\">Hadoop Training Institute<\/a>.<\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\n<h3>OPEN TERMINAL AND GO TO HBASE SHELL :<\/h3>\n<\/li>\n<\/ul>\n<p><strong>cloudera@cloudera-vm:~$ hbase shell<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-339\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/15-3.png\" alt=\"\" width=\"640\" height=\"116\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/15-3.png 640w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/15-3-300x54.png 300w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\n<h3>CHECK WHAT TABLES EXISTS IN THE SYSTEM :<\/h3>\n<\/li>\n<\/ul>\n<p><strong>hbase(main):001:0&gt; list<\/strong><br \/>\n<strong>TABLE<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-325\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/1-3.png\" alt=\"hadoop hdfs commands\" width=\"850\" height=\"179\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\n<h3>CREATE TABLE :<\/h3>\n<\/li>\n<\/ul>\n<p>hbase(main):002:0&gt; create &#8216;batch&#8217;, &#8216;details&#8217;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-326\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/2-3.png\" alt=\"hadoop hdfs commands\" width=\"850\" height=\"184\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/2-3.png 420w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/2-3-300x65.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\n<h3>ENTER DATA INTO THE TABLE :<\/h3>\n<\/li>\n<\/ul>\n<p>hbase(main):003:0&gt; put &#8216;batch&#8217;, &#8216;row1&#8217;, &#8216;details:name&#8217;, &#8216;Rhiddhiman&#8217;<\/p>\n<p>hbase(main):004:0&gt; put &#8216;batch&#8217;, &#8216;row2&#8217;, &#8216;details:name&#8217;, &#8216;Rohit&#8217;<\/p>\n<p>hbase(main):005:0&gt; put &#8216;batch&#8217;, &#8216;row3&#8217;, &#8216;details:name&#8217;, &#8216;Dipankar&#8217;<\/p>\n<p>hbase(main):006:0&gt; put &#8216;batch&#8217;, &#8216;row4&#8217;, &#8216;details:name&#8217;, &#8216;Kalyan&#8217;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-327\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/3-2.png\" alt=\"hadoop hdfs commands\" width=\"850\" height=\"306\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/3-2.png 634w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/3-2-300x108.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\n<h3>CHECK DATA ENTERED IN THE TABLE :<\/h3>\n<\/li>\n<\/ul>\n<p><strong>hbase(main):007:0&gt; scan &#8216;batch&#8217;<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-328\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/4-2.png\" alt=\"hadoop hdfs commands\" width=\"850\" height=\"208\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/4-2.png 646w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/4-2-300x73.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\n<h3>CHANGE VALUE OF A PARTICULAR COLUMN IN A ROW :<\/h3>\n<\/li>\n<\/ul>\n<p><strong>hbase(main):008:0&gt; put &#8216;batch&#8217;, &#8216;row2&#8217;, &#8216;details:name&#8217;, &#8216;Jayanta&#8217;<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-329\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/5-2.png\" alt=\"\" width=\"587\" height=\"44\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/5-2.png 587w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/5-2-300x22.png 300w\" sizes=\"auto, (max-width: 587px) 100vw, 587px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\n<h3>CHECK DATA AFTER MODIFICATION<\/h3>\n<\/li>\n<\/ul>\n<p><strong>hbase(main):009:0&gt; scan &#8216;batch&#8217;<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-330\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/6-2.png\" alt=\"hadoop hdfs commands\" width=\"850\" height=\"241\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/6-2.png 646w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/6-2-300x85.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\n<h3>CHANGE VALUE OF A PARTICULAR COLUMN IN A ROW :<\/h3>\n<\/li>\n<\/ul>\n<p><strong>hbase(main):010:0&gt; put &#8216;batch&#8217;, &#8216;row3&#8217;, &#8216;details:name&#8217;, &#8216;Dhrubajyoti&#8217;<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-331\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/7-2.png\" alt=\"\" width=\"594\" height=\"39\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/7-2.png 594w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/7-2-300x20.png 300w\" sizes=\"auto, (max-width: 594px) 100vw, 594px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\n<h3>CHECK DATA AFTER MODIFICATION :<\/h3>\n<\/li>\n<\/ul>\n<p><strong>hbase(main):011:0&gt; scan &#8216;batch&#8217;<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-332\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/8-2.png\" alt=\"hadoop hdfs commands\" width=\"850\" height=\"236\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/8-2.png 648w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/8-2-300x83.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\n<h3>CHECK VALUE THAT HAS BEEN CHANGED :<\/h3>\n<\/li>\n<\/ul>\n<p><strong>hbase(main):012:0&gt; get &#8216;batch&#8217;, &#8216;row2&#8242;, {COLUMN=&gt;&#8217;details:name&#8217;, VERSIONS=&gt;2}<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-333\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/9-2.png\" alt=\"hadoop hdfs commands\" width=\"850\" height=\"115\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/9-2.png 642w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/9-2-300x41.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>hbase(main):013:0&gt; put &#8216;batch&#8217;, &#8216;row3&#8217;, &#8216;details:name&#8217;, &#8216;Banajit&#8217;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-334\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/10-3.png\" alt=\"\" width=\"570\" height=\"37\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/10-3.png 570w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/10-3-300x19.png 300w\" sizes=\"auto, (max-width: 570px) 100vw, 570px\" \/><\/p>\n<p>hbase(main):014:0&gt; get &#8216;batch&#8217;, &#8216;row3&#8242;, {COLUMN=&gt;&#8217;details:name&#8217;, VERSIONS=&gt;3}<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-335\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/11-3.png\" alt=\"hadoop hdfs commands\" width=\"850\" height=\"136\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/11-3.png 624w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/11-3-300x48.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\n<h3>ENTER REMAINING DATA :<\/h3>\n<\/li>\n<\/ul>\n<p>hbase(main):015:0&gt; put &#8216;batch&#8217;, &#8216;row1&#8217;, &#8216;details:address&#8217;, &#8216;Marathahalli&#8217;<\/p>\n<p>hbase(main):016:0&gt; put &#8216;batch&#8217;, &#8216;row1&#8217;, &#8216;details:age&#8217;, &#8217;27&#8217;<\/p>\n<p>hbase(main):017:0&gt; put &#8216;batch&#8217;, &#8216;row1&#8217;, &#8216;details:course&#8217;, &#8216;Hadoop&#8217;<\/p>\n<p>hbase(main):018:0&gt; put &#8216;batch&#8217;, &#8216;row2&#8217;, &#8216;details:address&#8217;, &#8216;BTM&#8217;<\/p>\n<p>hbase(main):019:0&gt; put &#8216;batch&#8217;, &#8216;row3&#8217;, &#8216;details:address&#8217;, &#8216;Whitefield&#8217;<\/p>\n<p>hbase(main):020:0&gt; put &#8216;batch&#8217;, &#8216;row4&#8217;, &#8216;details:address&#8217;, &#8216;Electronics City&#8217;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-336\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/12-3.png\" alt=\"hadoop hdfs commands\" width=\"850\" height=\"403\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/12-3.png 635w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/12-3-300x142.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\n<h3>CHECK DATA :<\/h3>\n<\/li>\n<\/ul>\n<p><strong>hbase(main):021:0&gt; scan &#8216;batch&#8217;<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-337\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/13-3.png\" alt=\"hadoop hdfs commands\" width=\"850\" height=\"455\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/13-3.png 644w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/13-3-300x161.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>&nbsp;<\/p>\n<ul>\n<li>\n<h3>DESCRIPTION OF TABLE\u00a0:<\/h3>\n<\/li>\n<\/ul>\n<p><strong>hbase(main):031:0&gt; describe &#8216;batch&#8217;<\/strong><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-338\" src=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/14-4.png\" alt=\"hadoop hdfs commands\" width=\"850\" height=\"310\" srcset=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/14-4.png 573w, https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/14-4-300x109.png 300w\" sizes=\"auto, (max-width: 850px) 100vw, 850px\" \/><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Hadoop Basic HDFS Commands &nbsp; Hadoop HDFS Commands, welcome to the world of Hadoop HDFS Basic commands. Are you the one who is looking forward to knowing the apache Hadoop HDFS commands List which comes under Hadoop technology? Or the one who is very keen to explore the list of all the HDFS commands [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":2900,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,1641],"tags":[44],"class_list":["post-264","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-hadoop","category-hdfs","tag-hadoop-hdfs-commands"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v25.7 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Hadoop HDFS Commands with Examples | Prwatech<\/title>\n<meta name=\"description\" content=\"Here is the list of apache Hadoop HDFS Commands with Examples &amp; How Does HDFS Work, learn the advanced Tutorials from Leading E-Learning Platform.\" \/>\n<meta name=\"robots\" content=\"noindex, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hadoop HDFS Commands with Examples | Prwatech\" \/>\n<meta property=\"og:description\" content=\"Here is the list of apache Hadoop HDFS Commands with Examples &amp; How Does HDFS Work, learn the advanced Tutorials from Leading E-Learning Platform.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/prwatech.in\/blog\/hadoop\/hdfs\/hadoop-basic-hdfs-commands\/\" \/>\n<meta property=\"og:site_name\" content=\"Prwatech\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/prwatech.in\/\" \/>\n<meta property=\"article:published_time\" content=\"2019-02-21T07:28:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-07-12T06:41:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/Hadoop-Basic-HDFS-Commands.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"360\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Prwatech\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:site\" content=\"@Eduprwatech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Prwatech\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/prwatech.in\/blog\/hadoop\/hdfs\/hadoop-basic-hdfs-commands\/\",\"url\":\"https:\/\/prwatech.in\/blog\/hadoop\/hdfs\/hadoop-basic-hdfs-commands\/\",\"name\":\"Hadoop HDFS Commands with Examples | Prwatech\",\"isPartOf\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/prwatech.in\/blog\/hadoop\/hdfs\/hadoop-basic-hdfs-commands\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/prwatech.in\/blog\/hadoop\/hdfs\/hadoop-basic-hdfs-commands\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/Hadoop-Basic-HDFS-Commands.jpg\",\"datePublished\":\"2019-02-21T07:28:04+00:00\",\"dateModified\":\"2023-07-12T06:41:55+00:00\",\"author\":{\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\"},\"description\":\"Here is the list of apache Hadoop HDFS Commands with Examples & How Does HDFS Work, learn the advanced Tutorials from Leading E-Learning Platform.\",\"breadcrumb\":{\"@id\":\"https:\/\/prwatech.in\/blog\/hadoop\/hdfs\/hadoop-basic-hdfs-commands\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/prwatech.in\/blog\/hadoop\/hdfs\/hadoop-basic-hdfs-commands\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/hadoop\/hdfs\/hadoop-basic-hdfs-commands\/#primaryimage\",\"url\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/Hadoop-Basic-HDFS-Commands.jpg\",\"contentUrl\":\"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/Hadoop-Basic-HDFS-Commands.jpg\",\"width\":750,\"height\":360,\"caption\":\"Hadoop Basic HDFS Commands\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/prwatech.in\/blog\/hadoop\/hdfs\/hadoop-basic-hdfs-commands\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/prwatech.in\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hadoop Basic HDFS Commands\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/prwatech.in\/blog\/#website\",\"url\":\"https:\/\/prwatech.in\/blog\/\",\"name\":\"Prwatech\",\"description\":\"Share Ideas, Start Something Good.\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/prwatech.in\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3\",\"name\":\"Prwatech\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g\",\"caption\":\"Prwatech\"},\"url\":\"https:\/\/prwatech.in\/blog\/author\/prwatech123\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Hadoop HDFS Commands with Examples | Prwatech","description":"Here is the list of apache Hadoop HDFS Commands with Examples & How Does HDFS Work, learn the advanced Tutorials from Leading E-Learning Platform.","robots":{"index":"noindex","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"og_locale":"en_US","og_type":"article","og_title":"Hadoop HDFS Commands with Examples | Prwatech","og_description":"Here is the list of apache Hadoop HDFS Commands with Examples & How Does HDFS Work, learn the advanced Tutorials from Leading E-Learning Platform.","og_url":"https:\/\/prwatech.in\/blog\/hadoop\/hdfs\/hadoop-basic-hdfs-commands\/","og_site_name":"Prwatech","article_publisher":"https:\/\/www.facebook.com\/prwatech.in\/","article_published_time":"2019-02-21T07:28:04+00:00","article_modified_time":"2023-07-12T06:41:55+00:00","og_image":[{"width":750,"height":360,"url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/Hadoop-Basic-HDFS-Commands.jpg","type":"image\/jpeg"}],"author":"Prwatech","twitter_card":"summary_large_image","twitter_creator":"@Eduprwatech","twitter_site":"@Eduprwatech","twitter_misc":{"Written by":"Prwatech","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/prwatech.in\/blog\/hadoop\/hdfs\/hadoop-basic-hdfs-commands\/","url":"https:\/\/prwatech.in\/blog\/hadoop\/hdfs\/hadoop-basic-hdfs-commands\/","name":"Hadoop HDFS Commands with Examples | Prwatech","isPartOf":{"@id":"https:\/\/prwatech.in\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/prwatech.in\/blog\/hadoop\/hdfs\/hadoop-basic-hdfs-commands\/#primaryimage"},"image":{"@id":"https:\/\/prwatech.in\/blog\/hadoop\/hdfs\/hadoop-basic-hdfs-commands\/#primaryimage"},"thumbnailUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/Hadoop-Basic-HDFS-Commands.jpg","datePublished":"2019-02-21T07:28:04+00:00","dateModified":"2023-07-12T06:41:55+00:00","author":{"@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3"},"description":"Here is the list of apache Hadoop HDFS Commands with Examples & How Does HDFS Work, learn the advanced Tutorials from Leading E-Learning Platform.","breadcrumb":{"@id":"https:\/\/prwatech.in\/blog\/hadoop\/hdfs\/hadoop-basic-hdfs-commands\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prwatech.in\/blog\/hadoop\/hdfs\/hadoop-basic-hdfs-commands\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/hadoop\/hdfs\/hadoop-basic-hdfs-commands\/#primaryimage","url":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/Hadoop-Basic-HDFS-Commands.jpg","contentUrl":"https:\/\/prwatech.in\/blog\/wp-content\/uploads\/2019\/02\/Hadoop-Basic-HDFS-Commands.jpg","width":750,"height":360,"caption":"Hadoop Basic HDFS Commands"},{"@type":"BreadcrumbList","@id":"https:\/\/prwatech.in\/blog\/hadoop\/hdfs\/hadoop-basic-hdfs-commands\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/prwatech.in\/blog\/"},{"@type":"ListItem","position":2,"name":"Hadoop Basic HDFS Commands"}]},{"@type":"WebSite","@id":"https:\/\/prwatech.in\/blog\/#website","url":"https:\/\/prwatech.in\/blog\/","name":"Prwatech","description":"Share Ideas, Start Something Good.","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/prwatech.in\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/db90baff7744090b2288bbc98fea87f3","name":"Prwatech","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/prwatech.in\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/c00bafc1b04045f31eda917de39891456c44fa47c092b9bb6be0f860a3a30a2f?s=96&d=mm&r=g","caption":"Prwatech"},"url":"https:\/\/prwatech.in\/blog\/author\/prwatech123\/"}]}},"_links":{"self":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/264","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/comments?post=264"}],"version-history":[{"count":26,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/264\/revisions"}],"predecessor-version":[{"id":266,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/posts\/264\/revisions\/266"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media\/2900"}],"wp:attachment":[{"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/media?parent=264"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/categories?post=264"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/prwatech.in\/blog\/wp-json\/wp\/v2\/tags?post=264"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}