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,020 points
21 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,290 points

Related Questions In Big Data Hadoop

0 votes
5 answers

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

Hi, You can try this command: hadoop fs -ls ...READ MORE

answered Aug 1 in Big Data Hadoop by Dinish
1,453 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
369 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
129 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,490 points
2,377 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
12,108 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
890 views
0 votes
1 answer
0 votes
5 answers