Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-10005

HDFS2 - ClassNotFoundException - org.apache.htrace.SamplerBuilder

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.17.2, 2.18.0
    • None
    • None
    • Unknown

    Description

      When running in Karaf, the following exception may be thrown:

      Caused by: java.lang.NoClassDefFoundError: org/apache/htrace/SamplerBuilder
      	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:635)
      	at org.apache.hadoop.hdfs.DFSClient.<init>(DFSClient.java:619)
      	at org.apache.hadoop.hdfs.DistributedFileSystem.initialize(DistributedFileSystem.java:149)
      	at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2653)
      	at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:92)
      	at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2687)
      	at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2669)
      	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:371)
      	at org.apache.camel.component.hdfs2.HdfsOsgiHelper.<init>(HdfsOsgiHelper.java:47)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.8.0_91]
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)[:1.8.0_91]
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.8.0_91]
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)[:1.8.0_91]
      	at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:148)[197:org.apache.servicemix.bundles.spring-beans:3.2.16.RELEASE_1]
      	... 18 more
      

      this is because camel-hdfs2 features lacks org.apache.htrace/htrace-core/3.1.0-incubating

      Attachments

        Activity

          People

            lb Luca Burgazzoli
            lb Luca Burgazzoli
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: