<?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: 401 Unauthorized Error Livy Hue in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/401-Unauthorized-Error-Livy-Hue/m-p/51660#M18874</link>
    <description>Just below this,&lt;BR /&gt;&lt;A href="https://github.com/cloudera/hue/blob/master/apps/spark/src/spark/job_server_api.py#L57" target="_blank"&gt;https://github.com/cloudera/hue/blob/master/apps/spark/src/spark/job_server_api.py#L57&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Could you try to add&lt;BR /&gt;self._client.set_kerberos_auth()&lt;BR /&gt;&lt;BR /&gt;Coming with &lt;A href="https://issues.cloudera.org/browse/HUE-5994" target="_blank"&gt;https://issues.cloudera.org/browse/HUE-5994&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 01 Mar 2017 18:42:54 GMT</pubDate>
    <dc:creator>Romainr</dc:creator>
    <dc:date>2017-03-01T18:42:54Z</dc:date>
    <item>
      <title>401 Unauthorized Error Livy+ Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/401-Unauthorized-Error-Livy-Hue/m-p/51530#M18872</link>
      <description>&lt;P&gt;Hi Team, I recently configured Hue 3.11 with all backend configuration for Hive / WebHDFS etc. However while configuring Spaky/ Livy connectivity on Hue, I am getting 401 unauthorized under "Notebook" section on Hue and also while fetching session data through curl command. Below is the error that I am getting on command line: # curl&amp;nbsp; &lt;A href="http://localhost:8998/sessions" target="_blank"&gt;http://localhost:8998/sessions&lt;/A&gt; &amp;lt;meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" /&amp;gt; Error 401 HTTP ERROR: 401&lt;/P&gt;&lt;P&gt;Problem accessing /sessions. Reason:&lt;/P&gt;&lt;PRE&gt;&amp;nbsp; &amp;nbsp; Authentication required&lt;/PRE&gt;&lt;HR /&gt;&lt;P&gt;&lt;I&gt;Powered by Jetty://&lt;/I&gt; Below is the error from Hue: &amp;lt;meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1" /&amp;gt; Error 401 HTTP ERROR: 401&lt;/P&gt;&lt;P&gt;Problem accessing /sessions. Reason:&lt;/P&gt;&lt;PRE&gt; Authentication required&lt;/PRE&gt;&lt;HR /&gt;&lt;P&gt;&lt;I&gt;Powered by Jetty://&lt;/I&gt; (error 401) Note : Cluster is kerberized. &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Livy is configured with spnego kerberos principal /keytab as well as livy kerberos princial /keytab &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; Can someone help on this ? Regards Ajay Rathod&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:09:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/401-Unauthorized-Error-Livy-Hue/m-p/51530#M18872</guid>
      <dc:creator>arathod</dc:creator>
      <dc:date>2022-09-16T11:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: 401 Unauthorized Error Livy Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/401-Unauthorized-Error-Livy-Hue/m-p/51534#M18873</link>
      <description>Could you confirm on &lt;A href="http://groups.google.com/a/cloudera.org/group/livy-user" target="_blank"&gt;http://groups.google.com/a/cloudera.org/group/livy-user&lt;/A&gt;&lt;BR /&gt;if Livy supports Kerberos?&lt;BR /&gt;</description>
      <pubDate>Tue, 28 Feb 2017 02:22:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/401-Unauthorized-Error-Livy-Hue/m-p/51534#M18873</guid>
      <dc:creator>Romainr</dc:creator>
      <dc:date>2017-02-28T02:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: 401 Unauthorized Error Livy Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/401-Unauthorized-Error-Livy-Hue/m-p/51660#M18874</link>
      <description>Just below this,&lt;BR /&gt;&lt;A href="https://github.com/cloudera/hue/blob/master/apps/spark/src/spark/job_server_api.py#L57" target="_blank"&gt;https://github.com/cloudera/hue/blob/master/apps/spark/src/spark/job_server_api.py#L57&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Could you try to add&lt;BR /&gt;self._client.set_kerberos_auth()&lt;BR /&gt;&lt;BR /&gt;Coming with &lt;A href="https://issues.cloudera.org/browse/HUE-5994" target="_blank"&gt;https://issues.cloudera.org/browse/HUE-5994&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Mar 2017 18:42:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/401-Unauthorized-Error-Livy-Hue/m-p/51660#M18874</guid>
      <dc:creator>Romainr</dc:creator>
      <dc:date>2017-03-01T18:42:54Z</dc:date>
    </item>
    <item>
      <title>Re: 401 Unauthorized Error Livy Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/401-Unauthorized-Error-Livy-Hue/m-p/51661#M18875</link>
      <description>Thanks Romain,&lt;BR /&gt;&lt;BR /&gt;This helped me in fixing the issue.&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Ajay Rathod</description>
      <pubDate>Wed, 01 Mar 2017 18:59:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/401-Unauthorized-Error-Livy-Hue/m-p/51661#M18875</guid>
      <dc:creator>arathod</dc:creator>
      <dc:date>2017-03-01T18:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: 401 Unauthorized Error Livy Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/401-Unauthorized-Error-Livy-Hue/m-p/71758#M18876</link>
      <description>Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/181"&gt;@Romainr&lt;/a&gt;, in which section/configuration file I should set this parameter ( self._client.set_kerberos_auth() ) into Hue Service? Many thanks! Alex</description>
      <pubDate>Thu, 12 Jul 2018 15:32:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/401-Unauthorized-Error-Livy-Hue/m-p/71758#M18876</guid>
      <dc:creator>AlexPQ</dc:creator>
      <dc:date>2018-07-12T15:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: 401 Unauthorized Error Livy Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/401-Unauthorized-Error-Livy-Hue/m-p/71772#M18877</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/25729"&gt;@AlexPQ&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Based on the referenced Jira, kerberos auth is now configurable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In CDH 5.11.0 and higher, you can enable kerberos auth in hue.ini:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[spark]&lt;/P&gt;&lt;P&gt;&lt;SPAN class="pl-c"&gt;security_enabled=&lt;/SPAN&gt;true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 18:05:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/401-Unauthorized-Error-Livy-Hue/m-p/71772#M18877</guid>
      <dc:creator>bgooley</dc:creator>
      <dc:date>2018-07-12T18:05:05Z</dc:date>
    </item>
    <item>
      <title>Re: 401 Unauthorized Error Livy Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/401-Unauthorized-Error-Livy-Hue/m-p/71780#M18878</link>
      <description>Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/4054"&gt;@bgooley&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;Thanks a lot for the information!&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;&lt;BR /&gt;Alex</description>
      <pubDate>Thu, 12 Jul 2018 21:14:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/401-Unauthorized-Error-Livy-Hue/m-p/71780#M18878</guid>
      <dc:creator>AlexPQ</dc:creator>
      <dc:date>2018-07-12T21:14:46Z</dc:date>
    </item>
    <item>
      <title>Re: 401 Unauthorized Error Livy Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/401-Unauthorized-Error-Livy-Hue/m-p/80544#M18879</link>
      <description>&lt;P&gt;The parameter:&lt;BR /&gt;[spark]&lt;BR /&gt;security_enabled=true&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;need to be added in Cloudera Manager Hue configuration to the below section:&lt;BR /&gt;Hue Service Advanced Configuration Snippet (Safety Valve) for hue_safety_valve.ini&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However it still gave an error:&amp;nbsp;&lt;STRONG&gt;Unable to authenticate . &lt;/STRONG&gt;The Hue Admin screen showed a misconfiguration in Spark: The app wont work without a running Livy Spark Server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also in&amp;nbsp; /var/log/hue/error.log below message was present:&lt;/P&gt;&lt;P&gt;GSSError: (('Unspecified GSS failure.&amp;nbsp; Minor code may provide more information', 851968), ('Server HTTP/localhost@EXAMPLE.COM not found in Kerberos database', -1765328377))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;These errors were resolved by adding the line to the to the Hue Safety valve above:&lt;/P&gt;&lt;P&gt;[spark]&lt;/P&gt;&lt;P&gt;security_enabled=true&lt;/P&gt;&lt;P&gt;livy_server_host=yourlivyhostfqdn&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Oct 2018 18:34:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/401-Unauthorized-Error-Livy-Hue/m-p/80544#M18879</guid>
      <dc:creator>ebeb</dc:creator>
      <dc:date>2018-10-02T18:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: 401 Unauthorized Error Livy Hue</title>
      <link>https://community.cloudera.com/t5/Support-Questions/401-Unauthorized-Error-Livy-Hue/m-p/89055#M18880</link>
      <description>&lt;P&gt;Dear Romainr：&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; I follow your advise to&amp;nbsp;modify the srcCode and made the hue3.9 notebook worked on my CDH5.7.1&amp;nbsp;Kerberized cluster with livy0.5.0.Now i can using spark-shell on notebook and its run well.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; but on yarn i saw the spark job user was always livy(i set livy be a haddop.proxyuser), seems its bind on the user which the keytab of livy-server-luancher. so i can't&amp;nbsp;&lt;SPAN&gt;control the notebook&amp;nbsp; authority by hue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; i can see the hue set proxyuser on a the token, but the spark job's user was not be reset.&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;&lt;SPAN&gt;livy-conf&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;livy.impersonation.enabled=true
