Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.3.0
    • Fix Version/s: None
    • Component/s: conf
    • Labels:
      None
    • Target Version/s:

      Description

      When we run : hadoop fs -conf NON_EXISTENT_FILE -ls /
      hadoop (trunk, branch-2, branch-0.23) throws an RuntimeException, but hadoop (branch-1) doesn't.

        Issue Links

          Activity

          Hide
          Akira AJISAKA added a comment -

          I attached a patch to backport. I ran "hadoop fs -conf NON_EXISTENT_FILE -ls /" with the patch.

          [hadoop@hadoop ~]$ hadoop fs -conf NON_EXISTENT_FILE -ls /
          Exception in thread "main" java.lang.RuntimeException: NON_EXISTENT_FILE not found
                  at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:1224)
                  at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1154)
                  at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:1090)
                  at org.apache.hadoop.conf.Configuration.set(Configuration.java:443)
                  at org.apache.hadoop.conf.Configuration.setBoolean(Configuration.java:632)
                  at org.apache.hadoop.util.GenericOptionsParser.processGeneralOptions(GenericOptionsParser.java:303)
                  at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:413)
                  at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:164)
                  at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:147)
                  at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:59)
                  at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
                  at org.apache.hadoop.fs.FsShell.main(FsShell.java:1934)
          
          Show
          Akira AJISAKA added a comment - I attached a patch to backport. I ran "hadoop fs -conf NON_EXISTENT_FILE -ls /" with the patch. [hadoop@hadoop ~]$ hadoop fs -conf NON_EXISTENT_FILE -ls / Exception in thread "main" java.lang.RuntimeException: NON_EXISTENT_FILE not found at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:1224) at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1154) at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:1090) at org.apache.hadoop.conf.Configuration.set(Configuration.java:443) at org.apache.hadoop.conf.Configuration.setBoolean(Configuration.java:632) at org.apache.hadoop.util.GenericOptionsParser.processGeneralOptions(GenericOptionsParser.java:303) at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:413) at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:164) at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:147) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:59) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79) at org.apache.hadoop.fs.FsShell.main(FsShell.java:1934)

            People

            • Assignee:
              Akira AJISAKA
              Reporter:
              Akira AJISAKA
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Development