Attila Sasvari created OOZIE-2990:
-------------------------------------

             Summary: 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)

Reply via email to