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 Threaded View
Hadoop >> mail # user >> [YARN] TestDistributedShell failed in eclipse but successful in maven


Copy link to this message
-
Re: [YARN] TestDistributedShell failed in eclipse but successful in maven
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(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)
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to
which it is addressed and may contain information that is confidential,
privileged and exempt from disclosure under applicable law. If the reader
of this message is not the intended recipient, you are hereby notified that
any printing, copying, dissemination, distribution, disclosure or
forwarding of this communication is strictly prohibited. If you have
received this communication in error, please contact the sender immediately
and delete it from your system. Thank You.
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