Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-1325

Exception thrown while initializing ozoneClientAdapter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Done
    • None
    • None
    • Ozone Client

    Description

      ozone version :

      --------------------

       

      Source code repository https://gitbox.apache.org/repos/asf/hadoop.git -r 568d3ab8b65d1348dec9c971feffe200e6cba2ef
      Compiled by nnandi on 2019-03-19T03:54Z
      Compiled with protoc 2.5.0
      From source with checksum c44d339e20094d3054754078afbf4c
      Using HDDS 0.5.0-SNAPSHOT
      Source code repository https://gitbox.apache.org/repos/asf/hadoop.git -r 568d3ab8b65d1348dec9c971feffe200e6cba2ef
      Compiled by nnandi on 2019-03-19T03:53Z
      Compiled with protoc 2.5.0
      From source with checksum b354934fb1352f4d5425114bf8dce11
      

       

       

      steps taken :

      -------------------

      1. Add ozone libs in hadoop classpath.
      2. Tried to run s3dupdo workload (https://github.com/t3rmin4t0r/s3dupdo)

      Here is the exception thrown :

       

      java.lang.reflect.InvocationTargetException
       at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
       at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
       at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
       at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
       at org.apache.hadoop.fs.ozone.OzoneClientAdapterFactory.lambda$createAdapter$1(OzoneClientAdapterFactory.java:65)
       at org.apache.hadoop.fs.ozone.OzoneClientAdapterFactory.createAdapter(OzoneClientAdapterFactory.java:105)
       at org.apache.hadoop.fs.ozone.OzoneClientAdapterFactory.createAdapter(OzoneClientAdapterFactory.java:61)
       at org.apache.hadoop.fs.ozone.OzoneFileSystem.initialize(OzoneFileSystem.java:167)
       at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3303)
       at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:124)
       at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3352)
       at org.apache.hadoop.fs.FileSystem$Cache.getUnique(FileSystem.java:3326)
       at org.apache.hadoop.fs.FileSystem.newInstance(FileSystem.java:532)
       at org.notmysock.repl.Works$CopyWorker.run(Works.java:243)
       at org.notmysock.repl.Works$CopyWorker.call(Works.java:279)
       at org.notmysock.repl.Works$CopyWorker.call(Works.java:204)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:748)
      Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/apache/hadoop/fs/ozone/FilteredClassLoader) previously initiated loading for a different type with name "org/apache/hadoop/security/token/Token"
       at java.lang.ClassLoader.defineClass1(Native Method)
       at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
       at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
       at java.net.URLClassLoader.defineClass(URLClassLoader.java:468)
       at java.net.URLClassLoader.access$100(URLClassLoader.java:74)
       at java.net.URLClassLoader$1.run(URLClassLoader.java:369)
       at java.net.URLClassLoader$1.run(URLClassLoader.java:363)
       at java.security.AccessController.doPrivileged(Native Method)
       at java.net.URLClassLoader.findClass(URLClassLoader.java:362)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
       at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
       at org.apache.hadoop.fs.ozone.FilteredClassLoader.loadClass(FilteredClassLoader.java:71)
       at java.lang.Class.getDeclaredMethods0(Native Method)
       at java.lang.Class.privateGetDeclaredMethods(Class.java:2701)
       at java.lang.Class.privateGetPublicMethods(Class.java:2902)
       at java.lang.Class.getMethods(Class.java:1615)
       at sun.misc.ProxyGenerator.generateClassFile(ProxyGenerator.java:451)
       at sun.misc.ProxyGenerator.generateProxyClass(ProxyGenerator.java:339)
       at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:639)
       at java.lang.reflect.Proxy$ProxyClassFactory.apply(Proxy.java:557)
       at java.lang.reflect.WeakCache$Factory.get(WeakCache.java:230)
       at java.lang.reflect.WeakCache.get(WeakCache.java:127)
       at java.lang.reflect.Proxy.getProxyClass0(Proxy.java:419)
       at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:719)
       at org.apache.hadoop.ozone.client.OzoneClientFactory.getClient(OzoneClientFactory.java:264)
       at org.apache.hadoop.ozone.client.OzoneClientFactory.getRpcClient(OzoneClientFactory.java:169)
       at org.apache.hadoop.fs.ozone.OzoneClientAdapterImpl.<init>(OzoneClientAdapterImpl.java:140)
       at org.apache.hadoop.fs.ozone.OzoneClientAdapterImpl.<init>(OzoneClientAdapterImpl.java:104)
       at org.apache.hadoop.fs.ozone.OzoneClientAdapterImpl.<init>(OzoneClientAdapterImpl.java:75)
       ... 20 more

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              nilotpalnandi Nilotpal Nandi
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: