You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Peter N. Steinmetz (JIRA)" <ji...@apache.org> on 2011/07/01 08:10:28 UTC
[jira] [Commented] (HADOOP-6614) RunJar should provide more diags
when it can't create a temp file
[ https://issues.apache.org/jira/browse/HADOOP-6614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13058225#comment-13058225 ]
Peter N. Steinmetz commented on HADOOP-6614:
--------------------------------------------
I don't personally think this should be minor, as I just spent an hour trying to figure this out. Would be good if there was a message pointing to the problem. It is easy to fix once you know what directory to look for.
> RunJar should provide more diags when it can't create a temp file
> -----------------------------------------------------------------
>
> Key: HADOOP-6614
> URL: https://issues.apache.org/jira/browse/HADOOP-6614
> Project: Hadoop Common
> Issue Type: Improvement
> Components: util
> Affects Versions: 0.22.0
> Reporter: Steve Loughran
> Priority: Minor
>
> When you see a stack trace about permissions, it is better if the trace included the file/directory at fault:
> {code}
> 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)
> {code}
> 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.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira