<?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: ambari 2.2.1.0 start service failed with error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147386#M109929</link>
    <description>&lt;P&gt;I have try to use an new virtual machine install the new ambari-agent version 2.2.1,but when I start server on that virtual machine,the ,og still told me :&lt;/P&gt;&lt;PRE&gt;  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&lt;/PRE&gt;&lt;P&gt;So I think there must be something wrong about the ambari-agent code.&lt;/P&gt;&lt;P&gt;May be the basic ambari-agent python lib change lead the problem??&lt;/P&gt;&lt;P&gt;PS: I use the local ambari and hdp repo.&lt;/P&gt;</description>
    <pubDate>Tue, 29 Mar 2016 18:20:06 GMT</pubDate>
    <dc:creator>darkz1984</dc:creator>
    <dc:date>2016-03-29T18:20:06Z</dc:date>
    <item>
      <title>ambari 2.2.1.0 start service failed with error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147377#M109920</link>
      <description>&lt;P&gt;I use ambari 2.2.1.0 and use nonroot user running ther server and the agent.&lt;/P&gt;&lt;P&gt;Install hdp 2.3.4.0-3485 is ok,when I try to start the service such as hdfs ,it was failed with errors,the logs content is blow...&lt;/P&gt;stderr:  /var/lib/ambari-agent/data/errors-69.txt&lt;PRE&gt;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:   /var/lib/ambari-agent/data/output-69.txt
