Hadoop Common
  1. Hadoop Common
  2. HADOOP-6614

RunJar should provide more diags when it can't create a temp file

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 0.22.0
    • Fix Version/s: 0.23.1
    • Component/s: util
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      When you see a stack trace about permissions, it is better if the trace included the file/directory at fault:

      Exception in thread "main" java.io.IOException: Permission denied
      	at java.io.UnixFileSystem.createFileExclusively(Native Method)
      	at java.io.File.checkAndCreate(File.java:1704)
      	at java.io.File.createTempFile(File.java:1792)
      	at org.apache.hadoop.util.RunJar.main(RunJar.java:147)
      

      As it is, you need to go into the code, discover that it's {{$

      {hadoop.tmp.dir}

      /hadoop-unjar}}, but you need to know the value of hadoop.tmp.dir to really find out what the problem is.

      1. hadoop-6614.patch
        1 kB
        Eli Collins
      2. hadoop-6614.patch
        2 kB
        Eli Collins
      3. hadoop-6614.patch
        1 kB
        Eli Collins
      4. hadoop-6614.patch
        1 kB
        Jonathan Hsieh

        Issue Links

          Activity

          Steve Loughran created issue -
          Gavin made changes -
          Field Original Value New Value
          Reporter Steve Loughran [ steve_l ] Steve Loughran [ stevel@apache.org ]
          Jonathan Hsieh made changes -
          Assignee Jonathan Hsieh [ jmhsieh ]
          Jonathan Hsieh made changes -
          Attachment hadoop-6614.patch [ 12504428 ]
          Jonathan Hsieh made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Eli Collins made changes -
          Hadoop Flags Reviewed [ 10343 ]
          Fix Version/s 0.23.1 [ 12318884 ]
          Eli Collins made changes -
          Attachment hadoop-6614.patch [ 12504436 ]
          Eli Collins made changes -
          Attachment hadoop-6614.patch [ 12504445 ]
          Eli Collins made changes -
          Attachment hadoop-6614.patch [ 12504475 ]
          Eli Collins made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          John George made changes -
          Link This issue is related to HADOOP-7843 [ HADOOP-7843 ]
          Arun C Murthy made changes -
          Status Resolved [ 5 ] Closed [ 6 ]

            People

            • Assignee:
              Jonathan Hsieh
              Reporter:
              Steve Loughran
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development