<?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 Re: Error in installing services after adding a node in HDP cluster in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197648#M159699</link>
    <description>&lt;P&gt;To help you, we'd need some more information:&lt;/P&gt;&lt;P&gt;- Which version of HDP are you actually running on currently? Is it 2.5.3.0-37?&lt;/P&gt;&lt;P&gt;- Can you post the entire output from the install command?&lt;/P&gt;&lt;P&gt;- What is the content of /usr/hdp on this host which is having trouble?&lt;/P&gt;</description>
    <pubDate>Wed, 12 Apr 2017 22:54:51 GMT</pubDate>
    <dc:creator>jonathanhurley</dc:creator>
    <dc:date>2017-04-12T22:54:51Z</dc:date>
    <item>
      <title>Error in installing services after adding a node in HDP cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197647#M159698</link>
      <description>&lt;P&gt;Hello Team,&lt;/P&gt;&lt;P&gt;We have development HDP 2.5.3 cluster consisting of 4 nodes and we are adding another node from ambari. After adding the node successfully in the cluster we are failing to install any services in that particular newly added node. Below are the logs from ambari during the failure while adding DataNode in the new node.&lt;/P&gt;&lt;P&gt;Looking for your guidance on how to fix this issue.&lt;/P&gt;&lt;P&gt;stderr:  /var/lib/ambari-agent/data/errors-2053.txt&lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py", line 35, in &amp;lt;module&amp;gt;
    BeforeAnyHook().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 280, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py", line 26, in hook
    import params
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/params.py", line 191, in &amp;lt;module&amp;gt;
    hadoop_conf_dir = conf_select.get_hadoop_conf_dir(force_latest_on_upgrade=True)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/conf_select.py", line 477, in get_hadoop_conf_dir
    select(stack_name, "hadoop", version)
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/conf_select.py", line 315, in select
    shell.checked_call(_get_cmd("set-conf-dir", package, version), logoutput=False, quiet=False, sudo=True)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 71, in inner
    result = function(command, **kwargs)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 93, in checked_call
    tries=tries, try_sleep=try_sleep)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 141, in _call_wrapper
    result = _call(command, **kwargs_copy)
  File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 294, in _call
    raise Fail(err_msg)
resource_management.core.exceptions.Fail: Execution of 'ambari-python-wrap /usr/bin/conf-select set-conf-dir --package hadoop --stack-version 2.5.3.0-37 --conf-version 0' returned 1. 2.5.3.0-37 Incorrect stack version
Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-2053.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-2053.json', 'INFO', '/var/lib/ambari-agent/tmp']

stdout:   /var/lib/ambari-agent/data/output-2053.txt

