You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by Markovich <am...@gmail.com> on 2017/10/21 19:48:13 UTC
How to change cluster-env from stack_adviser or service_adviser
Hello!
Is it possible to modify cluster-env form service_adviser?
Regards,
Andrey
Re: How to change cluster-env from stack_adviser or service_adviser
Posted by MyGmail <am...@gmail.com>.
Ok, thank you Swapan.
Regards,
Andrey
> 27 окт. 2017 г., в 2:29, Swapan Shridhar <ss...@hortonworks.com> написал(а):
>
>
> Hi Andrey,
>
> Thanks for clarifying the use case.
>
> There are 2 options to set the cluster-env/enable_external_ranger:
> Blueprints (BP) : If you are installing the cluster via BP, you can update the enable_external_ranger configs based on the requirement to True.
> UI : If you are installing via UI, enable_external_ranger flag in cluster-env.xml file needs to be updated before starting UI installer wizard (a manual step), or updated via configs.py which I have updated in my last email.
> Hope this helps.
>
> Thanks.
>
> Regards,
> Swapan.
>
>
> From: Markovich
> Date: Thursday, October 26, 2017 at 12:56 PM
> To: Swapan Shridhar
> Cc: "user@ambari.apache.org"
> Subject: Re: How to change cluster-env from stack_adviser or service_adviser
>
> Hi Swapan!
>
> Thank you for your answer.
>
> I'd like to use ranger plugins for hdfs,hive and etc in my service.
> That's why i need to set enable_external_ranger = true in cluster-env. Without this properity I can't see ranger plugin configs and can't update them. (for example ranger-hdfs-audit.)
> I need to ebable this in service_adviser, so I can recommend changes to this configs.
>
> May be you can advise me another solution?
>
> Regards,
> Andrey
>
>
>
>
> 2017-10-26 21:09 GMT+03:00 Swapan Shridhar <ss...@hortonworks.com>:
>>
>> Hi Markovich,
>>
>> There is no way of changing 'cluster-env' from stack-advisor (SA) or service_advisor.
>>
>> cluster-env is passed as services['configurations']['cluster-env']['properties'] to SA, but even if we update value in stack-advisor, it will never get propagated finally.
>>
>> Can you explain on why you would like to have a config related to a customer service in cluster-env and not in the service's site itself ?
>>
>> Further cluster-env can be changed using (for reference) :
>>
>> ==============================================================================================================================================
>> Eg: /var/lib/ambari-server/resources/scripts/configs.py -a set -l localhost -n c1 -c cluster-env -k "recovery_retry_interval" -v "10"
>>
>> Ref: /var/lib/ambari-server/resources/scripts/configs.py -a <ACTION> -l <HOSTNAME> -n <CLUSTER_NAME> -c <CONFIG_TYPE> -k "<CONFIG_NAME>" -v "<CONFIG_VALUE>"
>>
>> URL: https://cwiki.apache.org/confluence/display/AMBARI/Modify+configurations
>> ==============================================================================================================================================
>>
>> Thanks.
>>
>> Regards,
>> Swapan.
>>
>>
>> From: Markovich
>> Reply-To: "user@ambari.apache.org"
>> Date: Thursday, October 26, 2017 at 4:10 AM
>> To: "user@ambari.apache.org"
>> Subject: Re: How to change cluster-env from stack_adviser or service_adviser
>>
>> Any help?
>>
>> How can I change cluster-env propertie for my custom service?
>>
>> Regards,
>> Andrey
>>
>> 2017-10-21 22:48 GMT+03:00 Markovich <am...@gmail.com>:
>>> Hello!
>>>
>>> Is it possible to modify cluster-env form service_adviser?
>>>
>>> Regards,
>>> Andrey
>>
>
Re: How to change cluster-env from stack_adviser or service_adviser
Posted by Swapan Shridhar <ss...@hortonworks.com>.
Hi Andrey,
Thanks for clarifying the use case.
There are 2 options to set the cluster-env/enable_external_ranger:
* Blueprints (BP) : If you are installing the cluster via BP, you can update the enable_external_ranger configs based on the requirement to True.
* UI : If you are installing via UI, enable_external_ranger flag in cluster-env.xml file needs to be updated before starting UI installer wizard (a manual step), or updated via configs.py which I have updated in my last email.
Hope this helps.
Thanks.
Regards,
Swapan.
From: Markovich
Date: Thursday, October 26, 2017 at 12:56 PM
To: Swapan Shridhar
Cc: "user@ambari.apache.org<ma...@ambari.apache.org>"
Subject: Re: How to change cluster-env from stack_adviser or service_adviser
Hi Swapan!
Thank you for your answer.
I'd like to use ranger plugins for hdfs,hive and etc in my service.
That's why i need to set enable_external_ranger = true in cluster-env. Without this properity I can't see ranger plugin configs and can't update them. (for example ranger-hdfs-audit.)
I need to ebable this in service_adviser, so I can recommend changes to this configs.
May be you can advise me another solution?
Regards,
Andrey
2017-10-26 21:09 GMT+03:00 Swapan Shridhar <ss...@hortonworks.com>>:
Hi Markovich,
There is no way of changing 'cluster-env' from stack-advisor (SA) or service_advisor.
cluster-env is passed as services['configurations']['cluster-env']['properties'] to SA, but even if we update value in stack-advisor, it will never get propagated finally.
Can you explain on why you would like to have a config related to a customer service in cluster-env and not in the service's site itself ?
Further cluster-env can be changed using (for reference) :
==============================================================================================================================================
Eg: /var/lib/ambari-server/resources/scripts/configs.py -a set -l localhost -n c1 -c cluster-env -k "recovery_retry_interval" -v "10"
Ref: /var/lib/ambari-server/resources/scripts/configs.py -a <ACTION> -l <HOSTNAME> -n <CLUSTER_NAME> -c <CONFIG_TYPE> -k "<CONFIG_NAME>" -v "<CONFIG_VALUE>"
URL: https://cwiki.apache.org/confluence/display/AMBARI/Modify+configurations
==============================================================================================================================================
Thanks.
Regards,
Swapan.
From: Markovich
Reply-To: "user@ambari.apache.org<ma...@ambari.apache.org>"
Date: Thursday, October 26, 2017 at 4:10 AM
To: "user@ambari.apache.org<ma...@ambari.apache.org>"
Subject: Re: How to change cluster-env from stack_adviser or service_adviser
Any help?
How can I change cluster-env propertie for my custom service?
Regards,
Andrey
2017-10-21 22:48 GMT+03:00 Markovich <am...@gmail.com>>:
Hello!
Is it possible to modify cluster-env form service_adviser?
Regards,
Andrey
Re: How to change cluster-env from stack_adviser or service_adviser
Posted by Markovich <am...@gmail.com>.
Hi Swapan!
Thank you for your answer.
I'd like to use ranger plugins for hdfs,hive and etc in my service.
That's why i need to set enable_external_ranger = true in cluster-env.
Without this properity I can't see ranger plugin configs and can't update
them. (for example ranger-hdfs-audit.)
I need to ebable this in service_adviser, so I can recommend changes to
this configs.
May be you can advise me another solution?
Regards,
Andrey
2017-10-26 21:09 GMT+03:00 Swapan Shridhar <ss...@hortonworks.com>:
>
> Hi Markovich,
>
> There is no way of changing 'cluster-env' from stack-advisor (SA) or
> service_advisor.
>
> cluster-env is passed as
> *services['configurations']['cluster-env']['properties']* to SA, but even
> if we update value in stack-advisor, it will never get propagated finally.
>
> *Can you explain on why you would like to have a config related to a
> customer service in cluster-env and not in the service's site itself ? *
>
> Further cluster-env can be changed using (for reference) :
>
>
> *==============================================================================================================================================*
> *Eg:* /var/lib/ambari-server/resources/scripts/configs.py -a set -l
> localhost -n c1 -c cluster-env -k "recovery_retry_interval" -v "10"
>
> *Ref:* /var/lib/ambari-server/resources/scripts/configs.py -a <ACTION> -l
> <HOSTNAME> -n <CLUSTER_NAME> -c <CONFIG_TYPE> -k "<CONFIG_NAME>" -v
> "<CONFIG_VALUE>"
>
> *URL:* https://cwiki.apache.org/confluence/display/AMBARI/
> Modify+configurations
>
> *==============================================================================================================================================*
>
> Thanks.
>
> Regards,
> Swapan.
>
>
> From: Markovich
> Reply-To: "user@ambari.apache.org"
> Date: Thursday, October 26, 2017 at 4:10 AM
> To: "user@ambari.apache.org"
> Subject: Re: How to change cluster-env from stack_adviser or
> service_adviser
>
> Any help?
>
> How can I change cluster-env propertie for my custom service?
>
> Regards,
> Andrey
>
> 2017-10-21 22:48 GMT+03:00 Markovich <am...@gmail.com>:
>
>> Hello!
>>
>> Is it possible to modify cluster-env form service_adviser?
>>
>> Regards,
>> Andrey
>>
>
>
Re: How to change cluster-env from stack_adviser or service_adviser
Posted by Swapan Shridhar <ss...@hortonworks.com>.
Hi Markovich,
There is no way of changing 'cluster-env' from stack-advisor (SA) or service_advisor.
cluster-env is passed as services['configurations']['cluster-env']['properties'] to SA, but even if we update value in stack-advisor, it will never get propagated finally.
Can you explain on why you would like to have a config related to a customer service in cluster-env and not in the service's site itself ?
Further cluster-env can be changed using (for reference) :
==============================================================================================================================================
Eg: /var/lib/ambari-server/resources/scripts/configs.py -a set -l localhost -n c1 -c cluster-env -k "recovery_retry_interval" -v "10"
Ref: /var/lib/ambari-server/resources/scripts/configs.py -a <ACTION> -l <HOSTNAME> -n <CLUSTER_NAME> -c <CONFIG_TYPE> -k "<CONFIG_NAME>" -v "<CONFIG_VALUE>"
URL: https://cwiki.apache.org/confluence/display/AMBARI/Modify+configurations
==============================================================================================================================================
Thanks.
Regards,
Swapan.
From: Markovich
Reply-To: "user@ambari.apache.org<ma...@ambari.apache.org>"
Date: Thursday, October 26, 2017 at 4:10 AM
To: "user@ambari.apache.org<ma...@ambari.apache.org>"
Subject: Re: How to change cluster-env from stack_adviser or service_adviser
Any help?
How can I change cluster-env propertie for my custom service?
Regards,
Andrey
2017-10-21 22:48 GMT+03:00 Markovich <am...@gmail.com>>:
Hello!
Is it possible to modify cluster-env form service_adviser?
Regards,
Andrey
Re: How to change cluster-env from stack_adviser or service_adviser
Posted by Markovich <am...@gmail.com>.
Any help?
How can I change cluster-env propertie for my custom service?
Regards,
Andrey
2017-10-21 22:48 GMT+03:00 Markovich <am...@gmail.com>:
> Hello!
>
> Is it possible to modify cluster-env form service_adviser?
>
> Regards,
> Andrey
>