'SAS Stored Process won't connect to Hive2 DB

I have a code that connect successful through a libname to a Hive2 DB authenticated with kerberos:

libname hdb hadoop server="server-name" port=10000 schema="schema-name";

I have tested the code using Data Integration Studio and BASE, but when I call the same code with and the same user (checked putting in the code a %put &=SYSUSERID; and running in pipe a echo %username%) with a stored procedure the libname gives me error :

ERROR: Error trying to establish connection: Could not open client transport with JDBC Uri:
jdbc:hive2://"server-name":10000/"schema-name";ssl=true;principal=hive/_HOST@"dominion": GSS initiate 
failed
ERROR: Error in the LIBNAME statement.


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source