Difference between root of hdfs and local machine

0 votes

Although this is the very basic question and might sound stupid, but I have to ask this question as this will not be able to make me move ahead in the course!

While running the commands I was a bit confused regarding the fact that which location is what. I mean, how the root folder of the HDFS and the normal local machine is different from each other?

I have -put the file using:

hdfs dfs -put <filename> and press enter this will save the file in the local machine I believe and if we put the "/" at the last in the same command this will save in the root folder of the hdfs .but I am unable to find the difference between these two!

I have put the same file to both the location and I can see the file inside the user/edureka folder. To which machine this edureka folder belongs?

Jun 19, 2019 in Big Data Hadoop by anonymous
2,067 views

1 answer to this question.

0 votes

The command hdfs dfs -put command is used to transfer the file from local file system to hdfs. In any edge node, if you use the syntax as

hadoop dfs -put file.txt /user/data

then the file will move to /user/data. In case of webconsole the default hdfs path has been set to /user/edureka_id so if you use the command hadoop dfs -put file.txt the file goes to the hdfs path /user/edureka_id directly .

answered Jun 19, 2019 by Mahi

Related Questions In Big Data Hadoop

0 votes
2 answers

Difference between HDFS and NFS

In NFS, the data is stored only ...READ MORE

answered Feb 4, 2019 in Big Data Hadoop by Kumar
14,982 views
0 votes
2 answers

What is the difference between the Smart Data Access of SAP HANA and SAP HANA Vora?

Hadoop: Used to store Big Data in ...READ MORE

answered Jun 21, 2018 in Big Data Hadoop by kurt_cobain
• 9,350 points
1,310 views
0 votes
1 answer

What is the difference between local file system commands touch and touchz?

Actually they both do the same except touchz is ...READ MORE

answered Aug 14, 2018 in Big Data Hadoop by Frankie
• 9,830 points
2,478 views
+1 vote
1 answer

What is difference between Hadoop Namenode HA and HDFS federation?

The main difference between HDFS High Availability ...READ MORE

answered Oct 31, 2018 in Big Data Hadoop by Frankie
• 9,830 points
3,374 views
+1 vote
1 answer

Explain to me the difference between HBase and HDFS

Let's start from scratch. Hadoop basically consists of three ...READ MORE

answered Mar 19, 2019 in Big Data Hadoop by nitinrawat895
• 11,380 points
1,063 views
0 votes
10 answers

What is the difference between Mongodb and Hadoop?

MongoDB is a NoSQL database, whereas Hadoop is ...READ MORE

answered Jun 20, 2018 in Big Data Hadoop by jenny_code
12,075 views
0 votes
13 answers

What is the difference between Hadoop/HDFS & HBase?

HDFS is a distributed file system whereas ...READ MORE

answered Apr 26, 2019 in Big Data Hadoop by Arihar
• 160 points
33,756 views
0 votes
1 answer
+2 votes
10 answers

Is there any difference between “hdfs dfs” and “hadoop fs” shell commands?

hadoop fs <args> fs is used for generic ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by anonymous
33,994 views
0 votes
1 answer

Explain to me the difference between HBase and HDFS.

Hadoop generally consists of three major components: HDFS It ...READ MORE

answered Apr 12, 2019 in Big Data Hadoop by ravikiran
• 4,620 points
2,399 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP