HiveMetaStore Failed to Start in Cloudera Manager: cmf.service.config.ConfigGenException: Unable to generate config file creds.localjceks

Recently I was dealing with an issues that HiveMetaStore failed to start in a Cloudera Manager managed environment. It failed with below errors: Caused by: com.cloudera.cmf.service.config.ConfigGenException: Unable to generate config file creds.localjceks         at com.cloudera.cmf.service.config.JceksConfigFileGenerator.generate(JceksConfigFileGenerator.java:63)         at com.cloudera.cmf.service.HandlerUtil.emitConfigFiles(HandlerUtil.java:133)         at com.cloudera.cmf.service.AbstractRoleHandler.generateConfiguration(AbstractRoleHandler.java:887) This problem is very common if you have the following misconfiguration in …