<?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: configs.sh not supported from 2.6.4 HDP version in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/configs-sh-not-supported-from-2-6-4-HDP-version/m-p/179808#M75873</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes we can set individual properties as well like following:&lt;/P&gt;&lt;PRE&gt;# /var/lib/ambari-server/resources/scripts/configs.py --user=admin --password=admin --port=8080 --action=set --host=localhost --cluster=Sandbox --config-type=yarn-site -k "yarn.timeline-service.recovery.enabled" -v "true"&lt;/PRE&gt;&lt;P&gt;.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt; &lt;/P&gt;</description>
    <pubDate>Thu, 15 Mar 2018 17:21:58 GMT</pubDate>
    <dc:creator>jsensharma</dc:creator>
    <dc:date>2018-03-15T17:21:58Z</dc:date>
    <item>
      <title>configs.sh not supported from 2.6.4 HDP version</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/configs-sh-not-supported-from-2-6-4-HDP-version/m-p/179804#M75869</link>
      <description>&lt;P&gt;hi all,&lt;/P&gt;&lt;P&gt;Until HDP version - &lt;STRONG&gt;2.6.4 &lt;/STRONG&gt;we can use the configs.sh as the following example&lt;/P&gt;&lt;P&gt;( in this example  we print all variables that relevant to the config type - yarn-site )&lt;/P&gt;&lt;P&gt;&lt;EM&gt;cluster name - HDP&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;config type - yarn-site&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;ambari server - localhost&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt; /var/lib/ambari-server/resources/scripts/configs.sh get localhost HDP yarn-site
