<?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 with Amabari Install at conf-select.py. It is expecting an int but receiving 'html'. Possible symlink issue. in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-Amabari-Install-at-conf-select-py-It-is-expecting/m-p/107666#M15959</link>
    <description>&lt;P&gt;From researching on HCC I found out that&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;Ambari may not handle custom symlinks.  So when you installed it via Ambari, if you created different symlinks I think things would break. See this article on the Hortonworks Community Site: &lt;A href="https://community.hortonworks.com/questions/8776/customized-hdp-installation.html"&gt;https://community.hortonworks.com/questions/8776/customized-hdp-installation.html&lt;/A&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/8776/customized-hdp-installation.html"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Someone mentioned that perhaps it is a permission issue on the symlink, based on the rwx settings on the symlink which could cause it to fail to execute.  Related to umask issue.&lt;/LI&gt;&lt;LI&gt;Umask is very important.  Have it at 0022 during install at setup. When it is done change it to 0027. See &lt;A href="https://community.hortonworks.com/questions/8614/zookeeper-service-fails-to-start.html"&gt;https://community.hortonworks.com/questions/8614/zookeeper-service-fails-to-start.html&lt;/A&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/8614/zookeeper-service-fails-to-start.html"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Maybe we can add something to the hdp-select script for custom symlinks to work.  This is the script that manages the symlinks.  &lt;STRONG&gt;Maybe I can add "html" to a list of options somewhere in conf_select.py:&lt;/STRONG&gt; Inspired from  &lt;A href="https://community.hortonworks.com/questions/5811/install-of-hdp-fails-with-valueerror-invalid-liter.html"&gt;https://community.hortonworks.com/questions/5811/install-of-hdp-fails-with-valueerror-invalid-liter.html.&lt;/A&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/5811/install-of-hdp-fails-with-valueerror-invalid-liter.html"&gt;&lt;/A&gt; &lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Maybe it’s a case where we need to clear the repos, and folders from an old or failed install: &lt;A href="https://community.hortonworks.com/questions/1848/python-errors-or-script-does-not-exist-while-insta.html"&gt;https://community.hortonworks.com/questions/1848/python-errors-or-script-does-not-exist-while-insta.html&lt;/A&gt; &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I am still interested in thoughts or if anyone has done this successfully, having custom symlinks since Ops folks don't like using /usr mount&lt;/P&gt;</description>
    <pubDate>Fri, 22 Jan 2016 09:15:25 GMT</pubDate>
    <dc:creator>amcbarnett</dc:creator>
    <dc:date>2016-01-22T09:15:25Z</dc:date>
    <item>
      <title>Error with Amabari Install at conf-select.py. It is expecting an int but receiving 'html'. Possible symlink issue.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-Amabari-Install-at-conf-select-py-It-is-expecting/m-p/107665#M15958</link>
      <description>&lt;P&gt;Failure in Ambari Install.  Note that  /usr/hdp is a symlink to another location (/p01/app/had). Will that symlink break things?&lt;/P&gt;&lt;P&gt;Ambari cluster service deployment is failing. &lt;/P&gt;&lt;P&gt;
As an Example, the traceback from RegionServer install is: &lt;/P&gt;&lt;PRE&gt;Traceback (most recent call last): 
&amp;lt;br&amp;gt;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() 
&amp;lt;br&amp;gt;File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute 
method(env) 
&amp;lt;br&amp;gt;File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py", line 26, in hook 
import params 
&amp;lt;br&amp;gt;File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/params.py", line 187, 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 374, 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 252, 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 70, in inner 
result = function(command, **kwargs) 


File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 92, in checked_call tries=tries, try_sleep=try_sleep) 


File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 140, in _call_wrapper result = _call(command, **kwargs_copy) 


File "/usr/lib/python2.6/site-packages/resource_management/core/shell.py", line 291, in _call 
raise Fail(err_msg) 


resource_management.core.exceptions.Fail: Execution of 'conf-select set-conf-dir --package hadoop --stack-version 2.3.0.0-2557 --conf-version 0' returned 1. Traceback (most recent call last): 
File "/usr/bin/conf-select", line 182, in &amp;lt;module&amp;gt; 


setConfDir(options.pname, options.sver, options.cver) 

File "/usr/bin/conf-select", line 138, in setConfDir 
check(sver, pname, cver, "set") 

File "/usr/bin/conf-select", line 100, in check 
chksVer(sver) 

File "/usr/bin/conf-select", line 78, in chksVer 
result[tuple(map(int, versionRegex.split(f)))] = f 


ValueError: invalid literal for int() with base 10: 'html' 


