You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Ahzaz Hingora (Jira)" <ji...@apache.org> on 2021/05/11 05:58:00 UTC

[jira] [Commented] (HIVE-24083) hcatalog error in Hadoop 3.3.0: authentication type needed

    [ https://issues.apache.org/jira/browse/HIVE-24083?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17342320#comment-17342320 ] 

Ahzaz Hingora commented on HIVE-24083:
--------------------------------------

Hadoop 3.3.0 [changed the way AuthFilter|https://github.com/apache/hadoop/commit/4ea6c2f457496461afc63f38ef4cef3ab0efce49#diff-680cfa76ea617a05a7a414540076bf6570a82f244f46e94bd745e3c4d259304a] is initialized. The 3.1.2 webhcat uses [AuthFilter|https://github.com/apache/hive/blob/8190d2be7b7165effa62bd21b7d60ef81fb0e4af/hcatalog/webhcat/svr/src/main/java/org/apache/hive/hcatalog/templeton/Main.java#L258] directly, rather than using AuthFilterInitializer which puts the required properties in the filter.

> hcatalog error in Hadoop 3.3.0: authentication type needed
> ----------------------------------------------------------
>
>                 Key: HIVE-24083
>                 URL: https://issues.apache.org/jira/browse/HIVE-24083
>             Project: Hive
>          Issue Type: Bug
>          Components: HCatalog
>    Affects Versions: 3.1.2
>            Reporter: Javier J. Salmeron Garcia
>            Priority: Minor
>
> Using Hive 3.1.2, webhcat fails to start in Hadoop 3.3.0 with the following error:
> ```
> javax.servlet.ServletException: Authentication type must be specified: simple|kerberos
> ```
> I tried in Hadoop 3.2.1 with the exact settings and it starts without issues:
>  
> ```
> webhcat: /tmp/hadoop-3.2.1//bin/hadoop jar /opt/bitnami/hadoop/hive/hcatalog/sbin/../share/webhcat/svr/lib/hive-webhcat-3.1.2.jar org.apache.hive.hcatalog.templeton.Main
> webhcat: starting ... started.
> webhcat: done
> ```
>  
> I can provide more logs if needed. Detected authentication settings:
>  
> ```
> hadoop.http.authentication.simple.anonymous.allowed=true
> hadoop.http.authentication.type=simple
> hadoop.security.authentication=simple
> ipc.client.fallback-to-simple-auth-allowed=false
> yarn.timeline-service.http-authentication.simple.anonymous.allowed=true
> yarn.timeline-service.http-authentication.type=simple
> ```
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)