<?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: how to find config type by API command in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216862#M66498</link>
    <description>&lt;P&gt;any new suggestion?&lt;/P&gt;</description>
    <pubDate>Fri, 11 Aug 2017 17:08:33 GMT</pubDate>
    <dc:creator>mike_bronson7</dc:creator>
    <dc:date>2017-08-11T17:08:33Z</dc:date>
    <item>
      <title>how to find config type by API command</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216851#M66487</link>
      <description>&lt;P&gt;How to know the configuration type for parameter in ambari cluster by API&lt;/P&gt;&lt;P&gt;examples of configuration type - core-site, hdfs-site, mapred-queue-acls&lt;/P&gt;&lt;P&gt;lets say I want to find the configuration type for the parameter - "mapreduce.map.memory.mb” , in this case configuration type is mapred-site&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 13:46:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216851#M66487</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-11T13:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to find config type by API command</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216852#M66488</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Something like this we can try using "config.sh" script.  (one approach)&lt;/P&gt;&lt;PRE&gt;# /var/lib/ambari-server/resources/scripts//configs.sh -u admin -p admin -port 8080 get localhost test_cluster hdfs-site
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 13:51:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216852#M66488</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-11T13:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: how to find config type by API command</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216853#M66489</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Using Amabri API you can try the following:&lt;/P&gt;&lt;PRE&gt;curl -iv -u admin:admin -H "X-Requested-By: ambari" -X GET  &lt;A href="http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/configurations?type=hdfs-site" target="_blank"&gt;http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/configurations?type=hdfs-site&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;Then get the latest version tag from the above call and then use that version in the API call.&lt;/P&gt;&lt;PRE&gt;curl -iv -u admin:admin -H "X-Requested-By: ambari" -X GET  &lt;A href="http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/configurations?type=hdfs-site&amp;amp;tag=version1497013815573" target="_blank"&gt;http://amb25101.example.com:8080/api/v1/clusters/plain_ambari/configurations?type=hdfs-site&amp;amp;tag=version1497013815573&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 13:54:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216853#M66489</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-11T13:54:15Z</dc:date>
    </item>
    <item>
      <title>Re: how to find config type by API command</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216854#M66490</link>
      <description>&lt;P&gt;thank you &lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;Jay SenSharma&lt;/A&gt; your example print all parameters that belong to he configuration type , but we need to know the  configuration type for the parameter  , I mean lets say we have some parameter how to know under which configuration type parameter is belong ?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 13:57:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216854#M66490</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-11T13:57:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to find config type by API command</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216855#M66491</link>
      <description>&lt;P&gt;just to clear my question , we have parameter but we not know to which configyuration type this parameter is belong &lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 14:00:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216855#M66491</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-11T14:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: how to find config type by API command</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216856#M66492</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;When we make a call to /clusterName API then we should be able to find the right config that has this property.&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H "X-Requested-By: ambari" -X GET  &lt;A href="http://amb25101.example.com:8080/api/v1/clusters/plain_ambari" target="_blank"&gt;http://amb25101.example.com:8080/api/v1/clusters/plain_ambari&lt;/A&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt; and then we can grep 'mapreduce.map.memory.mb' to find which config has thie entry.&lt;/P&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>Fri, 11 Aug 2017 14:06:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216856#M66492</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-11T14:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: how to find config type by API command</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216857#M66493</link>
      <description>&lt;P&gt;from some reason I get - {
  "status" : 404,
  "message" : "The requested resource doesn't exist: Cluster not found, clusterName=plain_ambari"    ( when I run this - curl -u admin:admin -H "X-Requested-By: ambari" -X GET  &lt;A href="http://ambarir02.urs.com:8080/api/v1/clusters/plain_ambari" target="_blank"&gt;http://ambarir02.urs.com:8080/api/v1/clusters/plain_ambari&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 14:13:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216857#M66493</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-11T14:13:21Z</dc:date>
    </item>
    <item>
      <title>Re: how to find config type by API command</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216858#M66494</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;/A&gt;&lt;P&gt;"&lt;STRONG&gt;plain_cluster&lt;/STRONG&gt;"  is the Name of my ambari cluster. You will need to replace it with your cluster name. You can find the clustername using the following call.&lt;/P&gt;&lt;PRE&gt;curl -u admin:admin -H "X-Requested-By: ambari" -X GET  &lt;A href="http://$AMBARI_HOST:8080/api/v1/clusters/" target="_blank"&gt;http://$AMBARI_HOST:8080/api/v1/clusters/&lt;/A&gt;&lt;BR /&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 11 Aug 2017 14:17:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216858#M66494</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-11T14:17:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to find config type by API command</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216859#M66495</link>
      <description>&lt;P&gt;ok now I get all mapreduce.map.memory.mb parameters but not the config type  ( I used grep to match them )   , still not get the config type for the parameter &lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 14:23:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216859#M66495</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-11T14:23:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to find config type by API command</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216860#M66496</link>
      <description>&lt;P&gt;the main target is to find the config type because one of the script ( config.sh) arguments is the config type , so when we want to change the parameter value by the script we need the config type , but  I not have the config type info    , so how to know the config type when we want to change the parameter ? &lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 14:36:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216860#M66496</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-11T14:36:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to find config type by API command</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216861#M66497</link>
      <description>&lt;P&gt;Jay - any suggestion?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 15:59:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216861#M66497</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-11T15:59:40Z</dc:date>
    </item>
    <item>
      <title>Re: how to find config type by API command</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216862#M66498</link>
      <description>&lt;P&gt;any new suggestion?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Aug 2017 17:08:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216862#M66498</guid>
      <dc:creator>mike_bronson7</dc:creator>
      <dc:date>2017-08-11T17:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: how to find config type by API command</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216863#M66499</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/26229/uribarih.html" nodeid="26229"&gt;@uri ben-ari&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There is no reverse mapping ... i mean if you know a parameter then there is no direct way to find which XML file that parameter will go.   Usually the admin or the component owner knows which configuration parameter will impact which service and component. And which configuration file (config_type) should have the mapping for that parameter.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;The best way is to find more information about the parameter and then we will know where that parameter should get applied.&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>Fri, 18 Aug 2017 00:58:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216863#M66499</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-18T00:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to find config type by API command</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216864#M66500</link>
      <description>&lt;P&gt;Example:   If i want to add a parameter "hadoop.security.auth_to_local" to some config ... then i will need to know about it. &lt;/P&gt;&lt;P&gt;I found in the following link that it can be applied to "core-site" , So i will need to add it to that config in ambari.&lt;/P&gt;&lt;P&gt;&lt;A href="https://hadoop.apache.org/docs/r2.8.0/hadoop-project-dist/hadoop-common/core-default.xml" target="_blank"&gt;https://hadoop.apache.org/docs/r2.8.0/hadoop-project-dist/hadoop-common/core-default.xml&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 18 Aug 2017 01:01:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-find-config-type-by-API-command/m-p/216864#M66500</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-08-18T01:01:40Z</dc:date>
    </item>
  </channel>
</rss>

