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,040 points
32 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,350 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
2,394 views
0 votes
1 answer

How to run Hadoop 2.1.0 in Windows System?

Same problem but with recent Hadoop v. ...READ MORE

answered Sep 11 in Big Data Hadoop by ravikiran
• 4,580 points
49 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
571 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,800 points
3,587 views
+1 vote
11 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
18,490 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,280 points
1,336 views
0 votes
1 answer
0 votes
5 answers