Startup issue due to missing certificate class

Condition

When executing a query through Hue's Hive Editor, the following error occurs:
Error starting DAGAppMaster
java.lang.IllegalStateException: javax.security.cert.CertificateException: Could not find class: java.lang.ClassNotFoundException: com/sun/security/cert/internal/x509/X509V1CertImpl

Cause

This issue is caused by wildfly-openssl 2.1.4 version.

Solution

  1. Log in to Cloudera Manager as an administrator.
  2. Go to Clusters > Hive > Configuration and search for the 'Hive Service Advanced Configuration Snippet (Safety Valve) for hive-site.xml' property.
  3. Click and add the following property:
    Name: fs.s3a.ssl.channel.mode
    Value: Default_JSSE
  4. Click Save Changes.
  5. Restart the Hive and Hive Metastore roles.