Hadoop Installation Issue on Windows

+1 vote

I installed Hadoop on windows 7 but after installing Hadoop, Namenode is not running. I guess there is some issue with hdfs-site.xml file but I’m not able to figure it out. Can anyone please help?

hdfs-site.xml

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<configuration>
   <property>
       <name>dfs.replication</name>
       <value>1</value>
   </property>
   <property>
       <name>dfs.namenode.name.dir</name>
       <value>F:\hadoop-2.7.2\data\namenode</value>
   </property>
   <property>
       <name>dfs.datanode.data.dir</name>
     <value>F:\hadoop-2.7.2\data\datanode</value>
   </property>
</configuration>

Please check hdfs configuration.
And the error log looks like this
java.net.URISyntaxException: Illegal character in opaque part at index 2: F:\had
oop-2.7.2\data\namenode
        at java.net.URI$Parser.fail(URI.java:2829)
        at java.net.URI$Parser.checkChars(URI.java:3002)
        at java.net.URI$Parser.parse(URI.java:3039)
        at java.net.URI.<init>(URI.java:595)

Mar 26, 2018 in Big Data Hadoop by coldcode
• 2,080 points
5,666 views

1 answer to this question.

+2 votes

Below is the main error you are getting because you are not using the correct syntax
ERROR common.Util: Syntax error in URI F:\hadoop-2.7.2\data\namenode.
In hdfs-site.xml you’ve specified like this:
<property>
    <name>dfs.namenode.name.dir</name>
    <value>F:\hadoop-2.7.2\data\namenode</value>
</property>

Instead of using backward slash, use the forward slashes
F:/hadoop-2.7.2/data/namenode
Alternatively make it a valid URI
file:///f:/hadoop-2.7.2/data/namenode

answered Mar 26, 2018 by nitinrawat895
• 11,380 points
it resolved the issue
Hey there! Thanks for letting me know. Glad it worked ! :-)

Related Questions In Big Data Hadoop

0 votes
1 answer

Hadoop installation issue on fedora 24

type jps and check whether namenode and datanode is ...READ MORE

answered Jan 24, 2019 in Big Data Hadoop by Frankie
• 9,830 points
580 views
0 votes
1 answer

Hadoop on Windows - Training

If your primary objective is to learn ...READ MORE

answered Mar 27, 2018 in Big Data Hadoop by kurt_cobain
• 9,390 points
798 views
0 votes
1 answer
0 votes
1 answer

How to install Hadoop on Windows system?

First you need to download Hadoop files. ...READ MORE

answered Feb 20, 2019 in Big Data Hadoop by Omkar
• 69,210 points
2,951 views
+1 vote
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
• 11,380 points
10,523 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
103,826 views
–1 vote
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,390 points
4,234 views
0 votes
1 answer
0 votes
1 answer

Hadoop installation on Ubuntu.

I have the perfect solution for you, ...READ MORE

answered Mar 8, 2019 in Big Data Hadoop by nitinrawat895
• 11,380 points
866 views
0 votes
1 answer

How to install Hadoop on Ubuntu?

You can refer to this blog by ...READ MORE

answered Mar 21, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
1,182 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