<?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: Spark Settings with Ambari: Can't find corresponding config files on host in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Settings-with-Ambari-Can-t-find-corresponding-config/m-p/210170#M59975</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/17662/dmueller1607.html" nodeid="17662"&gt;@Daniel Müller&lt;/A&gt; look for these properties (the ones present in hive-site.xml) on Hive's config page, not Spark, within Ambari.&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2017 13:09:09 GMT</pubDate>
    <dc:creator>adoroszlai</dc:creator>
    <dc:date>2017-04-25T13:09:09Z</dc:date>
    <item>
      <title>Spark Settings with Ambari: Can't find corresponding config files on host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Settings-with-Ambari-Can-t-find-corresponding-config/m-p/210168#M59973</link>
      <description>&lt;P&gt;
	I need to set some custom Spark configurations (e.g. &lt;STRONG&gt;hive.metastore.sasl.enabled&lt;/STRONG&gt; in &lt;B&gt;hive-site.xml&lt;/B&gt;). The file /usr/hdp/current/spark-client/conf/hive-site.xml seems to be the corresponding config file for this settings. It also contains the property:&lt;/P&gt;
&lt;PRE&gt;&amp;lt;configuration&amp;gt;
   &amp;lt;property&amp;gt;
     &amp;lt;name&amp;gt;hive.metastore.sasl.enabled&amp;lt;/name&amp;gt;
     &amp;lt;value&amp;gt;true&amp;lt;/value&amp;gt;
   &amp;lt;/property&amp;gt;
...
&amp;lt;/configuration&amp;gt;
&lt;/PRE&gt;&lt;P&gt;
	The problem that I have, is that I can't find this property in my Spark Settings in Ambari UI! I need to set this (and some more) property via Ambari UI, to avoid a loss of these configurations after restarting the Spark component (a restart resets the config files according to the Ambari settings. And as I can't see this setting on Ambari UI I have no chance to set this persistent). How are these files and Ambari configs matched?&lt;/P&gt;&lt;P&gt;
	And is there a possibility to set these configurations programmatically (Java) without using stuff like SparkContext or HiveContext, but e.g. System.setProperty(...)? Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 01:15:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Settings-with-Ambari-Can-t-find-corresponding-config/m-p/210168#M59973</guid>
      <dc:creator>dmueller1607</dc:creator>
      <dc:date>2017-04-25T01:15:12Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Settings with Ambari: Can't find corresponding config files on host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Settings-with-Ambari-Can-t-find-corresponding-config/m-p/210169#M59974</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/98207/spark-settings-with-ambari-cant-find-corresponding.html#"&gt;@Daniel Müller&lt;/A&gt; this is a general comment so it might not help, but there's a set of custom property boxes under the Spark service Configs tab, including one called Custom spark-hive-site-override. The Spark guide describes a similar custom property step (for doAs support) on the following page in the Spark guide, under the Ambari subsection:&lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.0/bk_spark-component-guide/content/config-sts-user-imp.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.0/bk_spark-component-guide/content/config-sts-user-imp.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 02:41:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Settings-with-Ambari-Can-t-find-corresponding-config/m-p/210169#M59974</guid>
      <dc:creator>lgeorge</dc:creator>
      <dc:date>2017-04-25T02:41:18Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Settings with Ambari: Can't find corresponding config files on host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Settings-with-Ambari-Can-t-find-corresponding-config/m-p/210170#M59975</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/17662/dmueller1607.html" nodeid="17662"&gt;@Daniel Müller&lt;/A&gt; look for these properties (the ones present in hive-site.xml) on Hive's config page, not Spark, within Ambari.&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 13:09:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Settings-with-Ambari-Can-t-find-corresponding-config/m-p/210170#M59975</guid>
      <dc:creator>adoroszlai</dc:creator>
      <dc:date>2017-04-25T13:09:09Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Settings with Ambari: Can't find corresponding config files on host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Settings-with-Ambari-Can-t-find-corresponding-config/m-p/210171#M59976</link>
      <description>&lt;P&gt;I was able to find all properties from Spark's hive-site.xml here. &lt;/P&gt;&lt;P&gt;What I'm wondering about now is why do I have two different files&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;/etc/hive/conf/hive-site.xml&lt;/LI&gt;&lt;LI&gt;/usr/hdp/current/spark-client/conf/hive-site.xml&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;when both contain some equal properties e.g.&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
   &amp;lt;name&amp;gt;hive.server2.authentication.kerberos.principal&amp;lt;/name&amp;gt;
   &amp;lt;value&amp;gt;hive/_HOST@MYREALM.COM&amp;lt;/value&amp;gt;
 &amp;lt;/property&amp;gt;
&lt;/PRE&gt;&lt;P&gt;and are also both changed when I edit the property via Ambari Hive config (as the Ambari Spark configs don't list them)?&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 13:54:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Settings-with-Ambari-Can-t-find-corresponding-config/m-p/210171#M59976</guid>
      <dc:creator>dmueller1607</dc:creator>
      <dc:date>2017-04-25T13:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Spark Settings with Ambari: Can't find corresponding config files on host</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Settings-with-Ambari-Can-t-find-corresponding-config/m-p/210172#M59977</link>
      <description>&lt;P&gt;So, however the solution to change Spark's hive-site.xml file persistently (survive Spark service restarts) is to find them in Ambari &lt;STRONG&gt;Hive Configs&lt;/STRONG&gt; and change them here. After restarting the Hive and afterwards the Spark component via Ambari, the Spark config file /usr/hdp/current/spark-client/conf/hive-site.xml is also updated from these values set in the Ambari Hive configs. Thank you &lt;A rel="user" href="https://community.cloudera.com/users/13035/adoroszlai.html" nodeid="13035"&gt;@Doroszlai, Attila&lt;/A&gt;! See also the comment above: &lt;A href="https://community.hortonworks.com/answers/98279/view.html" target="_blank"&gt;https://community.hortonworks.com/answers/98279/view.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 14:16:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-Settings-with-Ambari-Can-t-find-corresponding-config/m-p/210172#M59977</guid>
      <dc:creator>dmueller1607</dc:creator>
      <dc:date>2017-04-25T14:16:44Z</dc:date>
    </item>
  </channel>
</rss>

