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 in Hadoop with examples that are available? Then you’ve landed on the Right path which provides the standard and Basic Hadoop HDFS Commands.
If you are the one who is keen to learn the technology then learn the advanced certification course from the best Hadoop training institute who can help guide you about the course from the 0 Level to Advanced level. So don’t just dream to become the certified Pro Developer Achieve it by choosing the best World classes Hadoop Training institute which consists of World-class Trainers.
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.
==> /home/training
⇒ Hadoop version
⇒ Hadoop fs -ls /
⇒ Hadoop fs -count hdfs:/
⇒ Hadoop fsck – /
⇒ Hadoop balancer
⇒ Hadoop fs -mkdir /user/training/Hadoop
⇒ Hadoop fs -put data/sample.txt/user/training/Hadoop
⇒ Hadoop fs -ls /user/training/Hadoop
⇒ Hadoop fs -put data/retail /user/training/Hadoop
⇒ Hadoop fs -ls
⇒ Hadoop fs -rm Hadoop/retail/customers
⇒ Hadoop fs -ls Hadoop/retail/customers
⇒ Hadoop fs -rm hadoop/retail/*
⇒ Hadoop fs -expunge
⇒ Hadoop fs -rm -r Hadoop/retail
⇒ Hadoop fs -ls Hadoop
⇒ Hadoop fs -copyFromLocal /home/training/purchases.txt Hadoop/
⇒ Hadoop fs -cat hadoop/purchases.txt
⇒ Hadoop fs -copyToLocal hadoop/purchases.txt /home/training/data
⇒ Hadoop fs -cp /user/training/*.txt /user/training/Hadoop
⇒ Hadoop fs -get hadoop/sample.txt /home/training/
⇒ Hadoop fs -tail hadoop/purchases.txt
Use ‘-chmod’ command to change permissions of a file
⇒ Hadoop fs -ls hadoop/purchases.txt
sudo -u hdfs Hadoop fs -chmod 600 hadoop/purchases.txt
⇒ hadoop fs -ls hadoop/purchases.txt
sudo -u hdfs Hadoop fs -chown root: root hadoop/purchases.txt
⇒ Hadoop fs -ls hadoop/purchases.txt
sudo -u hdfs Hadoop fs -chgrp training hadoop/purchases.txt
⇒ Hadoop fs -mv Hadoop apache_hadoop
⇒ Hadoop fs -setrep -w 2 apache_hadoop/sample.txt
⇒ Hadoop fs -expunge sudo -u hdfs hdfs dfsadmin -safemode leave
⇒ Hadoop fs
⇒ Hadoop fs -help
I hope you like Prwatech Hadoop Basic HDFS Commands, Get the Advanced certification from World-class Trainers of Best Hadoop Training Institute.
cloudera@cloudera-vm:~$ hbase shell
hbase(main):001:0> list
TABLE
hbase(main):002:0> create ‘batch’, ‘details’
hbase(main):003:0> put ‘batch’, ‘row1’, ‘details:name’, ‘Rhiddhiman’
hbase(main):004:0> put ‘batch’, ‘row2’, ‘details:name’, ‘Rohit’
hbase(main):005:0> put ‘batch’, ‘row3’, ‘details:name’, ‘Dipankar’
hbase(main):006:0> put ‘batch’, ‘row4’, ‘details:name’, ‘Kalyan’
hbase(main):007:0> scan ‘batch’
hbase(main):008:0> put ‘batch’, ‘row2’, ‘details:name’, ‘Jayanta’
hbase(main):009:0> scan ‘batch’
hbase(main):010:0> put ‘batch’, ‘row3’, ‘details:name’, ‘Dhrubajyoti’
hbase(main):011:0> scan ‘batch’
hbase(main):012:0> get ‘batch’, ‘row2′, {COLUMN=>’details:name’, VERSIONS=>2}
hbase(main):013:0> put ‘batch’, ‘row3’, ‘details:name’, ‘Banajit’
hbase(main):014:0> get ‘batch’, ‘row3′, {COLUMN=>’details:name’, VERSIONS=>3}
hbase(main):015:0> put ‘batch’, ‘row1’, ‘details:address’, ‘Marathahalli’
hbase(main):016:0> put ‘batch’, ‘row1’, ‘details:age’, ’27’
hbase(main):017:0> put ‘batch’, ‘row1’, ‘details:course’, ‘Hadoop’
hbase(main):018:0> put ‘batch’, ‘row2’, ‘details:address’, ‘BTM’
hbase(main):019:0> put ‘batch’, ‘row3’, ‘details:address’, ‘Whitefield’
hbase(main):020:0> put ‘batch’, ‘row4’, ‘details:address’, ‘Electronics City’
hbase(main):021:0> scan ‘batch’
hbase(main):031:0> describe ‘batch’