<?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 query ambari internal variable? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-query-ambari-internal-variable/m-p/159340#M24563</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/326/afernandez.html" nodeid="326"&gt;@Alejandro Fernandez&lt;/A&gt; does this work the same for Ranger 0.6.0 or is that specific to Ranger 0.4.0?&lt;/P&gt;</description>
    <pubDate>Tue, 08 Nov 2016 22:28:53 GMT</pubDate>
    <dc:creator>slachterman</dc:creator>
    <dc:date>2016-11-08T22:28:53Z</dc:date>
    <item>
      <title>How to query ambari internal variable?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-query-ambari-internal-variable/m-p/159336#M24559</link>
      <description>&lt;P&gt;Config_Type "ranger-hive-audit" /Config_Key "xasecure.audit.destination.db.jdbc.url"  is defined as  "{{audit_jdbc_url}}". Where can I find the value of {{audit_jdbc_url}} and how could I change it?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 00:24:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-query-ambari-internal-variable/m-p/159336#M24559</guid>
      <dc:creator>ScipioTheElder</dc:creator>
      <dc:date>2016-04-07T00:24:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to query ambari internal variable?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-query-ambari-internal-variable/m-p/159337#M24560</link>
      <description>&lt;P&gt;Whenever you see a property enclosed by {{ }} it means that the value is interpreted dynamically by reading params.py or params_linux.py&lt;/P&gt;&lt;P&gt;E.g., &lt;A href="https://github.com/apache/ambari/blob/release-2.2.1-rc2/ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/params.py#L120-L148" target="_blank"&gt;https://github.com/apache/ambari/blob/release-2.2.1-rc2/ambari-server/src/main/resources/common-services/RANGER/0.4.0/package/scripts/params.py#L120-L148&lt;/A&gt;

To change it, you can either modify params*.py to use different logic, edit the value in the Config tab of the UI from the Service Dashboard page, or use configs.sh to edit directly (which calls the API).&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 00:44:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-query-ambari-internal-variable/m-p/159337#M24560</guid>
      <dc:creator>afernandez</dc:creator>
      <dc:date>2016-04-07T00:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to query ambari internal variable?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-query-ambari-internal-variable/m-p/159338#M24561</link>
      <description>&lt;P&gt;Thanks. I wonder how Ranger plugins pick up the changes on Ranger. My understanding is that HDFS NN still looks at configuration files in /etc/hadoop/conf. Property xasecure.audit.destination.db.jdbc.url defined in Ranger HDFS NN plugin  ranger-hdfs-audit.xml  is not changed even though audit_jdbc_url has been changed. The xml file should be changed by Ambari once Ranger DB host is changed.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 01:33:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-query-ambari-internal-variable/m-p/159338#M24561</guid>
      <dc:creator>ScipioTheElder</dc:creator>
      <dc:date>2016-04-07T01:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to query ambari internal variable?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-query-ambari-internal-variable/m-p/159339#M24562</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/26238/how-to-query-ambari-internal-variable.html#"&gt;@wayne2chicago&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You will need to make changes in multiple places to achieve this:&lt;/P&gt;&lt;P&gt;1. Change the code as pointed by &lt;A rel="user" href="https://community.cloudera.com/users/326/afernandez.html" nodeid="326"&gt;@Alejandro Fernandez&lt;/A&gt;: link&lt;/P&gt;&lt;P&gt;2. Now to make this reflect for HDFS, you will need to make similar change at &lt;A href="https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/common-services/HDFS/2.1.0.2.0/package/scripts/params_linux.py#L435-L458"&gt;link&lt;/A&gt;&lt;/P&gt;&lt;P&gt;3. Same code snippet exists in all service's params_linux.py which supports Ranger. you will need to make changes in all such places.&lt;/P&gt;&lt;P&gt;4. You need to make sure the changes you did reaches to all ambari-agents on deployed cluster. So do these changes to the files at /var/lib/ambari-server/resources/* location on ambari-server host and finally restart ambari-server. This will push changes to all nodes on the cluster. &lt;/P&gt;&lt;P&gt;5 At this point changing Ranger DB host config via Ambari and restarting a HDFS component on a host via Ambari will change  "xasecure.audit.destination.db.jdbc.url" in "ranger-hdfs-audit". Same applies for other ranger supported services.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Apr 2016 02:22:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-query-ambari-internal-variable/m-p/159339#M24562</guid>
      <dc:creator>jaimin</dc:creator>
      <dc:date>2016-04-29T02:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to query ambari internal variable?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-query-ambari-internal-variable/m-p/159340#M24563</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/326/afernandez.html" nodeid="326"&gt;@Alejandro Fernandez&lt;/A&gt; does this work the same for Ranger 0.6.0 or is that specific to Ranger 0.4.0?&lt;/P&gt;</description>
      <pubDate>Tue, 08 Nov 2016 22:28:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-query-ambari-internal-variable/m-p/159340#M24563</guid>
      <dc:creator>slachterman</dc:creator>
      <dc:date>2016-11-08T22:28:53Z</dc:date>
    </item>
  </channel>
</rss>

