<?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 Debugging Apache Slider on CDH 5.3.0 Virtualbox VM in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Debugging-Apache-Slider-on-CDH-5-3-0-Virtualbox-VM/m-p/30899#M7043</link>
    <description>&lt;P&gt;I went through the &lt;A href="http://slider.incubator.apache.org/docs/slider_specs/hello_world_slider_app.html" target="_blank"&gt;Slider Memcached Tutorial&lt;/A&gt;&amp;nbsp;and was able to package/deploy/start the memcached container successfully; however when I package up a custom application, basically a Java jar plus dependencies, the container never launches succssfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The application page show the app is in a FINISHED/FAILED state with this diagnostic:&lt;/P&gt;&lt;P&gt;&lt;A href="http://quickstart.cloudera:8088/cluster/app/application_1439926335194_0001" target="_blank"&gt;http://quickstart.cloudera:8088/cluster/app/application_1439926335194_0001&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Diagnostics: Unstable Application Instance : - failed with component MYAPP&amp;nbsp;failed 'recently' 6 times (4 in startup); threshold is 5 - last failure: Failure container_1439926335194_0001_01_000008 on host quickstart.cloudera (0): &lt;A href="http://quickstart.cloudera:19888/jobhistory/logs//quickstart.cloudera:8041/container_1439926335194_0001_01_000008/ctx/C4" target="_blank"&gt;http://quickstart.cloudera:19888/jobhistory/logs//quickstart.cloudera:8041/container_1439926335194_0001_01_000008/ctx/C4&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Part of the challenge in diagnosing the issue with the container is that the logs disappear after the application completes.&lt;/P&gt;&lt;P&gt;&lt;A href="http://quickstart.cloudera:8042/node/containerlogs/container_1439926335194_0001_01_000001/MYUSER" target="_blank"&gt;http://quickstart.cloudera:8042/node/containerlogs/container_1439926335194_0001_01_000001/MYUSER&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a troubleshooting page for slider which indicates that you can persist the logs beyond application completion:&lt;/P&gt;&lt;P&gt;&lt;A href="http://slider.incubator.apache.org/docs/troubleshooting.html" target="_blank"&gt;http://slider.incubator.apache.org/docs/troubleshooting.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Configuring YARN for better debugging&lt;/P&gt;&lt;P&gt;One configuration to aid debugging is tell the nodemanagers to keep data for a short period after containers finish&lt;/P&gt;&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="c"&gt;&amp;lt;!-- 10 minutes after a failure to see what is left in the directory--&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="nt"&gt;&amp;lt;property&amp;gt;&lt;/SPAN&gt;
  &lt;SPAN class="nt"&gt;&amp;lt;name&amp;gt;&lt;/SPAN&gt;yarn.nodemanager.delete.debug-delay-sec&lt;SPAN class="nt"&gt;&amp;lt;/name&amp;gt;&lt;/SPAN&gt;
  &lt;SPAN class="nt"&gt;&amp;lt;value&amp;gt;&lt;/SPAN&gt;600&lt;SPAN class="nt"&gt;&amp;lt;/value&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="nt"&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I found this setting in Yarn - Configuration - NodeManager Base Group - Advanced - Localized Dir Delection Delay and changed it from the default of 0 to 1200; however even after I deploy client config, and restart Nodemanager + Yarn, even restart the VM, the logs are still getting deleted on container completion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on the CDH 5.3.0 Vitrualbox VM image and the cluster + services appear to be working normally as I start up the package.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 09:38:07 GMT</pubDate>
    <dc:creator>dr3x</dc:creator>
    <dc:date>2022-09-16T09:38:07Z</dc:date>
    <item>
      <title>Debugging Apache Slider on CDH 5.3.0 Virtualbox VM</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Debugging-Apache-Slider-on-CDH-5-3-0-Virtualbox-VM/m-p/30899#M7043</link>
      <description>&lt;P&gt;I went through the &lt;A href="http://slider.incubator.apache.org/docs/slider_specs/hello_world_slider_app.html" target="_blank"&gt;Slider Memcached Tutorial&lt;/A&gt;&amp;nbsp;and was able to package/deploy/start the memcached container successfully; however when I package up a custom application, basically a Java jar plus dependencies, the container never launches succssfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The application page show the app is in a FINISHED/FAILED state with this diagnostic:&lt;/P&gt;&lt;P&gt;&lt;A href="http://quickstart.cloudera:8088/cluster/app/application_1439926335194_0001" target="_blank"&gt;http://quickstart.cloudera:8088/cluster/app/application_1439926335194_0001&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Diagnostics: Unstable Application Instance : - failed with component MYAPP&amp;nbsp;failed 'recently' 6 times (4 in startup); threshold is 5 - last failure: Failure container_1439926335194_0001_01_000008 on host quickstart.cloudera (0): &lt;A href="http://quickstart.cloudera:19888/jobhistory/logs//quickstart.cloudera:8041/container_1439926335194_0001_01_000008/ctx/C4" target="_blank"&gt;http://quickstart.cloudera:19888/jobhistory/logs//quickstart.cloudera:8041/container_1439926335194_0001_01_000008/ctx/C4&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Part of the challenge in diagnosing the issue with the container is that the logs disappear after the application completes.&lt;/P&gt;&lt;P&gt;&lt;A href="http://quickstart.cloudera:8042/node/containerlogs/container_1439926335194_0001_01_000001/MYUSER" target="_blank"&gt;http://quickstart.cloudera:8042/node/containerlogs/container_1439926335194_0001_01_000001/MYUSER&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a troubleshooting page for slider which indicates that you can persist the logs beyond application completion:&lt;/P&gt;&lt;P&gt;&lt;A href="http://slider.incubator.apache.org/docs/troubleshooting.html" target="_blank"&gt;http://slider.incubator.apache.org/docs/troubleshooting.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Configuring YARN for better debugging&lt;/P&gt;&lt;P&gt;One configuration to aid debugging is tell the nodemanagers to keep data for a short period after containers finish&lt;/P&gt;&lt;DIV class="codehilite"&gt;&lt;PRE&gt;&lt;SPAN class="c"&gt;&amp;lt;!-- 10 minutes after a failure to see what is left in the directory--&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="nt"&gt;&amp;lt;property&amp;gt;&lt;/SPAN&gt;
  &lt;SPAN class="nt"&gt;&amp;lt;name&amp;gt;&lt;/SPAN&gt;yarn.nodemanager.delete.debug-delay-sec&lt;SPAN class="nt"&gt;&amp;lt;/name&amp;gt;&lt;/SPAN&gt;
  &lt;SPAN class="nt"&gt;&amp;lt;value&amp;gt;&lt;/SPAN&gt;600&lt;SPAN class="nt"&gt;&amp;lt;/value&amp;gt;&lt;/SPAN&gt;