2017-04-12 19:51:03,007 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.5.3.0-37
2017-04-12 19:51:03,007 - Checking if need to create versioned conf dir /etc/hadoop/2.5.3.0-37/0
2017-04-12 19:51:03,007 - call[('ambari-python-wrap', '/usr/bin/conf-select', 'create-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2017-04-12 19:51:03,030 - call returned (1, '2.5.3.0-37 Incorrect stack version', '')
2017-04-12 19:51:03,031 - checked_call[('ambari-python-wrap', '/usr/bin/conf-select', 'set-conf-dir', '--package', 'hadoop', '--stack-version', '2.5.3.0-37', '--conf-version', '0')] {'logoutput': False, 'sudo': True, 'quiet': False}
Error: Error: Unable to run the custom hook script ['/usr/bin/python', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-2053.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-2053.json', 'INFO', '/var/lib/ambari-agent/tmp']

Command failed after 1 tries

&lt;/PRE&gt;</description>
      <pubDate>Wed, 12 Apr 2017 22:30:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197647#M159698</guid>
      <dc:creator>rajdip_chaudhur</dc:creator>
      <dc:date>2017-04-12T22:30:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error in installing services after adding a node in HDP cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197648#M159699</link>
      <description>&lt;P&gt;To help you, we'd need some more information:&lt;/P&gt;&lt;P&gt;- Which version of HDP are you actually running on currently? Is it 2.5.3.0-37?&lt;/P&gt;&lt;P&gt;- Can you post the entire output from the install command?&lt;/P&gt;&lt;P&gt;- What is the content of /usr/hdp on this host which is having trouble?&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2017 22:54:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197648#M159699</guid>
      <dc:creator>jonathanhurley</dc:creator>
      <dc:date>2017-04-12T22:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: Error in installing services after adding a node in HDP cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197649#M159700</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2559/rajdipchaudhuri.html" nodeid="2559"&gt;@rajdip chaudhuri&lt;/A&gt;&lt;P&gt;It looks that /usr/hdp/2.5.3.0-37 doesnt exists on the host. Please check the list of directories under /usr/hdp.&lt;/P&gt;&lt;P&gt;In the stderr log it shows that conf-select command failed to set config directory to /usr/hdp/2.5.3.0-37/. This usually is the case when identified version directory doesnt exists under /usr/hdp. In your case it is /usr/hdp/2.5.3.0-37. &lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 00:03:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197649#M159700</guid>
      <dc:creator>rguruvannagari</dc:creator>
      <dc:date>2017-04-13T00:03:28Z</dc:date>
    </item>
    <item>
      <title>Re: Error in installing services after adding a node in HDP cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197650#M159701</link>
      <description>&lt;P&gt;Yes, directory 2.5.3.0-37 doesn't exist under /usr/hdp. What should we do then? Create the directory manually? Providing you the screenshot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="14590-screenshot.jpg" style="width: 584px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17821iE37E969E00AD01F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="14590-screenshot.jpg" alt="14590-screenshot.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 06:15:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197650#M159701</guid>
      <dc:creator>rajdip_chaudhur</dc:creator>
      <dc:date>2019-08-18T06:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error in installing services after adding a node in HDP cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197651#M159702</link>
      <description>&lt;P&gt;Yes, we are using HDP 2.5.3.0-37. Earlier it was 2.3.4 but we uninstalled that. Provided the screenshot of /usr/hdp directory of the node. What should we do to address the issue?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 13:20:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197651#M159702</guid>
      <dc:creator>rajdip_chaudhur</dc:creator>
      <dc:date>2017-04-13T13:20:39Z</dc:date>
    </item>
    <item>
      <title>Re: Error in installing services after adding a node in HDP cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197652#M159703</link>
      <description>&lt;P&gt;Hi Guys - can you please help me with this resolution? We are actually stuck with this issue. Looking for guidance.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 14:25:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197652#M159703</guid>
      <dc:creator>rajdip_chaudhur</dc:creator>
      <dc:date>2017-04-13T14:25:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error in installing services after adding a node in HDP cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197653#M159704</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2559/rajdipchaudhuri.html" nodeid="2559"&gt;@rajdip chaudhuri&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;I see you already have another HDP installation on that host you have added. Generally in a host which is newly added, you would not have /usr/hdp directory. Was this host already part of another cluster before adding it to this cluster? &lt;/P&gt;&lt;P&gt;And what softlink you would see in /usr/hdp/current ? &lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 14:49:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197653#M159704</guid>
      <dc:creator>rguruvannagari</dc:creator>
      <dc:date>2017-04-13T14:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error in installing services after adding a node in HDP cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197654#M159705</link>
      <description>&lt;P&gt;Yes, we had 2.3.4 installed in this node. However we have taken the following steps and its working fine now.&lt;/P&gt;&lt;P&gt;1) Deleted 2.3.4 and current folders under /usr/hdp&lt;/P&gt;&lt;P&gt;2) Restarted the ambari-agent&lt;/P&gt;&lt;P&gt;3) Took care of the issues found in pre run checks (like deleting old rpms, folders and users, etc.)&lt;/P&gt;&lt;P&gt;4) Added the new host. However it required python-argparse rpm&lt;/P&gt;&lt;P&gt;5) Added Data Nodes, Node Managers and other services and they are working fine now.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 15:09:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197654#M159705</guid>
      <dc:creator>rajdip_chaudhur</dc:creator>
      <dc:date>2017-04-13T15:09:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error in installing services after adding a node in HDP cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197655#M159706</link>
      <description>&lt;P&gt;Yes, we had 2.3.4 installed in this node. However we have taken the following steps and its working fine now.&lt;/P&gt;&lt;P&gt;1) Deleted 2.3.4 and current folders under /usr/hdp&lt;/P&gt;&lt;P&gt;2) Restarted the ambari-agent&lt;/P&gt;&lt;P&gt;3) Took care of the issues found in pre run checks (like deleting old rpms, folders and users, etc.)&lt;/P&gt;&lt;P&gt;4) Added the new host. However it required python-argparse rpm&lt;/P&gt;&lt;P&gt;5) Added Data Nodes, Node Managers and other services and they are working fine now.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 15:10:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197655#M159706</guid>
      <dc:creator>rajdip_chaudhur</dc:creator>
      <dc:date>2017-04-13T15:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error in installing services after adding a node in HDP cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197656#M159707</link>
      <description>&lt;P&gt;Have also accepted the best answer above as I found out. Thanks for your guidance guys.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 15:11:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197656#M159707</guid>
      <dc:creator>rajdip_chaudhur</dc:creator>
      <dc:date>2017-04-13T15:11:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error in installing services after adding a node in HDP cluster</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197657#M159708</link>
      <description>&lt;P&gt;Yes, this node was part of one of the old HDP installations. However we have uninstalled that now and shifted to 2.5.3, a more stabler release. Have undertaken the current steps :&lt;/P&gt;&lt;P&gt;1) Deleted old 2.3.4 and current folder under /usr/hdp&lt;/P&gt;&lt;P&gt;2) Restarted the ambari agent&lt;/P&gt;&lt;P&gt;3) Added the new host again and took care of host run check issues (like pre-existing old 2.3.4 packages and users and folders. Have removed them)&lt;/P&gt;&lt;P&gt;4) Node was successfully added. But had to install a new rpm python-argparse &lt;/P&gt;&lt;P&gt;5) Added DataNode, Node Manager and clients in the new node successfully&lt;/P&gt;&lt;P&gt;Through ambari I can now see this node added successfully with required services.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2017 19:27:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-in-installing-services-after-adding-a-node-in-HDP/m-p/197657#M159708</guid>
      <dc:creator>rajdip_chaudhur</dc:creator>
      <dc:date>2017-04-13T19:27:02Z</dc:date>
    </item>
  </channel>
</rss>

