Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-14257

NPE when given the Invalid path to create target dir

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      bin> ./hdfs dfs -mkdir hdfs://hacluster2 /hacluster1dest2/

      -mkdir: Fatal internal error
      java.lang.NullPointerException
              at org.apache.hadoop.fs.FileSystem.fixRelativePart(FileSystem.java:2714)
              at org.apache.hadoop.hdfs.DistributedFileSystem.fixRelativePart(DistributedFileSystem.java:3229)
              at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:1618)
              at org.apache.hadoop.fs.FileSystem.exists(FileSystem.java:1742)
              at org.apache.hadoop.fs.shell.Mkdir.processNonexistentPath(Mkdir.java:74)
              at org.apache.hadoop.fs.shell.Command.processArgument(Command.java:287)
              at org.apache.hadoop.fs.shell.Command.processArguments(Command.java:269)
              at org.apache.hadoop.fs.shell.FsCommand.processRawArguments(FsCommand.java:121)
              at org.apache.hadoop.fs.shell.Command.run(Command.java:176)
              at org.apache.hadoop.fs.FsShell.run(FsShell.java:328)
              at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
              at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
              at org.apache.hadoop.fs.FsShell.main(FsShell.java:391)
      bin>
      

      Attachments

        1. HDFS-14257.002.patch
          3 kB
          Hemanth Boyina
        2. HDFS-14257.001.patch
          3 kB
          Hemanth Boyina
        3. HDFS-14257.patch
          1.0 kB
          Hemanth Boyina

        Activity

          People

            hemanthboyina Hemanth Boyina
            Harsha1206 Harshakiran Reddy
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated: