<?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: hue is not allowed to impersonate (403) in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164148#M126518</link>
    <description>&lt;P&gt;I have done this before. But through the command line. Seems that didn't save the changes or something. After checking and applying I still get a similar error.&lt;/P&gt;&lt;P&gt;Error here:&lt;/P&gt;&lt;PRE&gt;Exception Type: WebHdfsException at /filebrowser/
Exception Value: SecurityException: Failed to obtain user group information: org.apache.hadoop.security.authorize.AuthorizationException: Unauthorized connection for super-user: hue from IP 127.0.0.1 (error 403)
&lt;/PRE&gt;&lt;P&gt;Seems like the solution for this is exactly the same you handed to me. But its not working. Is there something else I can do?&lt;/P&gt;&lt;P&gt;By the way, thank for the help so far.&lt;/P&gt;</description>
    <pubDate>Mon, 11 Apr 2016 04:54:39 GMT</pubDate>
    <dc:creator>agfloresbu_inf</dc:creator>
    <dc:date>2016-04-11T04:54:39Z</dc:date>
    <item>
      <title>hue is not allowed to impersonate (403)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164146#M126516</link>
      <description>&lt;P&gt;
	Hi!&lt;/P&gt;&lt;P&gt;
	this is what i have installed, from "About Hue" page:&lt;/P&gt;&lt;TABLE&gt;
    &lt;TBODY&gt;
        &lt;TR&gt;
            &lt;TD&gt;Hue&lt;/TD&gt;
            &lt;TD&gt;2.6.1-3485&lt;/TD&gt;
        &lt;/TR&gt;
        &lt;TR&gt;
            &lt;TD&gt;HDP&lt;/TD&gt;
            &lt;TD&gt;2.3.4&lt;/TD&gt;
        &lt;/TR&gt;
        &lt;TR&gt;
            &lt;TD&gt;Hadoop&lt;/TD&gt;
            &lt;TD&gt;2.7.1&lt;/TD&gt;
        &lt;/TR&gt;
        &lt;TR&gt;
            &lt;TD&gt;Pig&lt;/TD&gt;
            &lt;TD&gt;0.15.0&lt;/TD&gt;
        &lt;/TR&gt;
        &lt;TR&gt;
            &lt;TD&gt;Hive-Hcatalog&lt;/TD&gt;
            &lt;TD&gt;1.2.1&lt;/TD&gt;
        &lt;/TR&gt;
        &lt;TR&gt;
            &lt;TD&gt;Oozie&lt;/TD&gt;
            &lt;TD&gt;4.2.0&lt;/TD&gt;
        &lt;/TR&gt;
        &lt;TR&gt;
            &lt;TD&gt;Ambari&lt;/TD&gt;
            &lt;TD&gt;2.2.1&lt;/TD&gt;
        &lt;/TR&gt;
        &lt;TR&gt;
            &lt;TD&gt;HBase&lt;/TD&gt;
            &lt;TD&gt;1.1.2&lt;/TD&gt;
        &lt;/TR&gt;
        &lt;TR&gt;
            &lt;TD&gt;Knox&lt;/TD&gt;
            &lt;TD&gt;0.6.0&lt;/TD&gt;
        &lt;/TR&gt;
        &lt;TR&gt;
            &lt;TD&gt;Storm&lt;/TD&gt;
            &lt;TD&gt;0.10.0&lt;/TD&gt;
        &lt;/TR&gt;
        &lt;TR&gt;
            &lt;TD&gt;Falcon&lt;/TD&gt;
            &lt;TD&gt;0.6.1&lt;/TD&gt;
        &lt;/TR&gt;
    &lt;/TBODY&gt;
&lt;/TABLE&gt;&lt;P&gt;
	
I have been trying to fix this error that shows whenever I try to access the filebrowser in HUE:&lt;/P&gt;
&lt;PRE&gt;Traceback:
File "/usr/lib/hue/build/env/lib/python2.6/site-packages/Django-1.2.3-py2.6.egg/django/core/handlers/base.py" in get_response
  100.                     response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/hue/apps/filebrowser/src/filebrowser/views.py" in index
  97.   if not request.fs.isdir(path):
File "/usr/lib/hue/desktop/libs/hadoop/src/hadoop/fs/webhdfs.py" in isdir
  220.     sb = self._stats(path)
File "/usr/lib/hue/desktop/libs/hadoop/src/hadoop/fs/webhdfs.py" in _stats
  205.       raise ex
Exception Type: WebHdfsException at /filebrowser/
Exception Value: SecurityException: Failed to obtain user group information: org.apache.hadoop.security.authorize.AuthorizationException: User: hue is not allowed to impersonate hue (error 403)
&lt;/PRE&gt;&lt;P&gt;
	'hue' is the first user in hue, so it is superuser.&lt;/P&gt;&lt;P&gt;
	Installation and configuration, has been done following intructions in this link:&lt;/P&gt;&lt;P&gt;
	&lt;A target="_blank" href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.0/bk_installing_manually_book/content/ch_installing_hue_chapter.html"&gt;https://docs.hortonworks.com/../HDP-2.3.0/bk_installing_manually_book/../ch_installing_hue_chapter.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But i have tryed even cloudera's tuts, but didn't success.&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;P&gt;Can you help me fix this, so I can access filebrowser, hcatalog and beeswax...&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2016 04:37:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164146#M126516</guid>
      <dc:creator>agfloresbu_inf</dc:creator>
      <dc:date>2016-04-10T04:37:11Z</dc:date>
    </item>
    <item>
      <title>Re: hue is not allowed to impersonate (403)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164147#M126517</link>
      <description>&lt;P&gt;Please go to hdfs &amp;gt; config &amp;gt; custom core site and add &lt;/P&gt;&lt;P&gt;Hadoop.proxyuser.hue.hosts = *&lt;/P&gt;&lt;P&gt;hadoop.proxyuser.hue.groups = *&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_installing_manually_book/content/configure_hdp_hue.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_installing_manually_book/content/configure_hdp_hue.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 10 Apr 2016 05:17:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164147#M126517</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-04-10T05:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: hue is not allowed to impersonate (403)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164148#M126518</link>
      <description>&lt;P&gt;I have done this before. But through the command line. Seems that didn't save the changes or something. After checking and applying I still get a similar error.&lt;/P&gt;&lt;P&gt;Error here:&lt;/P&gt;&lt;PRE&gt;Exception Type: WebHdfsException at /filebrowser/
Exception Value: SecurityException: Failed to obtain user group information: org.apache.hadoop.security.authorize.AuthorizationException: Unauthorized connection for super-user: hue from IP 127.0.0.1 (error 403)
&lt;/PRE&gt;&lt;P&gt;Seems like the solution for this is exactly the same you handed to me. But its not working. Is there something else I can do?&lt;/P&gt;&lt;P&gt;By the way, thank for the help so far.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 04:54:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164148#M126518</guid>
      <dc:creator>agfloresbu_inf</dc:creator>
      <dc:date>2016-04-11T04:54:39Z</dc:date>
    </item>
    <item>
      <title>Re: hue is not allowed to impersonate (403)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164149#M126519</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/4775/agfloresbuinf.html" nodeid="4775"&gt;@Abiel Flrs&lt;/A&gt; &lt;/P&gt;&lt;P&gt;You need to modify the properties from Ambari and restart any stale services afterwards.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 16:02:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164149#M126519</guid>
      <dc:creator>sayankh</dc:creator>
      <dc:date>2016-04-11T16:02:30Z</dc:date>
    </item>
    <item>
      <title>Re: hue is not allowed to impersonate (403)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164150#M126520</link>
      <description>&lt;P&gt;Ambari overwrites the configs in xml files. You need to use Ambari to add those properties (and make any changes in the configuration in the future)&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 17:36:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164150#M126520</guid>
      <dc:creator>frank93</dc:creator>
      <dc:date>2016-04-11T17:36:48Z</dc:date>
    </item>
    <item>
      <title>Re: hue is not allowed to impersonate (403)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164151#M126521</link>
      <description>&lt;P&gt;
	Yes, &lt;/P&gt;&lt;P&gt;
	What I meant is that I had done it from the command line, but then 
	&lt;A href="https://community.hortonworks.com/questions/26792/hue-is-not-allowed-to-impersonate-403.html#"&gt;@Artem Ervits&lt;/A&gt; told me to change it. Since his indications are not for command line ("hdfs &amp;gt; config &amp;gt; custom core site"), I did it through ambari configuration, restarted all affected services, and restarted hue from command line. Then tryied again, and this is what shows up:&lt;/P&gt;&lt;PRE&gt;Unauthorized connection for super-user&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Apr 2016 21:35:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164151#M126521</guid>
      <dc:creator>agfloresbu_inf</dc:creator>
      <dc:date>2016-04-11T21:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: hue is not allowed to impersonate (403)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164152#M126522</link>
      <description>&lt;P&gt;Yes, I used ambari to change those parameters.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Apr 2016 21:36:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164152#M126522</guid>
      <dc:creator>agfloresbu_inf</dc:creator>
      <dc:date>2016-04-11T21:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: hue is not allowed to impersonate (403)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164153#M126523</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/4775/agfloresbuinf.html" nodeid="4775"&gt;@Abiel Flrs&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please check the values set for the following two properties from Ambari.&lt;/P&gt;&lt;PRE&gt;hive.server2.enable.impersonation
