Files for Configuring HDFS in Hadoop 2.2.0?

0 votes
I am new to Hadoop and I am installing Hadoop 2.2.0 single node. I have already downloaded the Hadoop file and extracted it. Now I am configuring Hadoop, but I am completely confused.

hdfs-site.xml is present in etc/hadoop directory but it doesn’t contain anything.

core-default.xml is also a doc file

So, can anyone help me out in figuring what are the files which I have to edit?
Apr 15, 2018 in Big Data Hadoop by coldcode
• 2,010 points
16 views

1 answer to this question.

0 votes

By default these Hadoop configuration files are found in hadoop/conf directory.

For configuring HDFS you have to edit core-site.xml and hdfs-site.xml files.

core-site.xml:

<property>
  <name>fs.default.name</name>
  <value>hdfs://localhost:8020</value>
</property>

In hdfs-site.xml:

<property>
    <name>hadoop.tmp.dir</name>
    <value>/directory/</value>
</property>

answered Apr 15, 2018 by Shubham
• 13,110 points

Related Questions In Big Data Hadoop

0 votes
3 answers

Hadoop hdfs: list all files in a directory and its subdirectories

You can do it using queue: private static ...READ MORE

answered Dec 4, 2018 in Big Data Hadoop by Ishwar
1,203 views
0 votes
1 answer

Not able to start Job History Server in Hadoop 2.8.1

You have to start JobHistoryServer process specifically ...READ MORE

answered Mar 29, 2018 in Big Data Hadoop by Ashish
• 2,630 points
314 views
0 votes
1 answer

What Distributed Cache is actually used for in Hadoop?

Basically distributed cache allows you to cache ...READ MORE

answered Apr 2, 2018 in Big Data Hadoop by Ashish
• 2,630 points
110 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,030 points
2,037 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
10,347 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,240 points
759 views
0 votes
1 answer
0 votes
5 answers