peng.jianhua created RANGER-1858: ------------------------------------ Summary: ranger-admin start fail when policymgr_http_enabled equal to false. Key: RANGER-1858 URL: https://issues.apache.org/jira/browse/RANGER-1858 Project: Ranger Issue Type: Bug Components: admin Affects Versions: 0.7.1 Environment: jdk1.8.0_111 tomcat 7.0.77 Reporter: peng.jianhua Assignee: peng.jianhua Priority: Critical
ranger-admin start fail when policymgr_http_enabled equal to false. The error log is as following: {code} Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/base/Preconditions at org.apache.hadoop.conf.Configuration$DeprecationDelta.<init>(Configuration.java:328) at org.apache.hadoop.conf.Configuration$DeprecationDelta.<init>(Configuration.java:341) at org.apache.hadoop.conf.Configuration.<clinit>(Configuration.java:423) at org.apache.ranger.server.tomcat.EmbeddedServer.getDecryptedString(EmbeddedServer.java:398) at org.apache.ranger.server.tomcat.EmbeddedServer.start(EmbeddedServer.java:135) at org.apache.ranger.server.tomcat.EmbeddedServer.main(EmbeddedServer.java:69) Caused by: java.lang.ClassNotFoundException: com.google.common.base.Preconditions at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 6 more {code} Verify steps: 1. Modify install.properties. The ssl properties configuration are as following: policymgr_http_enabled=false policymgr_https_keystore_file=/diskc/installranger/ssl/keystore policymgr_https_keystore_keyalias=mysqlClientCertificate policymgr_https_keystore_password=testverify$ 2. Run setup.sh to install Ranger Admin. 3. Run ranger-admin start to start Ranger Admin. -- This message was sent by Atlassian JIRA (v6.4.14#64029)