Configure Encryption without Authentication
About this task
Procedure
-
In
hive-site.xml
file, set the following properties:Property Value hive.server2.use.SSL
true
hive.server2.ssl.keystore
<path to keystore file> hive.server2.ssl.keystore.password
<password> WARNINGIf you specify the password in thehive-site.xml
file, protect the file with the appropriate file permissions. HiveServer2 automatically prompts for the keystore password during startup when no password is stored in thehive-site.xml
file.<property> <name>hive.server2.use.ssl</name> <value>true</value> <description>enable/disable SSL communication</description> </property> <property> <name>hive.server2.ssl.keystore</name> <value><path-to-keystore-file></value> <description>path to keystore file</description> </property> <property> <name>hive.server2.ssl.keystore.password</name> <value><password></value> <description>keystore password</description> </property>
-
Restart HiveServer2 to apply these changes.
maprcli node services -name hs2 -action restart -nodes <comma separated list of nodes>