You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@oozie.apache.org by "Peter Cseh (JIRA)" <ji...@apache.org> on 2017/10/04 13:32:00 UTC

[jira] [Resolved] (OOZIE-2990) Hive2Credentials should not add principal to jdbc Url twice

     [ https://issues.apache.org/jira/browse/OOZIE-2990?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Peter Cseh resolved OOZIE-2990.
-------------------------------
    Resolution: Won't Fix

It looks like this would only happen if something is misconfigured.

> Hive2Credentials should not add principal to jdbc Url twice
> -----------------------------------------------------------
>
>                 Key: OOZIE-2990
>                 URL: https://issues.apache.org/jira/browse/OOZIE-2990
>             Project: Oozie
>          Issue Type: Sub-task
>            Reporter: Attila Sasvari
>
> In a secure kerberized environment, if workflow configuration contains principal in both {{hive2.server.principal}} and {{hive2.jdbc.url}}, invalid JDBC URL is generated:
> {code}
> if (principal == null || principal.isEmpty()) {
>                 throw new CredentialException(ErrorCode.E0510,
>                         HIVE2_SERVER_PRINCIPAL + " is required to get hive server 2 credential");
>             }
>             url = url + ";principal=" + principal;
> {code}
> As a result, workflow will fail at runtime with malformed URL exception.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)