[jira] [Commented] (KNOX-1048) Knoxshell samples missing hadoop-examples.jar and hadoop-mapreduce-examples.jar
[ https://issues.apache.org/jira/browse/KNOX-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16191343#comment-16191343 ] Colm O hEigeartaigh commented on KNOX-1048: --- I'm going to merge a fix for knoxshell missing hadoop-examples. The hadoop-mapreduce-examples jar needs to be copied in to the samples directory as per ExampleWebHCatJobTeragen.groovy: // You will need to copy hadoop-mapreduce-samples.jar from your cluster // and place it under samples/ directory. // For example you might find the jar under: /usr/iop/current/hadoop-mapreduce-client jarFile = "samples/hadoop-mapreduce-examples.jar" > Knoxshell samples missing hadoop-examples.jar and > hadoop-mapreduce-examples.jar > --- > > Key: KNOX-1048 > URL: https://issues.apache.org/jira/browse/KNOX-1048 > Project: Apache Knox > Issue Type: Bug > Components: KnoxShell >Reporter: Sandeep More > Fix For: 0.14.0 > > > I get the following exception while running ExampleOozieWorkflow.groovy. > Caught: java.util.concurrent.ExecutionException: > java.io.FileNotFoundException: samples/hadoop-examples.jar (No such file or > directory) > java.util.concurrent.ExecutionException: java.io.FileNotFoundException: > samples/hadoop-examples.jar (No such file or directory) > at org.apache.knox.gateway.shell.Hadoop.waitFor(Hadoop.java:271) > at ExampleOozieWorkflow.run(ExampleOozieWorkflow.groovy:108) > at org.apache.knox.gateway.shell.Shell.main(Shell.java:56) > at > org.apache.knox.gateway.launcher.Invoker.invokeMainMethod(Invoker.java:70) > at org.apache.knox.gateway.launcher.Invoker.invoke(Invoker.java:39) > at org.apache.knox.gateway.launcher.Command.run(Command.java:99) > at org.apache.knox.gateway.launcher.Launcher.run(Launcher.java:69) > at org.apache.knox.gateway.launcher.Launcher.main(Launcher.java:46) > Caused by: java.io.FileNotFoundException: samples/hadoop-examples.jar (No > such file or directory) > at org.apache.http.entity.FileEntity.writeTo(FileEntity.java:94) > at > org.apache.http.impl.DefaultBHttpClientConnection.sendRequestEntity(DefaultBHttpClientConnection.java:156) > at > org.apache.http.impl.conn.CPoolProxy.sendRequestEntity(CPoolProxy.java:160) > at > org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:238) > at > org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123) > at > org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272) > at > org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) > at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) > at > org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111) > at > org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) > at > org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) > at org.apache.knox.gateway.shell.Hadoop.executeNow(Hadoop.java:256) > at > org.apache.knox.gateway.shell.AbstractRequest.execute(AbstractRequest.java:49) > at > org.apache.knox.gateway.shell.hdfs.Put$Request.access$1600(Put.java:39) > at org.apache.knox.gateway.shell.hdfs.Put$Request$1.call(Put.java:124) > at org.apache.knox.gateway.shell.hdfs.Put$Request$1.call(Put.java:95) > at > org.apache.knox.gateway.shell.AbstractRequest$1.call(AbstractRequest.java:106) > Also while running ExampleWebHCatJobTeragen.groovy I get the following > java -Djavax.net.ssl.trustStore=gateway-client-trust.jks -jar > bin/knoxshell.jar samples/ExampleWebHCatJobTeragen.groovy > Caught: java.util.concurrent.ExecutionException: > java.io.FileNotFoundException: samples/hadoop-mapreduce-examples.jar (No such > file or directory) > java.util.concurrent.ExecutionException: java.io.FileNotFoundException: > samples/hadoop-mapreduce-examples.jar (No such file or directory) > at org.apache.knox.gateway.shell.Hadoop.waitFor(Hadoop.java:271) > at ExampleWebHCatJobTeragen.run(ExampleWebHCatJobTeragen.groovy:52) > at org.apache.knox.gateway.shell.Shell.main(Shell.java:56) > at > org.apache.knox.gateway.launcher.Invoker.invokeMainMethod(Invoker.java:70) > at org.apache.knox.gateway.launcher.Invoker.invoke(Invoker.java:39) > at org.apache.knox.gateway.launcher.Command.run(Command.java:99) > at org.apache.knox.gateway.launcher.Launcher.run(Launcher.java:69) > at org.apache.knox.gateway.launcher.Launcher.main(Launcher.java:46) > Caused by: java.io.FileNotFoundException: > samples/hadoop-mapreduce-examples.jar (No such file or directory) > at org.apache.http.entity.FileEntity.writeTo
[jira] [Commented] (KNOX-1048) Knoxshell samples missing hadoop-examples.jar and hadoop-mapreduce-examples.jar
[ https://issues.apache.org/jira/browse/KNOX-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16191355#comment-16191355 ] ASF subversion and git services commented on KNOX-1048: --- Commit ff3af36d63609cd0b60400071e9df26ec41e96d3 in knox's branch refs/heads/master from [~coheigea] [ https://git-wip-us.apache.org/repos/asf?p=knox.git;h=ff3af36 ] KNOX-1048 - Knoxshell samples missing hadoop-examples.jar > Knoxshell samples missing hadoop-examples.jar and > hadoop-mapreduce-examples.jar > --- > > Key: KNOX-1048 > URL: https://issues.apache.org/jira/browse/KNOX-1048 > Project: Apache Knox > Issue Type: Bug > Components: KnoxShell >Reporter: Sandeep More > Fix For: 0.14.0 > > > I get the following exception while running ExampleOozieWorkflow.groovy. > Caught: java.util.concurrent.ExecutionException: > java.io.FileNotFoundException: samples/hadoop-examples.jar (No such file or > directory) > java.util.concurrent.ExecutionException: java.io.FileNotFoundException: > samples/hadoop-examples.jar (No such file or directory) > at org.apache.knox.gateway.shell.Hadoop.waitFor(Hadoop.java:271) > at ExampleOozieWorkflow.run(ExampleOozieWorkflow.groovy:108) > at org.apache.knox.gateway.shell.Shell.main(Shell.java:56) > at > org.apache.knox.gateway.launcher.Invoker.invokeMainMethod(Invoker.java:70) > at org.apache.knox.gateway.launcher.Invoker.invoke(Invoker.java:39) > at org.apache.knox.gateway.launcher.Command.run(Command.java:99) > at org.apache.knox.gateway.launcher.Launcher.run(Launcher.java:69) > at org.apache.knox.gateway.launcher.Launcher.main(Launcher.java:46) > Caused by: java.io.FileNotFoundException: samples/hadoop-examples.jar (No > such file or directory) > at org.apache.http.entity.FileEntity.writeTo(FileEntity.java:94) > at > org.apache.http.impl.DefaultBHttpClientConnection.sendRequestEntity(DefaultBHttpClientConnection.java:156) > at > org.apache.http.impl.conn.CPoolProxy.sendRequestEntity(CPoolProxy.java:160) > at > org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:238) > at > org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123) > at > org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272) > at > org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) > at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) > at > org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111) > at > org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) > at > org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) > at org.apache.knox.gateway.shell.Hadoop.executeNow(Hadoop.java:256) > at > org.apache.knox.gateway.shell.AbstractRequest.execute(AbstractRequest.java:49) > at > org.apache.knox.gateway.shell.hdfs.Put$Request.access$1600(Put.java:39) > at org.apache.knox.gateway.shell.hdfs.Put$Request$1.call(Put.java:124) > at org.apache.knox.gateway.shell.hdfs.Put$Request$1.call(Put.java:95) > at > org.apache.knox.gateway.shell.AbstractRequest$1.call(AbstractRequest.java:106) > Also while running ExampleWebHCatJobTeragen.groovy I get the following > java -Djavax.net.ssl.trustStore=gateway-client-trust.jks -jar > bin/knoxshell.jar samples/ExampleWebHCatJobTeragen.groovy > Caught: java.util.concurrent.ExecutionException: > java.io.FileNotFoundException: samples/hadoop-mapreduce-examples.jar (No such > file or directory) > java.util.concurrent.ExecutionException: java.io.FileNotFoundException: > samples/hadoop-mapreduce-examples.jar (No such file or directory) > at org.apache.knox.gateway.shell.Hadoop.waitFor(Hadoop.java:271) > at ExampleWebHCatJobTeragen.run(ExampleWebHCatJobTeragen.groovy:52) > at org.apache.knox.gateway.shell.Shell.main(Shell.java:56) > at > org.apache.knox.gateway.launcher.Invoker.invokeMainMethod(Invoker.java:70) > at org.apache.knox.gateway.launcher.Invoker.invoke(Invoker.java:39) > at org.apache.knox.gateway.launcher.Command.run(Command.java:99) > at org.apache.knox.gateway.launcher.Launcher.run(Launcher.java:69) > at org.apache.knox.gateway.launcher.Launcher.main(Launcher.java:46) > Caused by: java.io.FileNotFoundException: > samples/hadoop-mapreduce-examples.jar (No such file or directory) > at org.apache.http.entity.FileEntity.writeTo(FileEntity.java:94) > at > org.apache.http.impl.DefaultBHttpClientConnection.sendRequestEntity(DefaultBHttpClientConnection.java:156) > at > org.apache.http.impl.conn.CPoolPro
[jira] [Commented] (KNOX-1048) Knoxshell samples missing hadoop-examples.jar and hadoop-mapreduce-examples.jar
[ https://issues.apache.org/jira/browse/KNOX-1048?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16206202#comment-16206202 ] ASF subversion and git services commented on KNOX-1048: --- Commit ff3af36d63609cd0b60400071e9df26ec41e96d3 in knox's branch refs/heads/KNOX-998-Package_Restructuring from [~coheigea] [ https://git-wip-us.apache.org/repos/asf?p=knox.git;h=ff3af36 ] KNOX-1048 - Knoxshell samples missing hadoop-examples.jar > Knoxshell samples missing hadoop-examples.jar and > hadoop-mapreduce-examples.jar > --- > > Key: KNOX-1048 > URL: https://issues.apache.org/jira/browse/KNOX-1048 > Project: Apache Knox > Issue Type: Bug > Components: KnoxShell >Reporter: Sandeep More >Assignee: Colm O hEigeartaigh > Fix For: 0.14.0 > > > I get the following exception while running ExampleOozieWorkflow.groovy. > Caught: java.util.concurrent.ExecutionException: > java.io.FileNotFoundException: samples/hadoop-examples.jar (No such file or > directory) > java.util.concurrent.ExecutionException: java.io.FileNotFoundException: > samples/hadoop-examples.jar (No such file or directory) > at org.apache.knox.gateway.shell.Hadoop.waitFor(Hadoop.java:271) > at ExampleOozieWorkflow.run(ExampleOozieWorkflow.groovy:108) > at org.apache.knox.gateway.shell.Shell.main(Shell.java:56) > at > org.apache.knox.gateway.launcher.Invoker.invokeMainMethod(Invoker.java:70) > at org.apache.knox.gateway.launcher.Invoker.invoke(Invoker.java:39) > at org.apache.knox.gateway.launcher.Command.run(Command.java:99) > at org.apache.knox.gateway.launcher.Launcher.run(Launcher.java:69) > at org.apache.knox.gateway.launcher.Launcher.main(Launcher.java:46) > Caused by: java.io.FileNotFoundException: samples/hadoop-examples.jar (No > such file or directory) > at org.apache.http.entity.FileEntity.writeTo(FileEntity.java:94) > at > org.apache.http.impl.DefaultBHttpClientConnection.sendRequestEntity(DefaultBHttpClientConnection.java:156) > at > org.apache.http.impl.conn.CPoolProxy.sendRequestEntity(CPoolProxy.java:160) > at > org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:238) > at > org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:123) > at > org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:272) > at > org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185) > at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89) > at > org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111) > at > org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185) > at > org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:72) > at org.apache.knox.gateway.shell.Hadoop.executeNow(Hadoop.java:256) > at > org.apache.knox.gateway.shell.AbstractRequest.execute(AbstractRequest.java:49) > at > org.apache.knox.gateway.shell.hdfs.Put$Request.access$1600(Put.java:39) > at org.apache.knox.gateway.shell.hdfs.Put$Request$1.call(Put.java:124) > at org.apache.knox.gateway.shell.hdfs.Put$Request$1.call(Put.java:95) > at > org.apache.knox.gateway.shell.AbstractRequest$1.call(AbstractRequest.java:106) > Also while running ExampleWebHCatJobTeragen.groovy I get the following > java -Djavax.net.ssl.trustStore=gateway-client-trust.jks -jar > bin/knoxshell.jar samples/ExampleWebHCatJobTeragen.groovy > Caught: java.util.concurrent.ExecutionException: > java.io.FileNotFoundException: samples/hadoop-mapreduce-examples.jar (No such > file or directory) > java.util.concurrent.ExecutionException: java.io.FileNotFoundException: > samples/hadoop-mapreduce-examples.jar (No such file or directory) > at org.apache.knox.gateway.shell.Hadoop.waitFor(Hadoop.java:271) > at ExampleWebHCatJobTeragen.run(ExampleWebHCatJobTeragen.groovy:52) > at org.apache.knox.gateway.shell.Shell.main(Shell.java:56) > at > org.apache.knox.gateway.launcher.Invoker.invokeMainMethod(Invoker.java:70) > at org.apache.knox.gateway.launcher.Invoker.invoke(Invoker.java:39) > at org.apache.knox.gateway.launcher.Command.run(Command.java:99) > at org.apache.knox.gateway.launcher.Launcher.run(Launcher.java:69) > at org.apache.knox.gateway.launcher.Launcher.main(Launcher.java:46) > Caused by: java.io.FileNotFoundException: > samples/hadoop-mapreduce-examples.jar (No such file or directory) > at org.apache.http.entity.FileEntity.writeTo(FileEntity.java:94) > at > org.apache.http.impl.DefaultBHttpClientConnection.sendRequestEntity(DefaultBHttpClientCo