<?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 &amp;quot;HiveServer2 Enable Impersonation&amp;quot; setting not available via the API in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-HiveServer2-Enable-Impersonation-quot-setting-not/m-p/43067#M35406</link>
    <description>&lt;P&gt;&lt;FONT size="3"&gt;Hi, &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;I'm using the API to change the "&lt;SPAN&gt;HiveServer2 Enable Impersonation"&lt;/SPAN&gt; configuration setting of the Hive service. However the option is not accessbile through the API.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Here's the setting in the webinterface:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2016-07-21 at 13.43.00.png" style="width: 600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/1938i5C8F83C0EB5165B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2016-07-21 at 13.43.00.png" alt="Screen Shot 2016-07-21 at 13.43.00.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can change it just fine with the web interface and there I can see that it is desribed as "&lt;FONT size="3"&gt;hive_server2_enable_impersonation" and "&lt;SPAN&gt;hive.server2.enable.doAs&lt;/SPAN&gt;". &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;But when I try to change those values through the API it fails with: &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "message" : "Unknown configuration attribute 'hive_server2_enable_impersonation'."
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&amp;nbsp;I am trying with:&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;curl -X PUT -H "Content-Type:application/json" -u admin:admin "http:/localhost:7180/api/v12/clusters/My_cluster/services/hive/config" -d '{ "items" : [ { "name" : "hive_server2_enable_impersonation", "value" : "false" } ] }'


curl -X PUT -H "Content-Type:application/json" -u admin:admin "http:/localhost:7180/api/v12/clusters/My_cluster/services/hive/config" -d '{ "items" : [ { "name" : "hive.server2.enable.doAs", "value" : "false" } ] }'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I check the config json of the Hive service as returned by:&lt;/P&gt;
&lt;PRE&gt;curl -X GET -H "Content-Type:application/json" -u admin:admin"http://localhost:7180/api/v12/clusters/My_cluster/services/hive/config?view=FULL"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't see any option to change this anywhere in the result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What's going on here, isn't everything accesible through the API or was this setting just forgotten?&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 10:30:54 GMT</pubDate>
    <dc:creator>ivten</dc:creator>
    <dc:date>2022-09-16T10:30:54Z</dc:date>
    <item>
      <title>"HiveServer2 Enable Impersonation" setting not available via the API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-HiveServer2-Enable-Impersonation-quot-setting-not/m-p/43067#M35406</link>
      <description>&lt;P&gt;&lt;FONT size="3"&gt;Hi, &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;I'm using the API to change the "&lt;SPAN&gt;HiveServer2 Enable Impersonation"&lt;/SPAN&gt; configuration setting of the Hive service. However the option is not accessbile through the API.&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Here's the setting in the webinterface:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Screen Shot 2016-07-21 at 13.43.00.png" style="width: 600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/1938i5C8F83C0EB5165B5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screen Shot 2016-07-21 at 13.43.00.png" alt="Screen Shot 2016-07-21 at 13.43.00.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can change it just fine with the web interface and there I can see that it is desribed as "&lt;FONT size="3"&gt;hive_server2_enable_impersonation" and "&lt;SPAN&gt;hive.server2.enable.doAs&lt;/SPAN&gt;". &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;But when I try to change those values through the API it fails with: &lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;{
  "message" : "Unknown configuration attribute 'hive_server2_enable_impersonation'."
}&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT size="3"&gt;&amp;nbsp;I am trying with:&lt;/FONT&gt;&lt;/P&gt;
&lt;PRE&gt;curl -X PUT -H "Content-Type:application/json" -u admin:admin "http:/localhost:7180/api/v12/clusters/My_cluster/services/hive/config" -d '{ "items" : [ { "name" : "hive_server2_enable_impersonation", "value" : "false" } ] }'


curl -X PUT -H "Content-Type:application/json" -u admin:admin "http:/localhost:7180/api/v12/clusters/My_cluster/services/hive/config" -d '{ "items" : [ { "name" : "hive.server2.enable.doAs", "value" : "false" } ] }'&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;When I check the config json of the Hive service as returned by:&lt;/P&gt;
&lt;PRE&gt;curl -X GET -H "Content-Type:application/json" -u admin:admin"http://localhost:7180/api/v12/clusters/My_cluster/services/hive/config?view=FULL"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I don't see any option to change this anywhere in the result.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;What's going on here, isn't everything accesible through the API or was this setting just forgotten?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:30:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-HiveServer2-Enable-Impersonation-quot-setting-not/m-p/43067#M35406</guid>
      <dc:creator>ivten</dc:creator>
      <dc:date>2022-09-16T10:30:54Z</dc:date>
    </item>
    <item>
      <title>Re: "HiveServer2 Enable Impersonation" setting not available via the API</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-HiveServer2-Enable-Impersonation-quot-setting-not/m-p/47353#M35407</link>
      <description>&lt;P&gt;Hi... this is old, but just came across it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;hiveserver2_enable_impersonation is set at the HiveServer2 role level, so you would need to use the full path to your HiveServer2 role. &amp;nbsp;for instance:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;curl -X PUT -H "Content-Type:application/json" -u admin:admin -k "https://localhost:7183/api/v12/clusters/cluster/services/hive/roles/hive-HIVESERVER2-609b6bea2fc852513192152e64d3ec19/config" -d '{ "items" : [ { "name" : "hiveserver2_enable_impersonation", "value" : "false" } ] }'&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since the attribute does not exist at the service level (where you attempted to set it), the attribute is not found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope that might help you or others.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Mon, 14 Nov 2016 22:43:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/quot-HiveServer2-Enable-Impersonation-quot-setting-not/m-p/47353#M35407</guid>
      <dc:creator>bgooley</dc:creator>
      <dc:date>2016-11-14T22:43:32Z</dc:date>
    </item>
  </channel>
</rss>

