Hi TD,
Here's an explanation along side with the log statements.
> 2011-04-06 17:22:24,371 INFO server Copying /user/hue/jobsub/
> examples/hadoop-examples.jar->/tmp/jobsub-95jokR/work/tmp.jar
To run a job, we need a jar. The jar in this example is stored in
HDFS. Here Hue is simply copying the jar from the cluster to its
local machine for submission. This isn't the error.
> 2011-04-06 17:22:24,557 INFO server all_clusters:
> [<hadoop.job_tracker.LiveJobTracker object at 0xd3d3690>,
> <hadoop.fs.hadoopfs.HadoopFileSystem object at 0xd1b3f10>]
> 2011-04-06 17:22:24,557 INFO server Starting ['/usr/lib/hadoop-0.20/
> bin/hadoop', 'jar', 'tmp.jar', 'pi', '1000', '2']. (Env:
> {'HADOOP_CLASSPATH': '/usr/share/hue/apps/jobsub/src/jobsub/../../java-
> lib/trace.jar:/usr/share/hue/desktop/libs/hadoop/src/hadoop/../../
> static-group-mapping/java-lib/static-group-mapping-1.2.0.jar',
> 'HUE_JOBTRACE_LOG': '/tmp/jobsub-95jokR/jobs', 'HUE_JOBSUB_USER':
> 'delsorbo', 'HADOOP_OPTS': '-javaagent:/usr/share/hue/ext/thirdparty/
> java/aspectj-1.6.5/aspectjweaver.jar -Dhue.suffix=-via-hue -
> Duser.name=delsorbo', 'HUE_JOBSUB_GROUPS': 'delsorbo', 'HADOOP_HOME':
> '/usr/lib/hadoop-0.20'})
> 2011-04-06 17:22:24,557 INFO server Running: /usr/lib/hadoop-0.20/
> bin/hadoop jar tmp.jar pi 1000 2
Is this the command that you tried on the CLI and gave an error?
Hue is now calling Hadoop to submit a job.
> 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:146)
This error comes from within Hadoop. Unfortunately it doesn't
tell us what the path is. Most likely your hadoop.tmp.dir
(which is a local directory on the Hue node) is not writable.
The job submission needs to unpacks the jar in there. When you
run hadoop on the commandline, hadoop.tmp.dir needs to be
writable to you. When you do it through Hue, it needs to be
writable to the `hue' user.
One easy fix is to set your hadoop.tmp.dir to 0777. Or see this
discussion:
http://archive.cloudera.com/cdh/3/hue/manual.html#_further_hadoop_configuration_and_caveats
Cheers,
--
bc Wong
Cloudera Software Engineer