MEP 4.0 introduces default configuration for Hive Metastore password encryption using the
MapR Installer. The password is stored in the hive-site.xml file.
MEP 4.0 introduces default configuration for Hive Metastore password encryption using the
MapR Installer. The password is stored in the hive-site.xml file.
javax.jdo.option.ConnectionPassword is automatically encrypted.<property>
<name>javax.jdo.option.ConnectionPassword<name>
<value>{password}<value>
<property>
The hadoop.security.credential.provider.path configuration property
replaces the javax.jdo.option.ConnectionPassword property in the
hive-site.xml file that contains the path to the keystore file
created by the Hadoop Crediential Provider. Credential providers store and protect
passwords out of clear text for the underlying database. By default, the MapR Installer
creates the keystore file in MapR filesystem.
/user//hivemetastore.jceks.
hive.server2.webui.keystore.password, hive.server2.keystore.password, and templeton.keystore.password, are automatically read from the /opt/mapr/conf/ssl-client.xml file without any additional steps from your side. But you can still encrypt them manually and store them in the *jceks files.To remove changes made by the MapR Installer and reset Hive to its default setting:
hive-site.xml file.hadoop.security.credential.provider.path property.javax.jdo.option.ConnectionPassword property.hive-site.xml file.To encrypt a password manually:
hadoop credential create javax.jdo.option.ConnectionPassword -provider <path-to-keystore>Where
<path-to-keystore> is
jceks://<file-system-name>/<path-to-keystore>.For
example, jceks://maprfs/user/mapr/hivemetastore.jceks.
javax.jdo.option.ConnectionPassword property in the
hive-site.xml file:
<property>
<name>javax.jdo.option.ConnectionPassword</name>
<value>{yourpassword}</value>
</property>hadoop.security.credential.provider.path property to the
/opt/mapr/hive/hive-2.3/conf/hive-site.xml
file:<property>
<name>hadoop.security.credential.provider.path</name>
<value>jceks://maprfs/user/mapr/hivemetastore.jceks</value>
<description>password to use against metastore database</description>
</property>maprcli node services -name hivemeta -action restart -nodes `hostname -f`
maprcli node services -name hs2 -action restart -nodes `hostname -f`
maprcli node services -name hcat -action restart -nodes `hostname -f`