Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-1435

FileSystem.globPaths should not create a Path from an empty string

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 0.12.3
    • 0.13.0
    • fs
    • None

    Description

      Got the following error when tried to list a directory in a home directory using a relative path name

      hadoop dfs -ls in_jar

      Exception in thread "main" java.lang.IllegalArgumentException: Can not create a Path from an empty string
      at org.apache.hadoop.fs.Path.checkPathArg(Path.java:82)
      at org.apache.hadoop.fs.Path.<init>(Path.java:90)
      at org.apache.hadoop.fs.FileSystem.globPaths(FileSystem.java:561)
      at org.apache.hadoop.fs.FileSystem.globPaths(FileSystem.java:540)
      at org.apache.hadoop.fs.FsShell.ls(FsShell.java:314)
      at org.apache.hadoop.fs.FsShell.doall(FsShell.java:842)
      at org.apache.hadoop.fs.FsShell.run(FsShell.java:1016)
      at org.apache.hadoop.util.ToolBase.doMain(ToolBase.java:189)
      at org.apache.hadoop.fs.FsShell.main(FsShell.java:1092)

      Attachments

        1. globPath.patch
          0.5 kB
          Hairong Kuang

        Activity

          People

            hairong Hairong Kuang
            hairong Hairong Kuang
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: