You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by P lva <ru...@gmail.com> on 2014/11/07 17:53:04 UTC

Ambari Tracking configuration changes

Is there any way to track configuration changes in ambari 1.6.
The change log has version information.  Can we make a call to the api with
this version number and get the configs ?

Thanks
Ral

Re: Ambari Tracking configuration changes

Posted by Siddharth Wagle <sw...@hortonworks.com>.
Hi Iva,

Correctly specifying type and tag will get you the key values that you are
looking for.

You might find it useful to download a JsonViewer app (if using
Chrome/Firefox) and effectively just click on the config hrefs to navigate
to the key/value properties.

-Sid

On Fri, Nov 7, 2014 at 12:07 PM, P lva <ru...@gmail.com> wrote:

> Myroslav,
>
> Thanks for your prompt response.
>
> I tried this
>
> GET /api/v1/clusters/c1/configurations and its lists all the available
> configurations
>
> {
>       "href" : "",
>       "tag" : "",
>       "type" : "core-site",
>       "Config" : {
>         "cluster_name" : "c1"
>       }
>
> However when i add the type and tag, I get the available tags for that
> type and not the key value pairs for the particular tag itself.
>
> /api/v1/clusters/c1/configurations?type=global&tag=version1415118510909
>
> I'm using Ambari 1.6 .1.
>
> Thanks again
>
> On Fri, Nov 7, 2014 at 11:41 AM, Myroslav Papyrkovskyy <
> mpapyrkovskyy@hortonworks.com> wrote:
>
>> Hello,
>> I'm pretty sure you can.
>> Sample request:
>> GET /api/v1/clusters/c1/configurations?type=yarn-site&tag=version13456
>> You can find more details here:
>>
>> https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/configuration.md
>>
>> Regards,
>> Myroslav
>>
>> On Fri, Nov 7, 2014 at 6:53 PM, P lva <ru...@gmail.com> wrote:
>>
>>> Is there any way to track configuration changes in ambari 1.6.
>>> The change log has version information.  Can we make a call to the api
>>> with this version number and get the configs ?
>>>
>>> Thanks
>>> Ral
>>>
>>>
>>>
>>
>>
>> --
>> Regards,
>> Myroslav
>>
>> CONFIDENTIALITY NOTICE
>> NOTICE: This message is intended for the use of the individual or entity
>> to which it is addressed and may contain information that is confidential,
>> privileged and exempt from disclosure under applicable law. If the reader
>> of this message is not the intended recipient, you are hereby notified that
>> any printing, copying, dissemination, distribution, disclosure or
>> forwarding of this communication is strictly prohibited. If you have
>> received this communication in error, please contact the sender immediately
>> and delete it from your system. Thank You.
>
>
>

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Re: Ambari Tracking configuration changes

Posted by P lva <ru...@gmail.com>.
Myroslav,

Thanks for your prompt response.

I tried this

GET /api/v1/clusters/c1/configurations and its lists all the available
configurations

{
      "href" : "",
      "tag" : "",
      "type" : "core-site",
      "Config" : {
        "cluster_name" : "c1"
      }

However when i add the type and tag, I get the available tags for that type
and not the key value pairs for the particular tag itself.

/api/v1/clusters/c1/configurations?type=global&tag=version1415118510909

I'm using Ambari 1.6 .1.

Thanks again

On Fri, Nov 7, 2014 at 11:41 AM, Myroslav Papyrkovskyy <
mpapyrkovskyy@hortonworks.com> wrote:

> Hello,
> I'm pretty sure you can.
> Sample request:
> GET /api/v1/clusters/c1/configurations?type=yarn-site&tag=version13456
> You can find more details here:
>
> https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/configuration.md
>
> Regards,
> Myroslav
>
> On Fri, Nov 7, 2014 at 6:53 PM, P lva <ru...@gmail.com> wrote:
>
>> Is there any way to track configuration changes in ambari 1.6.
>> The change log has version information.  Can we make a call to the api
>> with this version number and get the configs ?
>>
>> Thanks
>> Ral
>>
>>
>>
>
>
> --
> Regards,
> Myroslav
>
> CONFIDENTIALITY NOTICE
> NOTICE: This message is intended for the use of the individual or entity
> to which it is addressed and may contain information that is confidential,
> privileged and exempt from disclosure under applicable law. If the reader
> of this message is not the intended recipient, you are hereby notified that
> any printing, copying, dissemination, distribution, disclosure or
> forwarding of this communication is strictly prohibited. If you have
> received this communication in error, please contact the sender immediately
> and delete it from your system. Thank You.

Re: Ambari Tracking configuration changes

Posted by Myroslav Papyrkovskyy <mp...@hortonworks.com>.
Hello,
I'm pretty sure you can.
Sample request:
GET /api/v1/clusters/c1/configurations?type=yarn-site&tag=version13456
You can find more details here:
https://github.com/apache/ambari/blob/trunk/ambari-server/docs/api/v1/configuration.md

Regards,
Myroslav

On Fri, Nov 7, 2014 at 6:53 PM, P lva <ru...@gmail.com> wrote:

> Is there any way to track configuration changes in ambari 1.6.
> The change log has version information.  Can we make a call to the api
> with this version number and get the configs ?
>
> Thanks
> Ral
>
>
>


-- 
Regards,
Myroslav

-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.