Error: Error: Unable to run the custom hook script ['/usr/bin/python2', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY/scripts/hook.py', 'ANY', '/var/lib/ambari-agent/data/command-1718.json', '/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-ANY', '/var/lib/ambari-agent/data/structured-out-1718.json', 'INFO', '/var/lib/ambari-agent/tm&lt;/PRE&gt;&lt;P&gt;Note that on this host, /usr/hdp is a symlink to another location (/p01/app/had). Will that symlink break things in this case?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 08:29:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-Amabari-Install-at-conf-select-py-It-is-expecting/m-p/107665#M15958</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2016-01-22T08:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Error with Amabari Install at conf-select.py. It is expecting an int but receiving 'html'. Possible symlink issue.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-Amabari-Install-at-conf-select-py-It-is-expecting/m-p/107666#M15959</link>
      <description>&lt;P&gt;From researching on HCC I found out that&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;Ambari may not handle custom symlinks.  So when you installed it via Ambari, if you created different symlinks I think things would break. See this article on the Hortonworks Community Site: &lt;A href="https://community.hortonworks.com/questions/8776/customized-hdp-installation.html"&gt;https://community.hortonworks.com/questions/8776/customized-hdp-installation.html&lt;/A&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/8776/customized-hdp-installation.html"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Someone mentioned that perhaps it is a permission issue on the symlink, based on the rwx settings on the symlink which could cause it to fail to execute.  Related to umask issue.&lt;/LI&gt;&lt;LI&gt;Umask is very important.  Have it at 0022 during install at setup. When it is done change it to 0027. See &lt;A href="https://community.hortonworks.com/questions/8614/zookeeper-service-fails-to-start.html"&gt;https://community.hortonworks.com/questions/8614/zookeeper-service-fails-to-start.html&lt;/A&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/8614/zookeeper-service-fails-to-start.html"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Maybe we can add something to the hdp-select script for custom symlinks to work.  This is the script that manages the symlinks.  &lt;STRONG&gt;Maybe I can add "html" to a list of options somewhere in conf_select.py:&lt;/STRONG&gt; Inspired from  &lt;A href="https://community.hortonworks.com/questions/5811/install-of-hdp-fails-with-valueerror-invalid-liter.html"&gt;https://community.hortonworks.com/questions/5811/install-of-hdp-fails-with-valueerror-invalid-liter.html.&lt;/A&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/5811/install-of-hdp-fails-with-valueerror-invalid-liter.html"&gt;&lt;/A&gt; &lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Maybe it’s a case where we need to clear the repos, and folders from an old or failed install: &lt;A href="https://community.hortonworks.com/questions/1848/python-errors-or-script-does-not-exist-while-insta.html"&gt;https://community.hortonworks.com/questions/1848/python-errors-or-script-does-not-exist-while-insta.html&lt;/A&gt; &lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;I am still interested in thoughts or if anyone has done this successfully, having custom symlinks since Ops folks don't like using /usr mount&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 09:15:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-Amabari-Install-at-conf-select-py-It-is-expecting/m-p/107666#M15959</guid>
      <dc:creator>amcbarnett</dc:creator>
      <dc:date>2016-01-22T09:15:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error with Amabari Install at conf-select.py. It is expecting an int but receiving 'html'. Possible symlink issue.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-Amabari-Install-at-conf-select-py-It-is-expecting/m-p/107667#M15960</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/369/amcbarnett.html" nodeid="369"&gt;@Ancil McBarnett&lt;/A&gt; it's a long shot but I had issues with directories mounted with noexec. Check the mount options in /etc/fstab.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 09:35:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-Amabari-Install-at-conf-select-py-It-is-expecting/m-p/107667#M15960</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-01-22T09:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: Error with Amabari Install at conf-select.py. It is expecting an int but receiving 'html'. Possible symlink issue.</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-Amabari-Install-at-conf-select-py-It-is-expecting/m-p/107668#M15961</link>
      <description>&lt;P&gt;Instead of using a symlink, could you try doing a mount bind as it won't impact the folder permissions. For eg,&lt;/P&gt;&lt;P&gt;mount -o bind /p01/app/had /usr/hdp&lt;/P&gt;&lt;P&gt;If it works, you will need to add it to /etc/fstab&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jan 2016 14:24:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Error-with-Amabari-Install-at-conf-select-py-It-is-expecting/m-p/107668#M15961</guid>
      <dc:creator>orenault</dc:creator>
      <dc:date>2016-01-22T14:24:58Z</dc:date>
    </item>
  </channel>
</rss>

