Ankita Sinha created RANGER-1453:
------------------------------------

             Summary: Ranger KMS failed to start with Exception: More than one 
Master Key exists
                 Key: RANGER-1453
                 URL: https://issues.apache.org/jira/browse/RANGER-1453
             Project: Ranger
          Issue Type: Bug
          Components: Ranger
    Affects Versions: 0.7.0
            Reporter: Ankita Sinha
            Assignee: Ankita Sinha
             Fix For: 0.7.1


Ranger KMS failed to start with Exception: More than one Master Key exists
{code}
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was 
removed in 8.0
Mar 07, 2017 7:22:30 AM org.apache.ranger.server.tomcat.EmbeddedServer 
loadConfig
SEVERE: Load configuration fail. Reason: java.io.FileNotFoundException: 
/usr/hdp/2.6.0.2-4/ranger-kms/ews/ranger-admin-default-site.xml (No such file 
or directory)
Mar 07, 2017 7:22:30 AM org.apache.ranger.server.tomcat.EmbeddedServer start
INFO: Webapp file =./webapp, webAppName = /kms
Mar 07, 2017 7:22:30 AM org.apache.ranger.server.tomcat.EmbeddedServer start
INFO: Adding webapp [/kms] = path [./webapp] .....
Mar 07, 2017 7:22:30 AM org.apache.ranger.server.tomcat.EmbeddedServer start
INFO: Finished init of webapp [/kms] = path [./webapp].
Mar 07, 2017 7:22:30 AM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-9292"]
Mar 07, 2017 7:22:30 AM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Tomcat
Mar 07, 2017 7:22:30 AM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.68
Mar 07, 2017 7:22:30 AM org.apache.catalina.startup.ContextConfig 
getDefaultWebXmlFragment
INFO: No global web.xml found
Mar 07, 2017 7:22:36 AM org.apache.catalina.startup.TldConfig execute
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug 
logging for this logger for a complete list of JARs that were scanned but no 
TLDs were found in them. Skipping unneeded JARs during scanning can improve 
startup time and JSP compilation time.
log4j:WARN No such property [maxFileSize] in 
org.apache.log4j.DailyRollingFileAppender.
log4j:WARN No such property [maxBackupIndex] in 
org.apache.log4j.DailyRollingFileAppender.
log4j:WARN No such property [maxBackupIndex] in 
org.apache.log4j.DailyRollingFileAppender.
log4j:WARN No such property [maxFileSize] in 
org.apache.log4j.DailyRollingFileAppender.
java.lang.Exception: More than one Master Key exists
        at 
org.apache.hadoop.crypto.key.RangerMasterKey.getEncryptedMK(RangerMasterKey.java:143)
        at 
org.apache.hadoop.crypto.key.RangerMasterKey.getMasterKey(RangerMasterKey.java:71)
        at 
org.apache.hadoop.crypto.key.RangerKeyStoreProvider.<init>(RangerKeyStoreProvider.java:106)
        at 
org.apache.hadoop.crypto.key.RangerKeyStoreProvider$Factory.createProvider(RangerKeyStoreProvider.java:399)
        at 
org.apache.hadoop.crypto.key.KeyProviderFactory.get(KeyProviderFactory.java:95)
        at 
org.apache.hadoop.crypto.key.kms.server.KMSWebApp.contextInitialized(KMSWebApp.java:176)
        at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068)
        at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
        at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)
        at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
java.lang.Exception: No Master Key Found
        at 
org.apache.hadoop.crypto.key.RangerMasterKey.getMasterKey(RangerMasterKey.java:75)
        at 
org.apache.hadoop.crypto.key.RangerKeyStoreProvider.<init>(RangerKeyStoreProvider.java:106)
        at 
org.apache.hadoop.crypto.key.RangerKeyStoreProvider$Factory.createProvider(RangerKeyStoreProvider.java:399)
        at 
org.apache.hadoop.crypto.key.KeyProviderFactory.get(KeyProviderFactory.java:95)
        at 
org.apache.hadoop.crypto.key.kms.server.KMSWebApp.contextInitialized(KMSWebApp.java:176)
        at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068)
        at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
        at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)
        at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

ERROR: Hadoop KMS could not be started

REASON: java.lang.NullPointerException

Stacktrace:
---------------------------------------------------
java.lang.NullPointerException
        at 
org.apache.hadoop.crypto.key.kms.server.KMSWebApp.contextInitialized(KMSWebApp.java:178)
        at 
org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068)
        at 
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
        at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)
        at 
org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)
        at java.util.concurrent.FutureTask.run(FutureTask.java:266)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)
---------------------------------------------------
{code}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to