HDFS Commands
Default Hadoop Ports are as follows:-
Hadoop Web UI
https://localhost:50070
Set the replication of a file
Syntax: hdfs dfs -setrep -w 5 <filename>
$ hdfs dfs -setrep /sampDir/LogFile.log
In UI, you can see Replication of LogFiles.log is set to 5.
To see the number of blocks file is using
Syntax: hdfs fsck -blocks <filename>
$ hdfs fsck -blocks /sampleDir/olympic_data.csv
To check the disk usage
Syntax: hdfs dfs -du <dirname>/<filename>
$ hdfs dfs -du /sampleDir
To count the total number of lines, words and characters
Syntax: hdfs dfs -cat <filename> | wc
$ hdfs dfs -cat /sampleDir/olympic_data.csv | wc
To count the total number of lines
Syntax: hdfs dfs -cat <filename> | wc -l
$ hdfs dfs -cat /sampleDir/olympic_data.csv | wc -l
To count the total number of words
Syntax: hdfs dfs -cat <filename> | wc -w
$ hdfs dfs -cat /sampleDir/olympic_data.csv | wc -w
To count the total number of characters
Syntax: hdfs dfs -cat <filename> | wc -c
$ hdfs dfs -cat /sampleDir/olympic_data.csv | wc -c
To print statistics about the file/directory
Syntax: hdfs dfs -stat <filename>/<directory>
Syntax: hdfs dfs -stat "%F %u:%g %b %y %n" <filename>
Syntax: hdfs dfs -chown root <filename>/<directory>
Syntax: hdfs dfs -stat <filename>/<directory>
Syntax: hdfs dfs -stat "%F %u:%g %b %y %n" <filename>
$ hdfs dfs -stat /sampleDir/olympix_data.csv
$ hdfs dfs -stat "%F %u:%g %b %y %n" /sampleDir/olympix_data.csv
file size in blocks (%b),
file type (%F),
group name of owner (%g),
name (%n),
block size (%o),
replication (%r),
user name of owner(%u),
modification date (%y, %Y). %y shows UTC date as “yyyy-MM-dd HH: mm: ss”
file type (%F),
group name of owner (%g),
name (%n),
block size (%o),
replication (%r),
user name of owner(%u),
modification date (%y, %Y). %y shows UTC date as “yyyy-MM-dd HH: mm: ss”
Count the number of directories, files and bytes
Syntax: hdfs dfs -count <filename>/<directory>
$ hdfs dfs -count /sampleDir/olympix_data.csv
$ hdfs dfs -count /sampleDir
To change the group of file/directory to root
Syntax: hdfs dfs -chgrp root <filename>/<directory>
$ hdfs dfs -chgrp root /home
To change the owner of file/directory to root Syntax: hdfs dfs -chown root <filename>/<directory>
$ hdfs dfs -chown root /home
To change the permissions of files/directory
There are three Classes – Owner, Group, Others.
- The Owner is usually the creator of the files/folders.
- The Group contains a group of users who share the same permissions and user privileges.
- Others mean the general public.
As for permissions, there are 3 types of actions that you can perform on a file/folder. You can either read, write or execute.
- Read – You can only view the file, but cannot modify the content of the file.
- Write – You can edit and modify the file. For Folders, you can delete and add the files into the folder.
- Execute – Execute is mainly used when you need to run the file.
Syntax : hdfs dfs -chmod [-R] <filename>/<directory>
With -R, make the change recursively through the directory. The user must be the owner of the file, or a super-user.
$ hdfs dfs -chmod 777 /home
"chmod 777” means making the file readable, writable and executable by everyone.
After reading this blog i am very strong in this topic and helpful to develop my knowledge in hadoop.. thank you for sharing this blog to us
ReplyDeletebig data training institute in velachery | hadoop training in chennai velachery | big data training in chennai velachery
Hdfs Commands Ii >>>>> Download Now
Delete>>>>> Download Full
Hdfs Commands Ii >>>>> Download LINK
>>>>> Download Now
Hdfs Commands Ii >>>>> Download Full
>>>>> Download LINK vq
Informative blog.. thanks
ReplyDeletehadoop online training institute in chennai | big data online training institute in chennai
Big Data and Data Science Course Material. Avail 15 Day Free Trial! Learn Flume, Sqoop, Pig, Hive, MapReduce, Yarn & More. Get Certified By Experts! Hadoop Courses
ReplyDeleteNice coading skill. i like your blog very much. if you are develop your knowledge in hadoop technologies refer this link
ReplyDeleteHadoop Training in Bangalore
That was a great message in my carrier, and It's wonderful commands like mind relaxes with understand words of knowledge by information's.
ReplyDeleteHadoop Training in Chennai
Thanks for your informative blog!!! Keep on updating your with such awesome information.
ReplyDeleteData Science Online Training|
R Programming Online Training|
Hadoop Online Training
That was a great message in my carrier, and It's wonderful commands like mind relaxes with understand words of knowledge by information's.
ReplyDeleteHadoop Training in Bangalore
Hadoop Training in BTM Layout
Hadoop Training in Marathahalli
very useful.thank you for sharing.. Power BI Online Training Hyderabad
ReplyDeletehttp://www.brainbrushups.com/p/interview.html
ReplyDeletehttp://jobsandnewstoday.blogspot.in/2013/04/what-are-dis-advantages-of-manual-testing.html
http://blog.hackapp.com/2014/02/now-we-have-android-decompiler-how-to.html
http://snehalthakur.blogspot.in/2017/01/hdfs-commands.html
http://androidsurya.blogspot.in/2011/10/android-copyright-symbol-in-string-xml.html
http://tinywall.info/2012/06/deploy-android-application-from-eclipse.html
http://scalaformachinelearning.com/2013/06/k-means-clustering-in-java.html
http://automationtestingutilities.blogspot.in/2013/11/multi-browser-testing-using-selenium.html
http://www.bigdataspeak.com/2013/04/reduce-emr-costs-use-spot-instances-and_27.html
http://sejalbatham.blogspot.in/2016/10/the-tool-has-shed-its-java-dependency.html
Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this.
ReplyDeleteData Science Training in Chennai
Data science training in bangalore
Data science online training
Data science training in pune
Data science training in kalyan nagar
The knowledge of technology you have been sharing thorough this post is very much helpful to develop new idea. here by i also want to share this.
ReplyDeleteDevops training in Chennai
Devops training in Bangalore
Devops Online training
Devops training in Pune
Thanks for your informative article, Your post helped me to understand the future and career prospects & Keep on updating your blog with such awesome article.
ReplyDeletePython training in pune
AWS Training in chennai
Python course in chennai
Great content thanks for sharing this informative blog which provided me technical information keep posting.
ReplyDeleteDevOps online Training
Best Devops Training institute in Chennai
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging.
ReplyDeleteangularjs-Training in sholinganallur
angularjs-Training in velachery
angularjs Training in bangalore
angularjs Training in bangalore
angularjs Training in btm
angularjs Training in electronic-city
Needed to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here
ReplyDeleteThank you. Your blog was very helpful and efficient For Me,Thanks for Sharing the information Regards..!!.. Big Data Hadoop Online Training Bangalore
I simply couldn't leave your site just my reading this blog. I am really impressed with the content and way of writing. Keep sharing more.
ReplyDeleteIELTS Classes in Mumbai
IELTS Coaching in Mumbai
Best IELTS Coaching in Mumbai
IELTS Center in Mumbai
IELTS Training in Mumbai
Best IELTS Classes in Mumbai
IELTS Class in Mumbai
Thanks for sharing this pretty post, it was good and helpful. Share more like this.
ReplyDeletePython course in Chennai
Python Training in Chennai
ccna Training in Chennai
ccna course in Chennai
Data Analytics Courses in Chennai
Big Data Analytics Courses in Chennai
Python Training in Anna Nagar
Python Training in T Nagar
ReplyDeleteIm really impressed with your blog articale, .
Big Data Training in Gurgaon
Big Data Course in Gurgaon
Big Data Training institute in Gurgaon
Very good blog i really like it very informative and helpful thanks for sharing this blog.
ReplyDeleteHadoop Training
Big data Hadoop Training
thanks for sharing please keep it up
ReplyDeleteWeb Designing Training in Delhi
Thank you for your information. Please keep up the good work. Thank you.
ReplyDeleteHadoop training in Bangalore
nice posts. this could not be explained better. Thanks for sharing, Keep up the good work.
ReplyDeletedevops training in Bangalore
SalesForce developer Training in Bangalore
AWS training in Bangalorer
Data Analytics Training in Bangalore
Good Post. I like your blog. Thanks for Sharing
ReplyDeletePython Training in Noida
Very nice posts. this could not be explained better. Thanks for sharing, Keep up the good work.
ReplyDeletePython training in Bangalore
Java Training in Bangalore
BluePrism training in Bangalore
Selenium Training in Bangalore
This information you provided in the blog that was really unique I love it!!, Thanks for sharing such a great blog..Keep posting.
ReplyDeleteBig data hadoop training in mumbai
Big data hadoop training in mumbai
And indeed, I’m just always astounded concerning the remarkable things served by you. Some four facts on this page are undeniably the most effective I’ve had.
ReplyDeleteC C++ Training in Chennai | No.1 C C++ Training course in Chennai
linux Training in Chennai |No.1 linux Training in Chennai
Unix Training in Chennai | No.1 Best Unix Training in Chennai
uipath training in chennai | No.1 Uipath training in chennai
Rprogramming Training in Chennai | No.1 Rprogramming Training in Chennai
I'm really pleased with your blog because your post for fresh readers is very distinctive and strong ...
ReplyDeletedata science courses near kalyan nagar|
data science training in bangalore|
hadoop courses in marathahalli|
hadoop training in kalyan nagar
I went through your blog, it was very helpful to me and I got some fresh data as well...
ReplyDeletedata science courses near bangalore|
data science classes in marathahalli|
hadoop courses near bellandur|
hadoop classes in kalyan nagar
important blog with fresh content
ReplyDeletepython courses in Bellandur|python courses in Marathahalli
selenium testing Training in Bellandur|selenium testing Training in Marathahalli
it was a great informative blog. thanks for it
ReplyDeleteselenium testing courses in Bellandur|selenium testing courses in Marathahalli
python Training in Bellandur|python Training in Marathahalli
Beautiful tutorial. Thank you for sharing, I went through your blog, it helped me a lot and I also received some new information.
ReplyDeletedata science classes near bangalore|
data science training in marathahalli|
hadoop classes near bellandur|
hadoop courses in kalyan nagar
Very informative post thanks for sharing it. Get the affordable data science training institute in Gurgaon
ReplyDeleteThank you very much for sharing this blog. This blog is very essential and very informative ...
ReplyDeleteRPA training in KalyanNagar
Hadoop training in Bangalore
Hadoop training in KalyanNagar|
RPA training in Bellandur
I'm really happy with your blog because your post is very unique and powerful for new readers...
ReplyDeleteHadoop Training in Marathahalli|
Hadoop training in Bangalore|
Big Data Analytics Training in Bangalore|
Hadoop Training in Bellandur|
Angular JS Training in Bangalore|
Big Data Training in Bangalore
I went through your blog its really interesting and holds an informative content. Thanks for uploading such a wonderful blog.
ReplyDeletepython courses in Bellandur|python courses in Marathahalli
selenium testing courses in kalya Nagar|selenium courses in Marathahalli
devops courses in Bellandur|devops courses in Marathahalli
python courses in bangalore|python training in bangalore
python courses in bangalore
Very good post thank you so much. Join the best big data hadoop training course in Gurgaon
ReplyDeleteExcellent information with unique content and it is very useful to know about the information based on blogs.
ReplyDeletesalesforce Training in Bangalore
uipath Training in Bangalore
blueprism Training in Bangalore
Thanks for sharing the valuable information.
ReplyDeleteHadoop Online Training
Hadoop Training
Hadoop Training in Hyderabad
Hadoop Training in Ameerpet
Good post!Thank you so much for sharing this lovely article.It was so good to read and useful to upgrade my understanding...
ReplyDeletesalesforce Training in Bangalore
uipath Training in Bangalore
blueprism Training in Bangalore
A very nice guide. I will definitely follow these tips. Thank you for sharing such detailed article. I am learning a lot from you.
ReplyDeletesalesforce Training in Bangalore
uipath Training in Bangalore
blueprism Training in Bangalore
Initially i thought bigdata and data science are very difficult, now i can realize how could i thought like that. I want to learn more and more about data science and very interesting to learn only because of Bigdata training in Pallikranai
ReplyDeleteMachine learning training in Pallikranai
Spark training in Pallikranai
Data analytics training in Pallikranai
Data science training in Pallikranai
Spark with ML training in Pallikranai
Python training in Pallikranai
MongoDB training in Pallikaranai
Hadoop training in Pallikranai
Thank you for providing such an awesome article and it is very useful blog for others to read.
ReplyDeleteBig Data Training In Delhi
Devops training in Noida
ReplyDeleteOpenStack Training In Noida
Aws training in noida
Hadoop training in Noida
Linux Training In Noida
SAS Training in Noida
Beautiful tutorial. Thank you for sharing, I went through your blog, it helped me a lot and I also received some new information.
ReplyDeleteaws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore
Lovely tutorial. Thank you for sharing, I went through your blog, it assisted me a lot and I got some fresh data as well...
ReplyDeleteaws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore
python Training center in noida
ReplyDeleteGeart Article.Really helpful to students who are taking Training on Big data and Hadoop.Thank you very much.
ReplyDeleteVery nice post. Thanks for sahring with us.
ReplyDeleteMachine Learning training in Pallikranai Chennai
Pytorch training in Pallikaranai chennai
Data science training in Pallikaranai
Python Training in Pallikaranai chennai
Deep learning with Pytorch training in Pallikaranai chennai
Bigdata training in Pallikaranai chennai
Mongodb Nosql training in Pallikaranai chennai
Spark with ML training in Pallikaranai chennai
Data science Python training in Pallikaranai
Bigdata Spark training in Pallikaranai chennai
android training center in noida sector 15
ReplyDeleteandroid training center in noida sector 3
android training center in noida sector 16
android training center in noida sector 62
android training center in noida sector 63
aws training center in noida
ReplyDeleteaws training in noida
linux training in noida
linux training center in noida
sap sd training in noida
sap sd training center in noida
data analytics training in noida
data analytics training center in noida
devops training in noida
devops training center in noida
Android training in noida
Android training center in noida
I went through your blog its really interesting and holds an informative content. Thanks for uploading such a wonderful blog.
ReplyDeleteaws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore
Amazing blog with the recent news. Thank you very much for sharing such helpful data...
ReplyDeleteaws Training in Bangalore
python Training in Bangalore
hadoop Training in Bangalore
angular js Training in Bangalore
bigdata analytics Training in Bangalore
PHP training in noida
ReplyDeletePHP training center in noida
Digital marketing course in Noida - Digital Marketing is a broad term that includes advertising, promoting, and strengthening the online presence of businesses through digital platforms. Some of the digital tactics that fall under the umbrella of 'Digital Marketing' are digital advertising, email marketing, content marketing, pay-per-click, online brochures, and more. Unlike other offline marketing efforts, digital marketing allows getting accurate results in real time. For example, if you put an advertisement in the newspaper, it is nearly impossible to estimate how many people flipped to that page and paid attention to that ad. Digital marketing training in Noida
ReplyDelete
ReplyDeleteI went through your blog its really interesting and holds an informative content. Thanks for uploading such a wonderful blog. Data Science Course in Pune
This is amazing, very rare to find these type of blogs. Must say very well written.
ReplyDeleteHadoop Training
Nice information. Thanks for sharing content and such nice information for me. I hope you will share some more content about. Please keep sharing!
ReplyDeleteData ScienceTraining in Chennai
This comment has been removed by the author.
ReplyDeletePinnacle Learning Destination is a top MBA Coaching in Noida to provide better guidance and study material for the MBA Coaching. We have experienced and qualified faculty having an excellent command over teaching. Pinnacle boosts your CAT preparation approach and clarifies on your doubts faster and saves your time.
ReplyDeletethank you for sharing your knowledge
ReplyDeleteSpark and Scala Online Training
Do you know how to https://www.essayalert.com/2020/05/slogans-to-save-trees.html
ReplyDeleteThank you for sharing this wonderful information....keep sharing.
ReplyDeleteLooking for best Data Science Certification in Bangalore. Prwatech offers big data certification courses with 100% Placement assistance to All Our Students. Also it provides placement assistance service in Bangalore for IT.
Some training courses we offered are:
Big Data Hadoop Online Training.
Best Tableau Classroom Training in Pune.
Hi! This is my first visit to your blog! We are a team of volunteers and new initiatives in the same niche. Blog gave us useful information to work. You have done an amazing job!
ReplyDeleteData Science Training in Bangalore
Nice Post. Very informative Message and found a great post. Thank you.
ReplyDeleteBusiness Analytics Course in Pune
Business Analytics Training in Pune
It is such a nice article...waiting for the further update. Java training in Chennai | Certification | Online Course Training | Java training in Bangalore | Certification | Online Course Training | Java training in Hyderabad | Certification | Online Course Training | Java training in Coimbatore | Certification | Online Course Training | Java training in Online | Certification | Online Course Training
ReplyDeleteThank you for sharing the post it is very informative
ReplyDeleteBest Hadoop Online Training Institute
Very nice post.keep updating more posts on hadoop.
ReplyDeletehadoop admistration online training
hadoop admin certification
These musings just knocked my socks off. I am happy you have posted this.
ReplyDeletedata science course in noida
ReplyDeleteAwesome blog. I enjoyed reading your articles. This is truly a great read for me.
Data Scientist Course in pune
Hi buddies, it is great written piece entirely defined, continue the good work constantly. ExcelR Data Science Courses
ReplyDeleteFantastic blog extremely good well enjoyed with the incredible informative content which surely activates the learners to gain the enough knowledge. Which in turn makes the readers to explore themselves and involve deeply in to the subject. Wish you to dispatch the similar content successively in future as well.
ReplyDeleteData Science Training in Raipur
이것은 당신이 제공하는 훌륭한 자원입니다. 이것은 여러분이 제공하는 매우 유용한 리소스이며 무료로 제공합니다. 양질의 유용한 리소스를 무료로 제공하는 것의 가치를 인식하는 웹 사이트를 보는 것이 정말 좋습니다.
ReplyDelete내 사이트를 방문하십시오.슬롯사이트
많은 정보를 얻을 수 있습니다.
Very awesome!!! When I seek for this I found this website at the top of all blogs in search engine.
ReplyDeletedata science course
I really thank you for the valuable info on this great subject and look forward to more great posts
ReplyDeletedata scientist course in malaysia
OctaFx Review has been proven to be an extremely valuable investment tool. Traders can identify trading opportunities using action of market participants through charts, patterns and indicators.
ReplyDeleteAn obligation of appreciation is for sharing significant information. Your internet based diaries were helpful. I request to invigorate the blog through little by little. Moreover, find your blog.
ReplyDeleteA Homoeopathic approach to Skin Diseases
Homoeopathy
Drshwetahomoeopathy
Great Information sharing .. I am very happy to read this article .. thanks for giving us go through info.Fantastic nice. I appreciate this post.
ReplyDeletecyber security course
This article will present a closer look at data science courses that give you a comprehensive look at the field. So let's get started.
ReplyDeletedata science course in borivali