dfs.webhdfs.enabled
&lt;/PRE&gt;</description>
      <pubDate>Mon, 11 Apr 2016 22:49:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164153#M126523</guid>
      <dc:creator>sayankh</dc:creator>
      <dc:date>2016-04-11T22:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: hue is not allowed to impersonate (403)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164154#M126524</link>
      <description>&lt;P&gt;value is true in both cases.&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 00:02:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164154#M126524</guid>
      <dc:creator>agfloresbu_inf</dc:creator>
      <dc:date>2016-04-12T00:02:16Z</dc:date>
    </item>
    <item>
      <title>Re: hue is not allowed to impersonate (403)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164155#M126525</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/4775/agfloresbuinf.html" nodeid="4775"&gt;@Abiel Flrs&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Check the OS level user/group mapping as well.&lt;/P&gt;&lt;PRE&gt;# id hue
# grep hue /etc/passwd
# grep hue /etc/group&lt;/PRE&gt;</description>
      <pubDate>Tue, 12 Apr 2016 00:34:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164155#M126525</guid>
      <dc:creator>sayankh</dc:creator>
      <dc:date>2016-04-12T00:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: hue is not allowed to impersonate (403)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164156#M126526</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/4775/agfloresbuinf.html" nodeid="4775"&gt;@Abiel Flrs&lt;/A&gt;  The error  "User: hue is not allowed to impersonate hue"  also signifies that there is no home directory exist for user hue on HDFS.&lt;/P&gt;&lt;P&gt;You can do create (by logging in hdfs user)&lt;/P&gt;&lt;P&gt;su - hdfs -c "hdfs dfs -mkdir /user/hue"&lt;/P&gt;&lt;P&gt;su - hdfs -c "hdfs dfs -chown hue:hadoop /user/hue"  [ Or you can make group owner as hdfs ]&lt;/P&gt;&lt;P&gt;su - hdfs -c "hdfs dfs -chmod 755 /user/hue"&lt;/P&gt;&lt;P&gt;means hue user belongs to group hadoop/hdfs&lt;/P&gt;&lt;P&gt;The other error (Only in case of secure Cluster ) ExceptionType:WebHdfsException  Security exception may occur&lt;/P&gt;&lt;P&gt;if this is not set for WebHDFS Authorization:  auth=KERBEROS;proxyuser=hue&lt;/P&gt;&lt;P&gt;If you are trying access hive by any chance from hue set this param  hive.server2.enable.impersonation&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 19:27:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164156#M126526</guid>
      <dc:creator>dchiguruvad</dc:creator>
      <dc:date>2016-04-12T19:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: hue is not allowed to impersonate (403)</title>
      <link>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164157#M126527</link>
      <description>&lt;P&gt;This helped me access HCatalog, and besswax, thank you.&lt;/P&gt;&lt;P&gt;In addition to your suggestion I also changed the datanode directories permissions from 750 to 755. Not sure if "not recommended".&lt;/P&gt;&lt;P&gt;But until now, I am unable to access the filebrowser...&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 04:38:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/hue-is-not-allowed-to-impersonate-403/m-p/164157#M126527</guid>
      <dc:creator>agfloresbu_inf</dc:creator>
      <dc:date>2016-04-13T04:38:39Z</dc:date>
    </item>
  </channel>
</rss>

