Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.2.0
    • 3.0.0, 2.2.0
    • plugins
    • None

    Description

      Kafka plugin initialization fails with the following error in ranger-2.2 branch:

       

      [2021-10-18 20:58:53,846] ERROR [KafkaServer id=0] Fatal error during KafkaServer startup. Prepare to shutdown (kafka.server.KafkaServer)
      java.lang.NoClassDefFoundError: org/apache/htrace/core/Tracer$Builder at org.apache.hadoop.fs.FsTracer.get(FsTracer.java:42)
       at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3407)
       at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:158)
       at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3474)
       at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3442) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:524)
       at org.apache.hadoop.fs.Path.getFileSystem(Path.java:365)
       at org.apache.hadoop.security.alias.JavaKeyStoreProvider.initFileSystem(JavaKeyStoreProvider.java:89)
       at org.apache.hadoop.security.alias.AbstractJavaKeyStoreProvider.<init>(AbstractJavaKeyStoreProvider.java:85)
       at org.apache.hadoop.security.alias.JavaKeyStoreProvider.<init>(JavaKeyStoreProvider.java:49)
       at org.apache.hadoop.security.alias.JavaKeyStoreProvider.<init>(JavaKeyStoreProvider.java:41)
       at org.apache.hadoop.security.alias.JavaKeyStoreProvider$Factory.createProvider(JavaKeyStoreProvider.java:100)
       at org.apache.hadoop.security.alias.CredentialProviderFactory.getProviders(CredentialProviderFactory.java:73)
       at org.apache.ranger.authorization.hadoop.utils.RangerCredentialProvider.getCredentialProviders(RangerCredentialProvider.java:69)
       at org.apache.ranger.authorization.hadoop.utils.RangerCredentialProvider.getCredentialString(RangerCredentialProvider.java:47)
       at org.apache.ranger.audit.provider.MiscUtil.getCredentialString(MiscUtil.java:453)
       at org.apache.ranger.audit.destination.SolrAuditDestination.getKeyManagers(SolrAuditDestination.java:348)
       at org.apache.ranger.audit.destination.SolrAuditDestination.connect(SolrAuditDestination.java:131)
       at org.apache.ranger.audit.destination.SolrAuditDestination.init(SolrAuditDestination.java:96)
       at org.apache.ranger.audit.provider.AuditProviderFactory.init(AuditProviderFactory.java:183)
       at org.apache.ranger.plugin.service.RangerBasePlugin.init(RangerBasePlugin.java:212)
       at org.apache.ranger.authorization.kafka.authorizer.RangerKafkaAuthorizer.configure(RangerKafkaAuthorizer.java:105)
       at org.apache.ranger.authorization.kafka.authorizer.RangerKafkaAuthorizer.configure(RangerKafkaAuthorizer.java:94)
       at kafka.security.authorizer.AuthorizerWrapper.configure(AuthorizerWrapper.scala:82)
       at kafka.server.KafkaServer.$anonfun$startup$4(KafkaServer.scala:300)
       at kafka.server.KafkaServer.startup(KafkaServer.scala:300)
       at kafka.server.KafkaServerStartable.startup(KafkaServerStartable.scala:44) at kafka.Kafka$.main(Kafka.scala:82)
       at kafka.Kafka.main(Kafka.scala)
      Caused by: java.lang.ClassNotFoundException: org.apache.htrace.core.Tracer$Builder
       at java.lang.ClassLoader.findClass(ClassLoader.java:523)
       at org.apache.ranger.plugin.classloader.RangerPluginClassLoader$MyClassLoader.findClass(RangerPluginClassLoader.java:290)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
       at org.apache.ranger.plugin.classloader.RangerPluginClassLoader.loadClass(RangerPluginClassLoader.java:132) ... 29 more
      [2021-10-18 20:58:53,854] INFO [KafkaServer id=0] shutting down (kafka.server.KafkaServer)

      Attachments

        People

          madhan Madhan Neethiraj
          madhan Madhan Neethiraj
          Votes:
          0 Vote for this issue
          Watchers:
          Start watching this issue

          Dates

            Created:
            Updated:
            Resolved:

            Slack

              Issue deployment