2016-03-29 12:21:52,902 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.3.4.0-3485
2016-03-29 12:21:52,902 - Checking if need to create versioned conf dir /etc/hadoop/2.3.4.0-3485/0
2016-03-29 12:21:52,903 - call['conf-select create-conf-dir --package hadoop --stack-version 2.3.4.0-3485 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1}
2016-03-29 12:21:52,952 - call returned (1, '/etc/hadoop/2.3.4.0-3485/0 exist already', '')
2016-03-29 12:21:52,952 - checked_call['conf-select set-conf-dir --package hadoop --stack-version 2.3.4.0-3485 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False}
2016-03-29 12:21:52,996 - checked_call returned (0, '/usr/hdp/2.3.4.0-3485/hadoop/conf -&amp;gt; /etc/hadoop/2.3.4.0-3485/0')
2016-03-29 12:21:52,997 - Ensuring that hadoop has the correct symlink structure
2016-03-29 12:21:52,997 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf

&lt;/PRE&gt;&lt;P&gt; I had google it for times but no result about.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 11:31:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147377#M109920</guid>
      <dc:creator>darkz1984</dc:creator>
      <dc:date>2016-03-29T11:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: ambari 2.2.1.0 start service failed with error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147378#M109921</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3653/darkz1984-1.html" nodeid="3653"&gt;@darkz yu&lt;/A&gt;&lt;P&gt;Was there any errors while installation ?&lt;/P&gt;&lt;P&gt;Can you run the below command and paste the output here -&lt;/P&gt;&lt;P&gt;#ls -ltr /etc/hadoop&lt;/P&gt;&lt;P&gt;#ls -ltr /usr/hdp/current/&lt;/P&gt;&lt;P&gt;#hdp-select &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sagar&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 11:36:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147378#M109921</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-03-29T11:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: ambari 2.2.1.0 start service failed with error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147379#M109922</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;the informations is there:&lt;/P&gt;&lt;PRE&gt;ls -ltr /etc/hadoop
total 8
drwxr-xr-x 2 root root 4096 Mar 28 16:07 conf.backup
drwxr-xr-x 3 root root 4096 Mar 28 16:07 2.3.4.0-3485
lrwxrwxrwx 1 root root   35 Mar 28 16:07 conf -&amp;gt; /usr/hdp/current/hadoop-client/conf
&lt;/PRE&gt;&lt;PRE&gt;ls -ltr /usr/hdp/current/
total 0
lrwxrwxrwx 1 root root 27 Mar 29 11:27 atlas-server -&amp;gt; /usr/hdp/2.3.4.0-3485/atlas
lrwxrwxrwx 1 root root 30 Mar 29 11:27 accumulo-tracer -&amp;gt; /usr/hdp/2.3.4.0-3485/accumulo
lrwxrwxrwx 1 root root 30 Mar 29 11:27 accumulo-tablet -&amp;gt; /usr/hdp/2.3.4.0-3485/accumulo
lrwxrwxrwx 1 root root 30 Mar 29 11:27 accumulo-monitor -&amp;gt; /usr/hdp/2.3.4.0-3485/accumulo
lrwxrwxrwx 1 root root 30 Mar 29 11:27 accumulo-master -&amp;gt; /usr/hdp/2.3.4.0-3485/accumulo
lrwxrwxrwx 1 root root 30 Mar 29 11:27 accumulo-gc -&amp;gt; /usr/hdp/2.3.4.0-3485/accumulo
lrwxrwxrwx 1 root root 30 Mar 29 11:27 accumulo-client -&amp;gt; /usr/hdp/2.3.4.0-3485/accumulo
lrwxrwxrwx 1 root root 31 Mar 29 11:27 zookeeper-server -&amp;gt; /usr/hdp/2.3.4.0-3485/zookeeper
lrwxrwxrwx 1 root root 31 Mar 29 11:27 zookeeper-client -&amp;gt; /usr/hdp/2.3.4.0-3485/zookeeper
lrwxrwxrwx 1 root root 25 Mar 29 11:27 tez-client -&amp;gt; /usr/hdp/2.3.4.0-3485/tez
lrwxrwxrwx 1 root root 27 Mar 29 11:27 storm-supervisor -&amp;gt; /usr/hdp/2.3.4.0-3485/storm
lrwxrwxrwx 1 root root 41 Mar 29 11:27 storm-slider-client -&amp;gt; /usr/hdp/2.3.4.0-3485/storm-slider-client
lrwxrwxrwx 1 root root 27 Mar 29 11:27 storm-nimbus -&amp;gt; /usr/hdp/2.3.4.0-3485/storm
lrwxrwxrwx 1 root root 27 Mar 29 11:27 storm-client -&amp;gt; /usr/hdp/2.3.4.0-3485/storm
lrwxrwxrwx 1 root root 27 Mar 29 11:27 sqoop-server -&amp;gt; /usr/hdp/2.3.4.0-3485/sqoop
lrwxrwxrwx 1 root root 27 Mar 29 11:27 sqoop-client -&amp;gt; /usr/hdp/2.3.4.0-3485/sqoop
lrwxrwxrwx 1 root root 27 Mar 29 11:27 spark-thriftserver -&amp;gt; /usr/hdp/2.3.4.0-3485/spark
lrwxrwxrwx 1 root root 27 Mar 29 11:27 spark-historyserver -&amp;gt; /usr/hdp/2.3.4.0-3485/spark
lrwxrwxrwx 1 root root 27 Mar 29 11:27 spark-client -&amp;gt; /usr/hdp/2.3.4.0-3485/spark
lrwxrwxrwx 1 root root 28 Mar 29 11:27 slider-client -&amp;gt; /usr/hdp/2.3.4.0-3485/slider
lrwxrwxrwx 1 root root 37 Mar 29 11:27 ranger-usersync -&amp;gt; /usr/hdp/2.3.4.0-3485/ranger-usersync
lrwxrwxrwx 1 root root 32 Mar 29 11:27 ranger-kms -&amp;gt; /usr/hdp/2.3.4.0-3485/ranger-kms
lrwxrwxrwx 1 root root 34 Mar 29 11:27 ranger-admin -&amp;gt; /usr/hdp/2.3.4.0-3485/ranger-admin
lrwxrwxrwx 1 root root 25 Mar 29 11:27 pig-client -&amp;gt; /usr/hdp/2.3.4.0-3485/pig
lrwxrwxrwx 1 root root 29 Mar 29 11:27 phoenix-server -&amp;gt; /usr/hdp/2.3.4.0-3485/phoenix
lrwxrwxrwx 1 root root 29 Mar 29 11:27 phoenix-client -&amp;gt; /usr/hdp/2.3.4.0-3485/phoenix
lrwxrwxrwx 1 root root 27 Mar 29 11:27 oozie-server -&amp;gt; /usr/hdp/2.3.4.0-3485/oozie
lrwxrwxrwx 1 root root 27 Mar 29 11:27 oozie-client -&amp;gt; /usr/hdp/2.3.4.0-3485/oozie
lrwxrwxrwx 1 root root 28 Mar 29 11:27 mahout-client -&amp;gt; /usr/hdp/2.3.4.0-3485/mahout
lrwxrwxrwx 1 root root 26 Mar 29 11:27 knox-server -&amp;gt; /usr/hdp/2.3.4.0-3485/knox
lrwxrwxrwx 1 root root 27 Mar 29 11:27 kafka-broker -&amp;gt; /usr/hdp/2.3.4.0-3485/kafka
lrwxrwxrwx 1 root root 35 Mar 29 11:27 hive-webhcat -&amp;gt; /usr/hdp/2.3.4.0-3485/hive-hcatalog
lrwxrwxrwx 1 root root 26 Mar 29 11:27 hive-server2 -&amp;gt; /usr/hdp/2.3.4.0-3485/hive
lrwxrwxrwx 1 root root 26 Mar 29 11:27 hive-metastore -&amp;gt; /usr/hdp/2.3.4.0-3485/hive
lrwxrwxrwx 1 root root 26 Mar 29 11:27 hive-client -&amp;gt; /usr/hdp/2.3.4.0-3485/hive
lrwxrwxrwx 1 root root 27 Mar 29 11:27 hbase-regionserver -&amp;gt; /usr/hdp/2.3.4.0-3485/hbase
lrwxrwxrwx 1 root root 27 Mar 29 11:27 hbase-master -&amp;gt; /usr/hdp/2.3.4.0-3485/hbase
lrwxrwxrwx 1 root root 27 Mar 29 11:27 hbase-client -&amp;gt; /usr/hdp/2.3.4.0-3485/hbase
lrwxrwxrwx 1 root root 33 Mar 29 11:27 hadoop-yarn-timelineserver -&amp;gt; /usr/hdp/2.3.4.0-3485/hadoop-yarn
lrwxrwxrwx 1 root root 33 Mar 29 11:27 hadoop-yarn-resourcemanager -&amp;gt; /usr/hdp/2.3.4.0-3485/hadoop-yarn
lrwxrwxrwx 1 root root 33 Mar 29 11:27 hadoop-yarn-nodemanager -&amp;gt; /usr/hdp/2.3.4.0-3485/hadoop-yarn
lrwxrwxrwx 1 root root 33 Mar 29 11:27 hadoop-yarn-client -&amp;gt; /usr/hdp/2.3.4.0-3485/hadoop-yarn
lrwxrwxrwx 1 root root 38 Mar 29 11:27 hadoop-mapreduce-historyserver -&amp;gt; /usr/hdp/2.3.4.0-3485/hadoop-mapreduce
lrwxrwxrwx 1 root root 38 Mar 29 11:27 hadoop-mapreduce-client -&amp;gt; /usr/hdp/2.3.4.0-3485/hadoop-mapreduce
lrwxrwxrwx 1 root root 35 Mar 29 11:27 hadoop-httpfs -&amp;gt; /usr/hdp/2.3.4.0-3485/hadoop-httpfs
lrwxrwxrwx 1 root root 33 Mar 29 11:27 hadoop-hdfs-secondarynamenode -&amp;gt; /usr/hdp/2.3.4.0-3485/hadoop-hdfs
lrwxrwxrwx 1 root root 33 Mar 29 11:27 hadoop-hdfs-portmap -&amp;gt; /usr/hdp/2.3.4.0-3485/hadoop-hdfs
lrwxrwxrwx 1 root root 33 Mar 29 11:27 hadoop-hdfs-nfs3 -&amp;gt; /usr/hdp/2.3.4.0-3485/hadoop-hdfs
lrwxrwxrwx 1 root root 33 Mar 29 11:27 hadoop-hdfs-namenode -&amp;gt; /usr/hdp/2.3.4.0-3485/hadoop-hdfs
lrwxrwxrwx 1 root root 33 Mar 29 11:27 hadoop-hdfs-journalnode -&amp;gt; /usr/hdp/2.3.4.0-3485/hadoop-hdfs
lrwxrwxrwx 1 root root 33 Mar 29 11:27 hadoop-hdfs-datanode -&amp;gt; /usr/hdp/2.3.4.0-3485/hadoop-hdfs
lrwxrwxrwx 1 root root 33 Mar 29 11:27 hadoop-hdfs-client -&amp;gt; /usr/hdp/2.3.4.0-3485/hadoop-hdfs
lrwxrwxrwx 1 root root 28 Mar 29 11:27 hadoop-client -&amp;gt; /usr/hdp/2.3.4.0-3485/hadoop
lrwxrwxrwx 1 root root 27 Mar 29 11:27 flume-server -&amp;gt; /usr/hdp/2.3.4.0-3485/flume
lrwxrwxrwx 1 root root 28 Mar 29 11:27 falcon-server -&amp;gt; /usr/hdp/2.3.4.0-3485/falcon
lrwxrwxrwx 1 root root 28 Mar 29 11:27 falcon-client -&amp;gt; /usr/hdp/2.3.4.0-3485/falcon
&lt;/PRE&gt;&lt;PRE&gt;hdp-select
accumulo-client - None
accumulo-gc - None
accumulo-master - None
accumulo-monitor - None
accumulo-tablet - None
accumulo-tracer - None
atlas-server - None
falcon-client - None
falcon-server - None
flume-server - 2.3.4.0-3485
hadoop-client - 2.3.4.0-3485
hadoop-hdfs-datanode - 2.3.4.0-3485
hadoop-hdfs-journalnode - 2.3.4.0-3485
hadoop-hdfs-namenode - 2.3.4.0-3485
hadoop-hdfs-nfs3 - 2.3.4.0-3485
hadoop-hdfs-portmap - 2.3.4.0-3485
hadoop-hdfs-secondarynamenode - 2.3.4.0-3485
hadoop-httpfs - None
hadoop-mapreduce-historyserver - 2.3.4.0-3485
hadoop-yarn-nodemanager - 2.3.4.0-3485
hadoop-yarn-resourcemanager - 2.3.4.0-3485
hadoop-yarn-timelineserver - 2.3.4.0-3485
hbase-client - None
hbase-master - None
hbase-regionserver - None
hive-metastore - None
hive-server2 - None
hive-webhcat - None
kafka-broker - None
knox-server - None
mahout-client - None
oozie-client - None
oozie-server - None
phoenix-client - None
phoenix-server - None
ranger-admin - None
ranger-kms - None
ranger-usersync - None
slider-client - None
spark-client - None
spark-historyserver - None
spark-thriftserver - None
sqoop-client - None
sqoop-server - None
storm-client - None
storm-nimbus - None
storm-slider-client - None
storm-supervisor - None
zookeeper-client - 2.3.4.0-3485
zookeeper-server - 2.3.4.0-3485
&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Mar 2016 12:49:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147379#M109922</guid>
      <dc:creator>darkz1984</dc:creator>
      <dc:date>2016-03-29T12:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: ambari 2.2.1.0 start service failed with error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147380#M109923</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3653/darkz1984-1.html" nodeid="3653"&gt;@darkz yu&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Did you upgrade your HDP from 2.0.6 to HDP2.3.4?&lt;/P&gt;&lt;P&gt;Why your logs are shwoing "/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/"&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 12:57:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147380#M109923</guid>
      <dc:creator>divakarreddy_a</dc:creator>
      <dc:date>2016-03-29T12:57:05Z</dc:date>
    </item>
    <item>
      <title>Re: ambari 2.2.1.0 start service failed with error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147381#M109924</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2348/divakarreddya.html" nodeid="2348"&gt;@Divakar Annapureddy&lt;/A&gt; &lt;/P&gt;&lt;P&gt;No,I am not upgrade HDP,just test upgrade ambari,when I met the error:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/24208/help-ambari-agent-registe-fail-with-netutilpy77-er.html#answer-24705"&gt;https://community.hortonworks.com/questions/24208/help-ambari-agent-registe-fail-with-netutilpy77-er.html#answer-24705&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and the problem is resolved now.&lt;/P&gt;&lt;P&gt;Then I install hdp,then met the error as I show in this topic&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 13:04:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147381#M109924</guid>
      <dc:creator>darkz1984</dc:creator>
      <dc:date>2016-03-29T13:04:12Z</dc:date>
    </item>
    <item>
      <title>Re: ambari 2.2.1.0 start service failed with error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147382#M109925</link>
      <description>&lt;P&gt;do you resolved this problem ? i also has this problem&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 14:07:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147382#M109925</guid>
      <dc:creator>dgaodelong</dc:creator>
      <dc:date>2016-03-29T14:07:33Z</dc:date>
    </item>
    <item>
      <title>Re: ambari 2.2.1.0 start service failed with error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147383#M109926</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3726/dgaodelong.html" nodeid="3726"&gt;@gor don&lt;/A&gt;&lt;P&gt;I have google it and  find out some people have the same problem ,but no body resloved it yet.&lt;/P&gt;&lt;P&gt;Just wait some to tell us and I will have some try.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 14:55:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147383#M109926</guid>
      <dc:creator>darkz1984</dc:creator>
      <dc:date>2016-03-29T14:55:20Z</dc:date>
    </item>
    <item>
      <title>Re: ambari 2.2.1.0 start service failed with error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147384#M109927</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2348/divakarreddya.html" nodeid="2348"&gt;@Divakar Annapuredd&lt;/A&gt;&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;How to see the real command line ambari-agent execute? So I can debug the python yo find out what problem it is??&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 15:13:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147384#M109927</guid>
      <dc:creator>darkz1984</dc:creator>
      <dc:date>2016-03-29T15:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: ambari 2.2.1.0 start service failed with error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147385#M109928</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/2348/divakarreddya.html" nodeid="2348"&gt;@Divakar Annapureddy&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/3726/dgaodelong.html" nodeid="3726"&gt;@gor don&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I modifythe code of &lt;/P&gt;&lt;P&gt;/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py&lt;/P&gt;&lt;P&gt;and find line 141:&lt;/P&gt;&lt;P&gt;ambari_db_rca_url = config['hostLevelParams']['ambari_db_rca_url'][0]&lt;/P&gt;&lt;P&gt;I add &lt;/P&gt;&lt;PRE&gt;import pprint
print "xxxxxxxxxxxxxxx"
pprint.pprint(config['hostLevelParams'])
print "xxxxxxxxxxxxxxx"
&lt;/PRE&gt;&lt;P&gt;to debug the dictionary content:&lt;/P&gt;&lt;PRE&gt;{'agentCacheDir': '/var/lib/ambari-agent/cache',
 'ambari_db_rca_driver': 'com.mysql.jdbc.Driver',
 'ambari_db_rca_password': '123456',
 'ambari_db_rca_url': 'jdbc:mysql://127.0.0.1:3306/ambari',
 'ambari_db_rca_username': 'ambari',
...&lt;/PRE&gt;&lt;P&gt;So I think it call wrong,so I change&lt;/P&gt;&lt;P&gt;ambari_db_rca_url = config['hostLevelParams']['ambari_db_rca_url'][0]&lt;/P&gt;&lt;P&gt;to &lt;/P&gt;&lt;P&gt;ambari_db_rca_url = config['hostLevelParams']['ambari_db_rca_url']&lt;/P&gt;&lt;P&gt;then start the service is OK.&lt;/P&gt;&lt;P&gt;so I think is a bug of ambari-agent ??&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 15:50:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147385#M109928</guid>
      <dc:creator>darkz1984</dc:creator>
      <dc:date>2016-03-29T15:50:15Z</dc:date>
    </item>
    <item>
      <title>Re: ambari 2.2.1.0 start service failed with error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147386#M109929</link>
      <description>&lt;P&gt;I have try to use an new virtual machine install the new ambari-agent version 2.2.1,but when I start server on that virtual machine,the ,og still told me :&lt;/P&gt;&lt;PRE&gt;  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&lt;/PRE&gt;&lt;P&gt;So I think there must be something wrong about the ambari-agent code.&lt;/P&gt;&lt;P&gt;May be the basic ambari-agent python lib change lead the problem??&lt;/P&gt;&lt;P&gt;PS: I use the local ambari and hdp repo.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 18:20:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147386#M109929</guid>
      <dc:creator>darkz1984</dc:creator>
      <dc:date>2016-03-29T18:20:06Z</dc:date>
    </item>
    <item>
      <title>Re: ambari 2.2.1.0 start service failed with error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147387#M109930</link>
      <description>&lt;P&gt;So to confirm: this is a clean install of Ambari 2.2.1.0, not an upgrade from a previous Ambari?&lt;/P&gt;&lt;P&gt;What OS are you using?&lt;/P&gt;&lt;P&gt;cc &lt;A rel="user" href="https://community.cloudera.com/users/134/mahadev.html" nodeid="134"&gt;@mahadev&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 19:10:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147387#M109930</guid>
      <dc:creator>jeff1</dc:creator>
      <dc:date>2016-03-29T19:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: ambari 2.2.1.0 start service failed with error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147388#M109931</link>
      <description>&lt;P&gt;My OS is centos6.5 and I not an upgrade Ambari&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 20:23:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147388#M109931</guid>
      <dc:creator>dgaodelong</dc:creator>
      <dc:date>2016-03-29T20:23:14Z</dc:date>
    </item>
    <item>
      <title>Re: ambari 2.2.1.0 start service failed with error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147389#M109932</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3653/darkz1984-1.html" nodeid="3653"&gt;@darkz yu&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;Are you able to start the concerned service manually on the given node? If so, please go ahead and file a technical support case / bug. Upgrade to 2.2.1.1 if possible.&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 20:58:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147389#M109932</guid>
      <dc:creator>vpoornalingam</dc:creator>
      <dc:date>2016-03-29T20:58:27Z</dc:date>
    </item>
    <item>
      <title>Re: ambari 2.2.1.0 start service failed with error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147390#M109933</link>
      <description>&lt;P&gt;@jeff&lt;/P&gt;&lt;P&gt;I once think it was the upgrade cause this problem，so I use clean virtual machine to try thi s，but problem is still the same。&lt;/P&gt;&lt;P&gt;My OS is centos 6.6 64 bit in virtual box，and I use my local ambari repo ，repo name is ambari 2.2.1 upgrade。When I try to install，I use yum install，an show that 2.2.1 is installed，is this the problem？&lt;/P&gt;</description>
      <pubDate>Tue, 29 Mar 2016 21:57:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147390#M109933</guid>
      <dc:creator>darkz1984</dc:creator>
      <dc:date>2016-03-29T21:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: ambari 2.2.1.0 start service failed with error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147391#M109934</link>
      <description>&lt;P&gt;This is the contents of my local yum repo file content :&lt;/P&gt;&lt;PRE&gt;/etc/yum.repos.d/hdp.repo 
[Ambari-2.1.0]
name=Ambari-2.1.0
baseurl=http://repo.test.yunwei/repo/ambari/centos6/
gpgcheck=0
enabled=1
#VERSION_NUMBER=2.2.1.0-161
[Updates-ambari-2.2.1.0]
name=ambari-2.2.1.0 - Updates
baseurl=http://repo.test.yunwei/repo/AMBARI-2.2.1.0/centos6/2.2.1.0-161/
gpgcheck=1
gpgkey=http://repo.test.yunwei/repo/AMBARI-2.2.1.0/centos6/2.2.1.0-161/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1
[HDP-2.1]
name=HDP-2.1
baseurl=http://repo.test.yunwei/repo/HDP/centos6/2.x/GA/2.1.1.0/
path=/
enabled=1
gpgcheck=0
[HDP-UTILS-1.1.0.19]
name=HDP-UTILS-1.1.0.19
baseurl=http://repo.test.yunwei/repo/HDP-UTILS-1.1.0.17/repos/centos6/
path=/
enabled=1
#VERSION_NUMBER=2.3.4.0-3485
[HDP-2.3.4.0]
name=HDP Version - HDP-2.3.4.0
baseurl=http://repo.test.yunwei/repo/HDP/centos6/2.x/updates/2.3.4.0
#gpgcheck=1
#gpgkey=http://repo.test.yunwei/repo/HDP/centos6/2.x/updates/2.3.4.0/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
#priority=1
[HDP-UTILS-1.1.0.20]
name=HDP Utils Version - HDP-UTILS-1.1.0.20
baseurl=http://repo.test.yunwei/repo/HDP-UTILS-1.1.0.20/repos/centos6
#gpgcheck=1
gpgkey=http://repo.test.yunwei/repo/HDP-UTILS-1.1.0.20/repos/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
#priority=1&lt;/PRE&gt;</description>
      <pubDate>Wed, 30 Mar 2016 15:09:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147391#M109934</guid>
      <dc:creator>darkz1984</dc:creator>
      <dc:date>2016-03-30T15:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: ambari 2.2.1.0 start service failed with error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147392#M109935</link>
      <description>&lt;P&gt;Would you mind posting the content of your /etc/ambari-server/conf/ambari.properties file? Also provide the output of "ambari-server --version" and "ambari-server --hash". Thx&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 20:09:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147392#M109935</guid>
      <dc:creator>jeff1</dc:creator>
      <dc:date>2016-03-30T20:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: ambari 2.2.1.0 start service failed with error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147393#M109936</link>
      <description>&lt;P&gt;After I change the ambari-agent side python code of file:&lt;/P&gt;&lt;P&gt;"/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py"&lt;/P&gt;&lt;P&gt;as the contents I post above,I can start service on the host which the agent is installed through the ambari-server web gui.&lt;/P&gt;&lt;P&gt;So I think it must be a bug,but I check the same file of the agent at version 2.1,the code is the same and the dumped data structure in the memory is the same between two versions.So I don't know what differents lead the problem.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2016 20:22:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147393#M109936</guid>
      <dc:creator>darkz1984</dc:creator>
      <dc:date>2016-03-30T20:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: ambari 2.2.1.0 start service failed with error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147394#M109937</link>
      <description>&lt;P&gt;# ambari-agent --version&lt;/P&gt;&lt;P&gt;2.2.1.0&lt;/P&gt;&lt;P&gt;# ambari-agent --hash&lt;/P&gt;&lt;P&gt;6a8abfa65789b87da764549c27ca0f1440b91297&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2016 09:20:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147394#M109937</guid>
      <dc:creator>darkz1984</dc:creator>
      <dc:date>2016-03-31T09:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: ambari 2.2.1.0 start service failed with error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147395#M109938</link>
      <description>&lt;P&gt;/var/lib/ambari-agent/cache/stacks/HDP/2.0.6/hooks/before-START/scripts/params.py&lt;/P&gt;&lt;P&gt;How to modify params.py file ? you can start service&lt;/P&gt;</description>
      <pubDate>Tue, 05 Apr 2016 10:10:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147395#M109938</guid>
      <dc:creator>dgaodelong</dc:creator>
      <dc:date>2016-04-05T10:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: ambari 2.2.1.0 start service failed with error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147396#M109939</link>
      <description>&lt;P&gt;I post it above&lt;/P&gt;</description>
      <pubDate>Wed, 06 Apr 2016 11:26:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/ambari-2-2-1-0-start-service-failed-with-error/m-p/147396#M109939</guid>
      <dc:creator>darkz1984</dc:creator>
      <dc:date>2016-04-06T11:26:07Z</dc:date>
    </item>
  </channel>
</rss>