&lt;SPAN class="nt"&gt;&amp;lt;/property&amp;gt;&lt;/SPAN&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;And I found this setting in Yarn - Configuration - NodeManager Base Group - Advanced - Localized Dir Delection Delay and changed it from the default of 0 to 1200; however even after I deploy client config, and restart Nodemanager + Yarn, even restart the VM, the logs are still getting deleted on container completion.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working on the CDH 5.3.0 Vitrualbox VM image and the cluster + services appear to be working normally as I start up the package.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:38:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Debugging-Apache-Slider-on-CDH-5-3-0-Virtualbox-VM/m-p/30899#M7043</guid>
      <dc:creator>dr3x</dc:creator>
      <dc:date>2022-09-16T09:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging Apache Slider on CDH 5.3.0 Virtualbox VM</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Debugging-Apache-Slider-on-CDH-5-3-0-Virtualbox-VM/m-p/30946#M7044</link>
      <description>&lt;P&gt;Only error in the log I see is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Role instance RoleInstance failed&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2015-08-19 10:59:21,819 [AMRM Callback Handler Thread] ERROR appmaster.SliderAppMaster - Role instance RoleInstance{role='MYAPP', id='container_1439926335194_0002_01_000003', container=ContainerID=container_1439926335194_0002_01_000003 nodeID=quickstart.cloudera:8041 http=quickstart.cloudera:8042 priority=1073741825 resource=&amp;lt;memory:1024, vCores:1&amp;gt;, createTime=1440007115649, startTime=1440007115674, released=false, roleId=1, host=quickstart.cloudera, hostURL=&lt;A href="http://quickstart.cloudera:8042," target="_blank"&gt;http://quickstart.cloudera:8042,&lt;/A&gt; state=5, placement=null, exitCode=0, command='python ./infra/agent/slider-agent/agent/main.py --label container_1439926335194_0002_01_000003___MYAPP --zk-quorum localhost:2181 --zk-reg-path /registry/users/myuser/services/org-apache-slider/myapp1&amp;gt; /slider-agent.out 2&amp;gt;&amp;amp;1 ; ', diagnostics='', output=null, environment=[LANGUAGE="en_US.UTF-8", AGENT_WORK_ROOT="$PWD", HADOOP_USER_NAME="C4", AGENT_LOG_ROOT="", PYTHONPATH="./infra/agent/slider-agent/", LC_ALL="en_US.UTF-8", SLIDER_PASSPHRASE="&amp;lt;redacted&amp;gt;", LANG="en_US.UTF-8"]} failed&lt;/P&gt;</description>
      <pubDate>Wed, 19 Aug 2015 19:26:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Debugging-Apache-Slider-on-CDH-5-3-0-Virtualbox-VM/m-p/30946#M7044</guid>
      <dc:creator>dr3x</dc:creator>
      <dc:date>2015-08-19T19:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging Apache Slider on CDH 5.3.0 Virtualbox VM</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Debugging-Apache-Slider-on-CDH-5-3-0-Virtualbox-VM/m-p/31444#M7045</link>
      <description>&lt;P&gt;&lt;SPAN&gt;I found the container logs via the containers web UI (on Cloudera VM it is&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://quickstart.cloudera:8042/node/allContainers" target="_blank"&gt;http://quickstart.cloudera:8042/node/allContainers&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;There are 2 containers for my application, first just shows the logs I was looking at earlier indicating whether the container succeeded or failed; second has many logs with useful info (command / errors / &lt;SPAN class="il"&gt;slider&lt;/SPAN&gt;-agent / status_command).&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;They are transient, but I was able to look at them before the application terminated.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN class="il"&gt;slider&lt;/SPAN&gt;-agent.out just has this line in it:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;STRONG&gt;No handlers could be found for logger "root"&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;However &lt;STRONG&gt;&lt;SPAN class="il"&gt;slider&lt;/SPAN&gt;-agent.log&lt;/STRONG&gt; gave me the info I was looking for, basically the stderr / stdout from executing the Java command line so that is very helpful.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;PRE&gt;INFO 2015-08-19 14:07:28,422 AgentToggleLogger.py:40 - Queue result: {'componentStatus': [],
&amp;nbsp;'reports': [{'actionId': u'4-1',
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'clusterName': u'myapp1',
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'exitcode': 1,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'reportResult': True,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'role': u'MYAPP',
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'roleCommand': u'START',
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'serviceName': u'myapp1',
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'status': 'FAILED',
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'stderr': '2015-08-19 14:07:28,268 - Error while executing command ...&amp;lt;removed for brevity&amp;gt;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'stdout': '2015-08-19 14:07:23,261 - Execute[\'/usr/java/latest/bin/java -Xmx256m -classpath ...&amp;lt;removed for brevity&amp;gt;,
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'structuredOut': '{}',
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'taskId': 4}]}&lt;/PRE&gt;&lt;/DIV&gt;&lt;DIV&gt;Locating the container logs&amp;nbsp;put me on the path to solving this.&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Sep 2015 20:22:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Debugging-Apache-Slider-on-CDH-5-3-0-Virtualbox-VM/m-p/31444#M7045</guid>
      <dc:creator>dr3x</dc:creator>
      <dc:date>2015-09-01T20:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: Debugging Apache Slider on CDH 5.3.0 Virtualbox VM</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Debugging-Apache-Slider-on-CDH-5-3-0-Virtualbox-VM/m-p/31466#M7046</link>
      <description>&lt;P&gt;Thank you for sharing the steps you took dr3x. Hopefully it will help others who face a similar issue in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2015 12:17:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Debugging-Apache-Slider-on-CDH-5-3-0-Virtualbox-VM/m-p/31466#M7046</guid>
      <dc:creator>cjervis</dc:creator>
      <dc:date>2015-09-02T12:17:38Z</dc:date>
    </item>
  </channel>
</rss>

