This topic contains 3 replies, has 2 voices, and was last updated by  Robert Molina 3 months, 1 week ago.

  • Creator
    Topic
  • #49151

    Ryan Tao
    Participant

    Hi,

    Every time I started the cluster, I found the error in namenode log. Below is the detailed.
    The path of data is available and accessible. I tried to add hadoop account into administrator group and format the namenode, but both didn’t work.
    Any help will be appreciated.

    2014-02-24 01:06:37,623 ERROR org.apache.hadoop.hdfs.server.common.Util: Syntax error in URI c:\hdp-win\data\hdfs\nn. Please check hdfs configuration.
    java.net.URISyntaxException: Illegal character in opaque part at index 2: c:\hdp-win\data\hdfs\nn
    at java.net.URI$Parser.fail(URI.java:2810)
    at java.net.URI$Parser.checkChars(URI.java:2983)
    at java.net.URI$Parser.parse(URI.java:3020)
    at java.net.URI.<init>(URI.java:577)
    at org.apache.hadoop.hdfs.server.common.Util.stringAsURI(Util.java:48)
    at org.apache.hadoop.hdfs.server.common.Util.stringCollectionAsURIs(Util.java:98)
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getStorageDirs(FSNamesystem.java:1119)
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.getNamespaceDirs(FSNamesystem.java:1074)
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.checkConfiguration(FSNamesystem.java:508)
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.loadFromDisk(FSNamesystem.java:563)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.loadNamesystem(NameNode.java:443)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.initialize(NameNode.java:491)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:684)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.<init>(NameNode.java:669)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.createNameNode(NameNode.java:1254)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.main(NameNode.java:1320)
    2014-02-24 01:06:37,639 WARN org.apache.hadoop.hdfs.server.common.Util: Path c:\hdp-win\data\hdfs\nn should be specified as a URI in configuration files. Please update hdfs configuration.

    Thanks,
    Ryan

Viewing 3 replies - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #52212

    Robert Molina
    Moderator

    Hi Ryan,
    That seems to match up c:\hdp-win\data\hdfs\nn. How about if you try an upper case C. This is what I have in my cluster:
    C:\hdpdata\data\hdfs\nn . Also it would probably be good just to verify you have a well formed xml file.

    Kind Regards,
    Robert

    Collapse
    #49508

    Ryan Tao
    Participant

    Hi Robert,

    Thanks for your response.
    Below is the detailed of property.

    <property>
    <name>dfs.namenode.name.dir</name>
    <value>c:\hdp-win\data\hdfs\nn</value>
    <description>Determines where on the local filesystem the DFS name node
    should store the name table. If this is a comma-delimited list
    of directories then the name table is replicated in all of the
    directories, for redundancy. </description>
    <final>true</final>
    </property>

    Thanks,
    Ryan

    Collapse
    #49422

    Robert Molina
    Moderator

    Hi Ryan,
    Can you post the value you have set in hdfs-site.xml which is in your etc\hadoop folder. The property is dfs.namenode.name.dir.

    Regards,
    Robert

    Collapse
Viewing 3 replies - 1 through 3 (of 3 total)