[
https://issues.apache.org/jira/browse/KNOX-715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15306937#comment-15306937
]
Larry McCay commented on KNOX-715:
----------------------------------
[~pregazzoni] - the results of my testing are as follows:
{code}
bash-3.2$ java -jar bin/shell.jar samples/ExampleWebHCatJobTeragen.groovy
Enter username: guest
Enter password:
Delete /user/guest/test: 200
Create /user/guest/test: 200
Put /user/guest/test/lib/hadoop-mapreduce-examples.jar: 201
Submitted job: job_1460664541763_0010
Polling up to 60s for job completion...
........................................................
Job status: true
Caught: org.apache.hadoop.gateway.shell.HadoopException:
org.apache.hadoop.gateway.shell.ErrorResponse: HTTP/1.1 404 Not Found
org.apache.hadoop.gateway.shell.HadoopException:
org.apache.hadoop.gateway.shell.ErrorResponse: HTTP/1.1 404 Not Found
at
org.apache.hadoop.gateway.shell.AbstractRequest.now(AbstractRequest.java:72)
at org.apache.hadoop.gateway.shell.AbstractRequest$now.call(Unknown
Source)
at ExampleWebHCatJobTeragen.run(ExampleWebHCatJobTeragen.groovy:71)
at org.apache.hadoop.gateway.shell.Shell.main(Shell.java:56)
at
org.apache.hadoop.gateway.launcher.Invoker.invokeMainMethod(Invoker.java:70)
at org.apache.hadoop.gateway.launcher.Invoker.invoke(Invoker.java:39)
at org.apache.hadoop.gateway.launcher.Command.run(Command.java:101)
at org.apache.hadoop.gateway.launcher.Launcher.run(Launcher.java:69)
at org.apache.hadoop.gateway.launcher.Launcher.main(Launcher.java:46)
Caused by: org.apache.hadoop.gateway.shell.ErrorResponse: HTTP/1.1 404 Not Found
at org.apache.hadoop.gateway.shell.Hadoop.executeNow(Hadoop.java:107)
at
org.apache.hadoop.gateway.shell.AbstractRequest.execute(AbstractRequest.java:47)
at
org.apache.hadoop.gateway.shell.hdfs.Ls$Request.access$200(Ls.java:31)
at org.apache.hadoop.gateway.shell.hdfs.Ls$Request$1.call(Ls.java:51)
at org.apache.hadoop.gateway.shell.hdfs.Ls$Request$1.call(Ls.java:45)
at
org.apache.hadoop.gateway.shell.AbstractRequest.now(AbstractRequest.java:70)
... 8 more
{code}
>From your previous comment, it seems that the job is supposed to generate the
>input_terasort directory and files within it. Is this true?
It isn't quite working for me.
Beyond that, I think that:
1. if we require the hadoop-mapreduce-examples.jar that it should be made
available in the samples directory just as the hadoop-examples.jar is. We will
need to determine just exactly how that is getting put there now.
2. in the meantime, there need to be some instructions inside the sample to
explain that it must be located and copied to the samples directory in order to
run the sample. If there is something else that is needed to address the above
error then it needs to also be communicated or added to the test setup itself.
> submitJava should allow multiple argument via arg()
> ---------------------------------------------------
>
> Key: KNOX-715
> URL: https://issues.apache.org/jira/browse/KNOX-715
> Project: Apache Knox
> Issue Type: Bug
> Components: ClientDSL
> Affects Versions: 0.7.0
> Reporter: Pierre Regazzoni
> Assignee: Pierre Regazzoni
> Fix For: 0.9.1
>
> Attachments: KNOX-715-002.patch, KNOX-715.patch
>
>
> Like with submitPig (KNOX-712). I want to be able to provide multiple
> argument when submitting a jar via submitJava. For example, should be able to
> do:
> {noformat}
> jobId = Job.submitJava(session) \
> .jar( "path-to-my-jar" ) \
> .app( "class-name" ) \
> .arg( "argument1").arg("value1") \
> .arg( "argument2").arg("value2") \
> .arg( "argument3") \
> .output("path-to-output-dir ) \
> .now().jobId
> {noformat}
> Current code limits execution to only specifying jar,class,input,output. I
> should have a patch for it.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)