Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13872

KMS JMX exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • 3.0.0-alpha2
    • None
    • kms
    • None

    Description

      Run KMS in pseudo distributed mode, point browser to http://localhost:16000/kms/jmx?user.name=kms, got "HTTP Status 500 - Servlet execution threw an exception":

      HTTP Status 500 - Servlet execution threw an exception
      
      type Exception report
      
      message Servlet execution threw an exception
      
      description The server encountered an internal error that prevented it from fulfilling this request.
      
      exception
      
      javax.servlet.ServletException: Servlet execution threw an exception
      	org.apache.hadoop.crypto.key.kms.server.KMSMDCFilter.doFilter(KMSMDCFilter.java:84)
      	org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:636)
      	org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationFilter.doFilter(DelegationTokenAuthenticationFilter.java:304)
      	org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:588)
      	org.apache.hadoop.crypto.key.kms.server.KMSAuthenticationFilter.doFilter(KMSAuthenticationFilter.java:141)
      root cause
      
      java.lang.NoClassDefFoundError: org/eclipse/jetty/server/handler/ContextHandler
      	java.lang.ClassLoader.defineClass1(Native Method)
      	java.lang.ClassLoader.defineClass(ClassLoader.java:760)
      	java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      	org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2946)
      	org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1177)
      	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1665)
      	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1544)
      	org.apache.hadoop.jmx.JMXJsonServlet.doGet(JMXJsonServlet.java:176)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
      	org.apache.hadoop.crypto.key.kms.server.KMSMDCFilter.doFilter(KMSMDCFilter.java:84)
      	org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:636)
      	org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationFilter.doFilter(DelegationTokenAuthenticationFilter.java:304)
      	org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:588)
      	org.apache.hadoop.crypto.key.kms.server.KMSAuthenticationFilter.doFilter(KMSAuthenticationFilter.java:141)
      root cause
      
      java.lang.ClassNotFoundException: org.eclipse.jetty.server.handler.ContextHandler
      	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1698)
      	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1544)
      	java.lang.ClassLoader.defineClass1(Native Method)
      	java.lang.ClassLoader.defineClass(ClassLoader.java:760)
      	java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
      	org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:2946)
      	org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:1177)
      	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1665)
      	org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1544)
      	org.apache.hadoop.jmx.JMXJsonServlet.doGet(JMXJsonServlet.java:176)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
      	javax.servlet.http.HttpServlet.service(HttpServlet.java:723)
      	org.apache.hadoop.crypto.key.kms.server.KMSMDCFilter.doFilter(KMSMDCFilter.java:84)
      	org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:636)
      	org.apache.hadoop.security.token.delegation.web.DelegationTokenAuthenticationFilter.doFilter(DelegationTokenAuthenticationFilter.java:304)
      	org.apache.hadoop.security.authentication.server.AuthenticationFilter.doFilter(AuthenticationFilter.java:588)
      	org.apache.hadoop.crypto.key.kms.server.KMSAuthenticationFilter.doFilter(KMSAuthenticationFilter.java:141)
      note The full stack trace of the root cause is available in the Apache Tomcat/6.0.48 logs.
      

      Attachments

        Issue Links

          Activity

            People

              jzhuge John Zhuge
              jzhuge John Zhuge
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: