Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Hadoop >> mail # user >> [YARN] TestDistributedShell failed in eclipse but successful in maven


+
Jeff Zhang 2014-01-22, 01:39
+
Vinod Kumar Vavilapalli 2014-01-22, 18:17
Copy link to this message
-
Re: [YARN] TestDistributedShell failed in eclipse but successful in maven
Thanks, Vinod. It works.  Could you point me which part needs the JAVA_HOME
env ?
On Thu, Jan 23, 2014 at 2:17 AM, Vinod Kumar Vavilapalli <
[EMAIL PROTECTED]> wrote:

> Yes. It depends on JAVA_HOME env variable. When you run it, it will
> succeed if you set that variable up correctly in eclipse test Run
> configuration.
>
> +Vinod
>
> On Jan 21, 2014, at 5:39 PM, Jeff Zhang <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> TestDistributedShell is a unit test for DistributedShell.  I could run it
> successfully in maven, but when I run it in eclipse, it failed. Do I need
> any extra setting to make it run in eclipse ?
>
> Here's the error message:
>
> 2014-01-22 09:38:20,733 INFO  [AsyncDispatcher event handler]
> rmapp.RMAppImpl (RMAppImpl.java:transition(788)) - Application
> application_1390354688375_0001 failed 2 times due to AM Container for
> appattempt_1390354688375_0001_000002 exited with  exitCode: 127 due to:
> Exception from container-launch:
>
> org.apache.hadoop.util.Shell$ExitCodeException:
>
> at org.apache.hadoop.util.Shell.runCommand(Shell.java:464)
>
> at org.apache.hadoop.util.Shell.run(Shell.java:379)
>
> at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(
> Shell.java:589)
>
> at
> org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(
> DefaultContainerExecutor.java:195)
>
> at
> org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(
> ContainerLaunch.java:283)
>
> at
> org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.EnhancedContainerLaunch.call(
> EnhancedContainerLaunch.java:139)
>
> at
> org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.EnhancedContainerLaunch.call(
> EnhancedContainerLaunch.java:1)
>
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>
> at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>
> at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
> ThreadPoolExecutor.java:886)
>
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:908)
>
> at java.lang.Thread.run(Thread.java:680)
>
>
>
> .Failing this attempt.. Failing the application.
>
> 2014-01-22 09:38:20,735 INFO  [AsyncDispatcher event handler]
> recovery.RMStateStore (RMStateStore.java:handleStoreEvent(487)) -
> Removing info for app: application_1390354688375_0001
>
> 2014-01-22 09:38:20,735 INFO  [AsyncDispatcher event handler]
> rmapp.RMAppImpl (RMAppImpl.java:handle(578)) -
> application_1390354688375_0001 State change from ACCEPTED to FAILED
>
> 2014-01-22 09:38:20,736 INFO  [ResourceManager Event Processor]
> scheduler.AppSchedulingInfo (AppSchedulingInfo.java:clearRequests(108)) -
> Application application_1390354688375_0001 requests cleared
>
> 2014-01-22 09:38:20,736 WARN  [AsyncDispatcher event handler]
> resourcemanager.RMAuditLogger (RMAuditLogger.java:logFailure(255)) -
> USER=zhangj82 OPERATION=Application Finished - Failed TARGET=RMAppManager
> RESULT=FAILURE DESCRIPTION=App failed with state: FAILED PERMISSIONS=Application
> application_1390354688375_0001 failed 2 times due to AM Container for
> appattempt_1390354688375_0001_000002 exited with  exitCode: 127 due to:
> Exception from container-launch:
>
> org.apache.hadoop.util.Shell$ExitCodeException:
>
> at org.apache.hadoop.util.Shell.runCommand(Shell.java:464)
>
> at org.apache.hadoop.util.Shell.run(Shell.java:379)
>
> at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(
> Shell.java:589)
>
> at
> org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(
> DefaultContainerExecutor.java:195)
>
> at
> org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(
> ContainerLaunch.java:283)
>
> at
> org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.EnhancedContainerLaunch.call(
> EnhancedContainerLaunch.java:139)
>
> at
> org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.EnhancedContainerLaunch.call(
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB