<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question oozie - mr container fails to start on rhel6 node when app master is on rhel7 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-mr-container-fails-to-start-on-rhel6-node-when-app/m-p/201043#M68581</link>
    <description>&lt;P&gt;Hi all - we have a cluster of RHEL6 and RHEL7 nodes.&lt;/P&gt;&lt;P&gt;When oozie launches a workflow and uses a RHEL7 node as application master, the tasks dispatched to RHEL6 nodes fail to execute the launch_container.sh script. As per the log, it looks like the PATH  could be not set properly, see below, as it cannot find the "ln" command.&lt;/P&gt;&lt;PRE&gt;Stack trace: ExitCodeException exitCode=127: &lt;A href="https://hue-pv-brn1.vscc.vrsn.com/filebrowser/view=/data/d9/yarn/nm/usercache/hdfs/appcache/application_1506341577822_0486/container_e102_1506341577822_0486_01_000004/launch_container.sh%3A"&gt;/data/d9/yarn/nm/usercache/hdfs/appcache/application_1506341577822_0486/container_e102_1506341577822_0486_01_000004/launch_container.sh:&lt;/A&gt; line 30: ln: command not found

	at org.apache.hadoop.util.Shell.runCommand(Shell.java:576)
	at org.apache.hadoop.util.Shell.run(Shell.java:487)
	at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:753)
	at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:212)
	at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:303)
	at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Container exited with a non-zero exit code 127
&lt;/PRE&gt;&lt;P&gt;The log from the job looks like below&lt;/P&gt;&lt;PRE&gt;2017-09-25 19:05:12,937 INFO [AsyncDispatcher event handler] org.apache.hadoop.mapreduce.v2.app.job.impl.TaskImpl: task_1506341577822_0486_m_000000 Task Transitioned from SCHEDULED to RUNNING
2017-09-25 19:05:13,701 INFO [RMCommunicator Allocator] org.apache.hadoop.mapreduce.v2.app.rm.RMContainerRequestor: getResources() for application_1506341577822_0486: ask=1 release= 0 newContainers=0 finishedContainers=0 resourcelimit=&amp;lt;memory:76800, vCores:0&amp;gt; knownNMs=2
2017-09-25 19:05:14,707 INFO [RMCommunicator Allocator] org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator: Received completed container container_e102_1506341577822_0486_01_000002
2017-09-25 19:05:14,708 INFO [RMCommunicator Allocator] org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator: After Scheduling: PendingReds:0 ScheduledMaps:0 ScheduledReds:0 AssignedMaps:0 AssignedReds:0 CompletedMaps:0 CompletedReds:0 ContAlloc:1 ContRel:0 HostLocal:0 RackLocal:0
2017-09-25 19:05:14,710 INFO [AsyncDispatcher event handler] org.apache.hadoop.mapreduce.v2.app.job.impl.TaskAttemptImpl: attempt_1506341577822_0486_m_000000_0 TaskAttempt Transitioned from RUNNING to FAIL_CONTAINER_CLEANUP
2017-09-25 19:05:14,710 INFO [AsyncDispatcher event handler] org.apache.hadoop.mapreduce.v2.app.job.impl.TaskAttemptImpl: Diagnostics report from attempt_1506341577822_0486_m_000000_0: Exception from container-launch.&lt;/PRE&gt;&lt;P&gt;When MR jobs are not triggered by Oozie, all is fine on those RHEL7 nodes.&lt;/P&gt;&lt;P&gt;I'm able to reproduce the issue with HDP 2.3.4 and 2.3.6.&lt;/P&gt;&lt;P&gt;I could not find any known Oozie issue that got fixed in later versions. &lt;/P&gt;&lt;P&gt;Any help or pointers welcome.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;-Regis &lt;/P&gt;</description>
    <pubDate>Tue, 26 Sep 2017 16:47:59 GMT</pubDate>
    <dc:creator>rpiccand</dc:creator>
    <dc:date>2017-09-26T16:47:59Z</dc:date>
    <item>
      <title>oozie - mr container fails to start on rhel6 node when app master is on rhel7</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-mr-container-fails-to-start-on-rhel6-node-when-app/m-p/201043#M68581</link>
      <description>&lt;P&gt;Hi all - we have a cluster of RHEL6 and RHEL7 nodes.&lt;/P&gt;&lt;P&gt;When oozie launches a workflow and uses a RHEL7 node as application master, the tasks dispatched to RHEL6 nodes fail to execute the launch_container.sh script. As per the log, it looks like the PATH  could be not set properly, see below, as it cannot find the "ln" command.&lt;/P&gt;&lt;PRE&gt;Stack trace: ExitCodeException exitCode=127: &lt;A href="https://hue-pv-brn1.vscc.vrsn.com/filebrowser/view=/data/d9/yarn/nm/usercache/hdfs/appcache/application_1506341577822_0486/container_e102_1506341577822_0486_01_000004/launch_container.sh%3A"&gt;/data/d9/yarn/nm/usercache/hdfs/appcache/application_1506341577822_0486/container_e102_1506341577822_0486_01_000004/launch_container.sh:&lt;/A&gt; line 30: ln: command not found

	at org.apache.hadoop.util.Shell.runCommand(Shell.java:576)
	at org.apache.hadoop.util.Shell.run(Shell.java:487)
	at org.apache.hadoop.util.Shell$ShellCommandExecutor.execute(Shell.java:753)
	at org.apache.hadoop.yarn.server.nodemanager.DefaultContainerExecutor.launchContainer(DefaultContainerExecutor.java:212)
	at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:303)
	at org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerLaunch.call(ContainerLaunch.java:82)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Container exited with a non-zero exit code 127
&lt;/PRE&gt;&lt;P&gt;The log from the job looks like below&lt;/P&gt;&lt;PRE&gt;2017-09-25 19:05:12,937 INFO [AsyncDispatcher event handler] org.apache.hadoop.mapreduce.v2.app.job.impl.TaskImpl: task_1506341577822_0486_m_000000 Task Transitioned from SCHEDULED to RUNNING
2017-09-25 19:05:13,701 INFO [RMCommunicator Allocator] org.apache.hadoop.mapreduce.v2.app.rm.RMContainerRequestor: getResources() for application_1506341577822_0486: ask=1 release= 0 newContainers=0 finishedContainers=0 resourcelimit=&amp;lt;memory:76800, vCores:0&amp;gt; knownNMs=2
2017-09-25 19:05:14,707 INFO [RMCommunicator Allocator] org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator: Received completed container container_e102_1506341577822_0486_01_000002
2017-09-25 19:05:14,708 INFO [RMCommunicator Allocator] org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator: After Scheduling: PendingReds:0 ScheduledMaps:0 ScheduledReds:0 AssignedMaps:0 AssignedReds:0 CompletedMaps:0 CompletedReds:0 ContAlloc:1 ContRel:0 HostLocal:0 RackLocal:0
2017-09-25 19:05:14,710 INFO [AsyncDispatcher event handler] org.apache.hadoop.mapreduce.v2.app.job.impl.TaskAttemptImpl: attempt_1506341577822_0486_m_000000_0 TaskAttempt Transitioned from RUNNING to FAIL_CONTAINER_CLEANUP
2017-09-25 19:05:14,710 INFO [AsyncDispatcher event handler] org.apache.hadoop.mapreduce.v2.app.job.impl.TaskAttemptImpl: Diagnostics report from attempt_1506341577822_0486_m_000000_0: Exception from container-launch.&lt;/PRE&gt;&lt;P&gt;When MR jobs are not triggered by Oozie, all is fine on those RHEL7 nodes.&lt;/P&gt;&lt;P&gt;I'm able to reproduce the issue with HDP 2.3.4 and 2.3.6.&lt;/P&gt;&lt;P&gt;I could not find any known Oozie issue that got fixed in later versions. &lt;/P&gt;&lt;P&gt;Any help or pointers welcome.&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;-Regis &lt;/P&gt;</description>
      <pubDate>Tue, 26 Sep 2017 16:47:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-mr-container-fails-to-start-on-rhel6-node-when-app/m-p/201043#M68581</guid>
      <dc:creator>rpiccand</dc:creator>
      <dc:date>2017-09-26T16:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: oozie - mr container fails to start on rhel6 node when app master is on rhel7</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-mr-container-fails-to-start-on-rhel6-node-when-app/m-p/201044#M68582</link>
      <description>&lt;P&gt;Hi, I got the same error, can you tell me how to solve it? thanks~~~&lt;/P&gt;</description>
      <pubDate>Sat, 10 Mar 2018 22:34:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-mr-container-fails-to-start-on-rhel6-node-when-app/m-p/201044#M68582</guid>
      <dc:creator>zhouke309</dc:creator>
      <dc:date>2018-03-10T22:34:55Z</dc:date>
    </item>
    <item>
      <title>Re: oozie - mr container fails to start on rhel6 node when app master is on rhel7</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-mr-container-fails-to-start-on-rhel6-node-when-app/m-p/201045#M68583</link>
      <description>&lt;P&gt;Hey &lt;A rel="user" href="https://community.cloudera.com/users/70341/zhouke309.html" nodeid="70341"&gt;@kirk chou&lt;/A&gt;- sorry for not having posted this earlier.&lt;/P&gt;&lt;P&gt;This was due to differences in system $PATH between the RHEL6 and the RHEL7 hosts (the 'usr/bin/ln' vs '/bin/ln' command in this case). &lt;/P&gt;&lt;P&gt;Oozie forcefully overrides the ShellAction child tasks execution context, especially $PATH, as defined in the application master nodes. If values in $PATH on the application master node differ from $PATH on the worker node, then the task will fail on the worker node.&lt;/P&gt;&lt;P&gt;Hope this helps,&lt;/P&gt;&lt;P&gt;-Regis&lt;/P&gt;</description>
      <pubDate>Wed, 14 Mar 2018 14:40:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-mr-container-fails-to-start-on-rhel6-node-when-app/m-p/201045#M68583</guid>
      <dc:creator>rpiccand</dc:creator>
      <dc:date>2018-03-14T14:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: oozie - mr container fails to start on rhel6 node when app master is on rhel7</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-mr-container-fails-to-start-on-rhel6-node-when-app/m-p/201046#M68584</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/13130/rpiccand.html" nodeid="13130"&gt;@regis piccand&lt;/A&gt; / &lt;A rel="user" href="https://community.cloudera.com/users/70341/zhouke309.html" nodeid="70341"&gt;@kirk chou&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I was able to resolve similar issue(&lt;A href="http://java.io/"&gt;java.io&lt;/A&gt;.IOException: Cannot run program "bash": error=2, No such file or directory) for our customer.&lt;/P&gt;&lt;P&gt;This happens because "/bin" and "/sbin" missing in your $PATH in container launch environment.&lt;/P&gt;&lt;P&gt;$PATH variable gets derived from nodemanager's env and nodemanager get's the env from ambari-agent's /var/lib/ambari-agent/ambari-env.sh.&lt;/P&gt;&lt;P&gt;To fix this, add "/bin" and "/sbin" in /var/lib/ambari-agent/ambari-env.sh, restart ambari-agent followed by nodemanager restart.&lt;/P&gt;&lt;P&gt;Happy Hadooping!&lt;/P&gt;</description>
      <pubDate>Thu, 27 Sep 2018 01:02:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/oozie-mr-container-fails-to-start-on-rhel6-node-when-app/m-p/201046#M68584</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2018-09-27T01:02:20Z</dc:date>
    </item>
  </channel>
</rss>

