Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-7240 Scaling HDFS
  3. HDFS-12331

Ozone: Mini cluster can't start up on Windows after HDFS-12159

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • HDFS-7240
    • None
    • ozone

    Description

      ozone mini cluster can't start up on Windows after HDFS-12159.
      The error log:

      java.net.URISyntaxException: Illegal character in opaque part at index 2: D:\work-project\hadoop\hadoop-hdfs-project\hadoop-hdfs\target\test\data\dfs\data\dn0_data-1\3d3d5718-4219-4ec3-a9c5-e594801a1430
      	at java.net.URI$Parser.fail(URI.java:2848)
      	at java.net.URI$Parser.checkChars(URI.java:3021)
      	at java.net.URI$Parser.parse(URI.java:3058)
      	at java.net.URI.<init>(URI.java:588)
      	at org.apache.ratis.util.FileUtils.stringAsURI(FileUtils.java:133)
      	at org.apache.ratis.server.storage.RaftStorage.<init>(RaftStorage.java:49)
      	at org.apache.ratis.server.impl.ServerState.<init>(ServerState.java:85)
      	at org.apache.ratis.server.impl.RaftServerImpl.<init>(RaftServerImpl.java:94)
      	at org.apache.ratis.server.impl.RaftServerProxy.initImpl(RaftServerProxy.java:67)
      	at org.apache.ratis.server.impl.RaftServerProxy.<init>(RaftServerProxy.java:62)
      	at org.apache.ratis.server.impl.ServerImplUtils.newRaftServer(ServerImplUtils.java:43)
      	at org.apache.ratis.server.impl.ServerImplUtils.newRaftServer(ServerImplUtils.java:35)
      	at org.apache.ratis.server.RaftServer$Builder.build(RaftServer.java:70)
      	at org.apache.hadoop.ozone.container.common.transport.server.ratis.XceiverServerRatis.<init>(XceiverServerRatis.java:68)
      	at org.apache.hadoop.ozone.container.common.transport.server.ratis.XceiverServerRatis.newXceiverServerRatis(XceiverServerRatis.java:130)
      	at org.apache.hadoop.ozone.container.ozoneimpl.OzoneContainer.<init>(OzoneContainer.java:113)
      	at org.apache.hadoop.ozone.container.common.statemachine.DatanodeStateMachine.<init>(DatanodeStateMachine.java:76)
      	at org.apache.hadoop.hdfs.server.datanode.DataNode.bpRegistrationSucceeded(DataNode.java:1592)
      	at org.apache.hadoop.hdfs.server.datanode.BPOfferService.registrationSucceeded(BPOfferService.java:409)
      	at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.register(BPServiceActor.java:783)
      	at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.connectToNNAndHandshake(BPServiceActor.java:286)
      	at org.apache.hadoop.hdfs.server.datanode.BPServiceActor.run(BPServiceActor.java:816)
      

      The root cause is that RatiServer instance was newly created in OzoneContainer after HDFS-12159 but it can't recognize the path under Windows.

      Attachments

        Issue Links

          Activity

            People

              linyiqun Yiqun Lin
              linyiqun Yiqun Lin
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: