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
• 1,980 points
494 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
+1 vote

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
• 9,350 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 in Big Data Hadoop by Frankie
• 9,710 points
35 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,260 points
80 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 in Big Data Hadoop by Omkar
• 66,880 points
68 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
• 9,350 points
1,825 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
9,028 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,260 points
647 views
0 votes
1 answer
0 votes
1 answer

Hadoop installation on Ubuntu.

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

answered Mar 7 in Big Data Hadoop by nitinrawat895
• 9,350 points
52 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
• 9,350 points
269 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.