livy.repl.enable-hive-context=true
livy.spark.deploy-mode=client
livy.spark.master=yarn
livy.superusers=hue
livy.server.auth.type=kerberos
livy.server.auth.kerberos.keytab=/etc/security/keytabs/spnego.keytab
livy.server.auth.kerberos.principal=HTTP/xxx.com@xxx.COM
livy.server.launch.kerberos.keytab=/etc/security/keytabs/livy.keytab
livy.server.launch.kerberos.principal=livy/xxx.com@xxx.COM&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;livy-log&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;19/04/12 14:48:14 INFO InteractiveSession$: Creating Interactive session 3: [owner: hue, request: [kind: pyspark, proxyUser: Some(baoyong), heartbeatTimeoutInSecond: 0]]
19/04/12 14:48:25 INFO LineBufferedStream: stdout: 	 client token: Token { kind: YARN_CLIENT_TOKEN, service:  }
19/04/12 14:48:25 INFO LineBufferedStream: stdout: 	 diagnostics: N/A
19/04/12 14:48:25 INFO LineBufferedStream: stdout: 	 ApplicationMaster host: 192.168.103.166
19/04/12 14:48:25 INFO LineBufferedStream: stdout: 	 ApplicationMaster RPC port: 0
19/04/12 14:48:25 INFO LineBufferedStream: stdout: 	 queue: root.livy
19/04/12 14:48:25 INFO LineBufferedStream: stdout: 	 start time: 1555051701595
19/04/12 14:48:25 INFO LineBufferedStream: stdout: 	 final status: UNDEFINED
19/04/12 14:48:25 INFO LineBufferedStream: stdout: 	 tracking URL: http://bigdata166.xxx.com:8088/proxy/application_1555044848792_0063/
19/04/12 14:48:25 INFO LineBufferedStream: stdout: 	 user: livy
19/04/12 14:48:28 INFO InteractiveSession: Interactive session 3 created [appid: application_1555044848792_0063, owner: hue, proxyUser: None, state: idle, kind: pyspark, info: {driverLogUrl=null, sparkUiUrl=null}]&lt;/PRE&gt;</description>
      <pubDate>Fri, 12 Apr 2019 09:04:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/401-Unauthorized-Error-Livy-Hue/m-p/89055#M18880</guid>
      <dc:creator>yukimojo</dc:creator>
      <dc:date>2019-04-12T09:04:41Z</dc:date>
    </item>
  </channel>
</rss>

