Created 06-02-2016 02:57 PM
What configuration is required in the Hive Ambari View for supporting Hive SSL?
Created 03-09-2017 11:48 PM
In View Config try setting sslTrustStore=/var/log/ambari-server/hive-next-view/hive.jks;trustStorePassword=******** as Hive Session param
Created 06-02-2016 02:59 PM
Created 06-02-2016 05:07 PM
Created 06-02-2016 05:58 PM
@Sean Roberts, Is there any specific reason you are looking for SSL and not using kerberos authentication instead?
I can see kerberos authentication documentation.(but not sure if there is any for SSL)
Created 06-02-2016 06:03 PM
As far as I know Kerberos is for authentication. Not the encryption of Hive communication.
Created 06-02-2016 06:14 PM
@Sean Roberts, you can use kerberos authentication instead and configure SASL for encrypting traffic
you can encrypt the traffic by enabling following property with your kerberos authentication.
<property> <name>hive.server2.thrift.sasl.qop</name> <value>auth-conf</value> <description>Sasl QOP value; one of 'auth', 'auth-int' and 'auth-conf'</description> </property>
Change the HIVE AUTHENTICATION field as per the above document to add sasl.qop=auth-conf at the end
auth=kerberos;principal=hive/_HOST@hortoworks.com;sasl.qop=auth-conf
Created 03-08-2017 05:20 AM
I have the same question. I am trying to run Ambari Hive view when HiveServer2 is SSL enabled, but get the following error.
java.lang.NullPointerException at org.apache.ambari.view.hive2.internal.HiveConnectionWrapper.isLoginError(HiveConnectionWrapper.java:115) at org.apache.ambari.view.hive2.internal.HiveConnectionWrapper.connect(HiveConnectionWrapper.java:87) at org.apache.ambari.view.hive2.resources.browser.ConnectionService.attemptHiveConnection(ConnectionService.java:102) at org.apache.ambari.view.hive2.resources.browser.ConnectionService.attemptConnection(ConnectionService.java:85) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498)
If I disable SSL, view executes without error.
For beeline, I provide additional parameters
beeline>!connect jdbc:hive2://hostname:10000/default;ssl=true;sslTrustStore=/var/log/ambari-server/hive-next-view/hive.jks;trustStorePassword=********
How do I provide the same info in the Hive view?
Created 03-09-2017 11:48 PM
In View Config try setting sslTrustStore=/var/log/ambari-server/hive-next-view/hive.jks;trustStorePassword=******** as Hive Session param
Created 03-10-2017 12:34 AM
Thanks for the help.
I was able to run the view after setting the Hive session param to ssl=true;sslTrustStore=/var/log/ambari-server/hive-next-view/hive.jks;trustStorePassword=********