########## Performing 'GET' on (Site:yarn-site, Tag:version1512057597218)
"properties" : {
"hadoop.registry.rm.enabled" : "true",
.
.
.

&lt;/PRE&gt;&lt;P&gt;from 2.6.4 version ( and include config.sh isn't supported )&lt;/P&gt;&lt;PRE&gt;/var/lib/ambari-server/resources/scripts/configs.py get localhost HDP yarn-site
Usage: configs.py [options]
configs.py: error: One of required options is not passed&lt;/PRE&gt;&lt;P&gt;so we using now the &lt;STRONG&gt;configs.py i&lt;/STRONG&gt;nstead&lt;/P&gt;&lt;P&gt;but seems that flags in configs.sh not as in &lt;STRONG&gt;configs.py&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;what is the right syntax to use the &lt;STRONG&gt;configs.py &lt;/STRONG&gt;in order to get all variable according to the config type as we do on &lt;STRONG&gt;configs.sh&lt;/STRONG&gt; ?&lt;/P&gt;&lt;PRE&gt; /var/lib/ambari-server/resources/scripts/configs.py get localhost HDP yarn-site
Usage: configs.py [options]
configs.py: error: One of required options is not passed&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Mar 2018 16:28:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/configs-sh-not-supported-from-2-6-4-HDP-version/m-p/179804#M75869</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-03-15T16:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: configs.sh not supported from 2.6.4 HDP version</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/configs-sh-not-supported-from-2-6-4-HDP-version/m-p/179805#M75870</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is a simple example of config.py:&lt;/P&gt;&lt;PRE&gt;# /var/lib/ambari-server/resources/scripts/configs.py --user=admin --password=admin --port=8080 --action=get --host=localhost --cluster=Sandbox --config-type=yarn-site&lt;/PRE&gt;</description>
      <pubDate>Thu, 15 Mar 2018 16:33:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/configs-sh-not-supported-from-2-6-4-HDP-version/m-p/179805#M75870</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-03-15T16:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: configs.sh not supported from 2.6.4 HDP version</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/configs-sh-not-supported-from-2-6-4-HDP-version/m-p/179806#M75871</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Here is another example in which we are setting a property in cluster-env. Notice "-k" means Key and "-v" for value. Following command will set the Auto Start for Cluster services to true.  &lt;/P&gt;&lt;PRE&gt;# /var/lib/ambari-server/resources/scripts/configs.py --user=admin --password=admin --port=8080 --action=set --host=localhost --cluster=Sandbox --config-type=cluster-env -k "recovery_enabled" -v "true"&lt;/PRE&gt;&lt;P&gt;.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 16:37:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/configs-sh-not-supported-from-2-6-4-HDP-version/m-p/179806#M75871</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-03-15T16:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: configs.sh not supported from 2.6.4 HDP version</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/configs-sh-not-supported-from-2-6-4-HDP-version/m-p/179807#M75872</link>
      <description>&lt;P&gt;@jay thank you , another little equation regrading that &lt;/P&gt;&lt;P&gt;in &lt;STRONG&gt;configs.sh&lt;/STRONG&gt; in order to set new value we do that ( for example )&lt;/P&gt;&lt;PRE&gt;/var/lib/ambari-server/resources/scripts/configs.sh set localhost HDP yarn.timeline-service.recovery.enabled true&lt;/PRE&gt;&lt;P&gt;what is the syntax for &lt;STRONG&gt;configs.py&lt;/STRONG&gt;?&lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 16:41:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/configs-sh-not-supported-from-2-6-4-HDP-version/m-p/179807#M75872</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2018-03-15T16:41:53Z</dc:date>
    </item>
    <item>
      <title>Re: configs.sh not supported from 2.6.4 HDP version</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/configs-sh-not-supported-from-2-6-4-HDP-version/m-p/179808#M75873</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@Michael Bronson&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes we can set individual properties as well like following:&lt;/P&gt;&lt;PRE&gt;# /var/lib/ambari-server/resources/scripts/configs.py --user=admin --password=admin --port=8080 --action=set --host=localhost --cluster=Sandbox --config-type=yarn-site -k "yarn.timeline-service.recovery.enabled" -v "true"&lt;/PRE&gt;&lt;P&gt;.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 15 Mar 2018 17:21:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/configs-sh-not-supported-from-2-6-4-HDP-version/m-p/179808#M75873</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2018-03-15T17:21:58Z</dc:date>
    </item>
    <item>
      <title>Re: configs.sh not supported from 2.6.4 HDP version</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/configs-sh-not-supported-from-2-6-4-HDP-version/m-p/179809#M75874</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hi ,&lt;/P&gt;&lt;P&gt;  I am trying to use this in my environment but fails. Its a kerberized environment and SSL enabled. "XXX" is where I replace the right values. &lt;/P&gt;&lt;P&gt;/var/lib/ambari-server/resources/scripts/configs.py --user=admin --password="XXXXXXXXX" --port=8442 --action=get --host="XXX"--cluster="XXX" --config-type=yarn-site
2018-11-14 10:58:36,163 INFO ### Performing "get" content:
Traceback (most recent call last):
  File "/var/lib/ambari-server/resources/scripts/configs.py", line 364, in &amp;lt;module&amp;gt;
    sys.exit(main())
  File "/var/lib/ambari-server/resources/scripts/configs.py", line 350, in main
    return get_properties(cluster, config_type, action_args, accessor)
  File "/var/lib/ambari-server/resources/scripts/configs.py", line 260, in get_properties
    get_config(cluster, config_type, accessor, output)
  File "/var/lib/ambari-server/resources/scripts/configs.py", line 212, in get_config
    properties, attributes = get_current_config(cluster, config_type, accessor)
  File "/var/lib/ambari-server/resources/scripts/configs.py", line 123, in get_current_config
    config_tag = get_config_tag(cluster, config_type, accessor)
  File "/var/lib/ambari-server/resources/scripts/configs.py", line 94, in get_config_tag
    response = accessor(DESIRED_CONFIGS_URL.format(cluster))
  File "/var/lib/ambari-server/resources/scripts/configs.py", line 89, in do_request
    raise Exception('Problem with accessing api. Reason: {0}'.format(exc))
Exception: Problem with accessing api. Reason: ''&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 03:11:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/configs-sh-not-supported-from-2-6-4-HDP-version/m-p/179809#M75874</guid>
      <dc:creator>mayankbhatt2006</dc:creator>
      <dc:date>2018-11-15T03:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: configs.sh not supported from 2.6.4 HDP version</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/configs-sh-not-supported-from-2-6-4-HDP-version/m-p/179810#M75875</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/97844/mayankbhatt2006.html" nodeid="97844"&gt;@Mayank Bhatt&lt;/A&gt; do add "&lt;EM&gt;--protocol https --port 8443&lt;/EM&gt;" options if ambari is running on HTTPS.&lt;/P&gt;</description>
      <pubDate>Thu, 15 Nov 2018 12:16:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/configs-sh-not-supported-from-2-6-4-HDP-version/m-p/179810#M75875</guid>
      <dc:creator>sandyy006</dc:creator>
      <dc:date>2018-11-15T12:16:55Z</dc:date>
    </item>
  </channel>
</rss>

