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 in Big Data Hadoop by anonymous
15 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 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 in Big Data Hadoop by Kumar
1,936 views
0 votes
2 answers
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,810 points
123 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 30, 2018 in Big Data Hadoop by Frankie
• 9,810 points
170 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 in Big Data Hadoop by nitinrawat895
• 10,110 points
55 views
0 votes
10 answers

What is the difference between Mongodb and Hadoop?

Apart from the similarity that they are ...READ MORE

answered Dec 6, 2018 in Big Data Hadoop by Deeraj
2,158 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 in Big Data Hadoop by Arihar
• 160 points
6,348 views
0 votes
1 answer
+2 votes
10 answers

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

Yes, there's a difference between hadoop fs and ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Kunal
8,714 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 in Big Data Hadoop by ravikiran
• 3,560 points
115 views