<?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 File &amp;quot;/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py&amp;quot;, line 141, in      ambari_db_rca_password = config['hostLevelParams']['ambari_db_rca_password'][0] TypeError: 'int' object is unsubscriptable in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/File-quot-var-lib-ambari-agent-cache-stacks-HDP-2-0-6-hooks/m-p/121213#M30797</link>
    <description>&lt;P&gt;When i install HDP-2.4 use ambari, i have an error&lt;/P&gt;&lt;PRE&gt;stderr: 
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py", line 39, in &amp;lt;module&amp;gt;
    BeforeStartHook().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py", line 28, in hook
    import params
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py", line 141, in &amp;lt;module&amp;gt;
    ambari_db_rca_password = config['hostLevelParams']['ambari_db_rca_password'][0]
TypeError: 'int' object is unsubscriptable
 stdout:
2016-06-06 11:33:24,993 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.4.0.0-169
2016-06-06 11:33:24,993 - Checking if need to create versioned conf dir /etc/hadoop/2.4.0.0-169/0
2016-06-06 11:33:24,993 - call['conf-select create-conf-dir --package hadoop --stack-version 2.4.0.0-169 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2016-06-06 11:33:25,011 - call returned (1, '/etc/hadoop/2.4.0.0-169/0 exist already', '')
2016-06-06 11:33:25,011 - checked_call['conf-select set-conf-dir --package hadoop --stack-version 2.4.0.0-169 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False}
2016-06-06 11:33:25,029 - checked_call returned (0, '/usr/hdp/2.4.0.0-169/hadoop/conf -&amp;gt; /etc/hadoop/2.4.0.0-169/0')
2016-06-06 11:33:25,029 - Ensuring that hadoop has the correct symlink structure
2016-06-06 11:33:25,029 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
&lt;/PRE&gt;&lt;P&gt;i don't know why,some body can help me?&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jun 2016 10:34:00 GMT</pubDate>
    <dc:creator>lida_java</dc:creator>
    <dc:date>2016-06-06T10:34:00Z</dc:date>
    <item>
      <title>File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py", line 141, in      ambari_db_rca_password = config['hostLevelParams']['ambari_db_rca_password'][0] TypeError: 'int' object is unsubscriptable</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/File-quot-var-lib-ambari-agent-cache-stacks-HDP-2-0-6-hooks/m-p/121213#M30797</link>
      <description>&lt;P&gt;When i install HDP-2.4 use ambari, i have an error&lt;/P&gt;&lt;PRE&gt;stderr: 
Traceback (most recent call last):
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py", line 39, in &amp;lt;module&amp;gt;
    BeforeStartHook().execute()
  File "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", line 219, in execute
    method(env)
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/hook.py", line 28, in hook
    import params
  File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py", line 141, in &amp;lt;module&amp;gt;
    ambari_db_rca_password = config['hostLevelParams']['ambari_db_rca_password'][0]
TypeError: 'int' object is unsubscriptable
 stdout:
2016-06-06 11:33:24,993 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.4.0.0-169
2016-06-06 11:33:24,993 - Checking if need to create versioned conf dir /etc/hadoop/2.4.0.0-169/0
2016-06-06 11:33:24,993 - call['conf-select create-conf-dir --package hadoop --stack-version 2.4.0.0-169 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2016-06-06 11:33:25,011 - call returned (1, '/etc/hadoop/2.4.0.0-169/0 exist already', '')
2016-06-06 11:33:25,011 - checked_call['conf-select set-conf-dir --package hadoop --stack-version 2.4.0.0-169 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False}
2016-06-06 11:33:25,029 - checked_call returned (0, '/usr/hdp/2.4.0.0-169/hadoop/conf -&amp;gt; /etc/hadoop/2.4.0.0-169/0')
2016-06-06 11:33:25,029 - Ensuring that hadoop has the correct symlink structure
2016-06-06 11:33:25,029 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf
&lt;/PRE&gt;&lt;P&gt;i don't know why,some body can help me?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jun 2016 10:34:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/File-quot-var-lib-ambari-agent-cache-stacks-HDP-2-0-6-hooks/m-p/121213#M30797</guid>
      <dc:creator>lida_java</dc:creator>
      <dc:date>2016-06-06T10:34:00Z</dc:date>
    </item>
    <item>
      <title>Re: File "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py", line 141, in      ambari_db_rca_password = config['hostLevelParams']['ambari_db_rca_password'][0] TypeError: 'int' object is unsubscriptable</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/File-quot-var-lib-ambari-agent-cache-stacks-HDP-2-0-6-hooks/m-p/121214#M30798</link>
      <description>&lt;P&gt;For this command, find the correct /var/lib/ambari-agent/data/command-*.json file
and find the section, e.g., &lt;/P&gt;&lt;PRE&gt;"hostLevelParams": {
  ...,
  "ambari_db_rca_password": "mapred"
}&lt;/PRE&gt;&lt;P&gt;This was introduced by AMBARI-4149, which tries to access the element at index 0, however, it's a string instead of a list.
This is controlled by the "server.jdbc.rca.user.passwd" property in the /etc/ambari-server/conf/ambari.properties file.&lt;/P&gt;&lt;P&gt;You should file a Jira on Apache since this is a bug.&lt;/P&gt;</description>
      <pubDate>Thu, 09 Jun 2016 04:01:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/File-quot-var-lib-ambari-agent-cache-stacks-HDP-2-0-6-hooks/m-p/121214#M30798</guid>
      <dc:creator>afernandez</dc:creator>
      <dc:date>2016-06-09T04:01:48Z</dc:date>
    </item>
  </channel>
</rss>

