Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-23192

NoClassDefFoundError on Files View on S3

    XMLWordPrintableJSON

Details

    Description

      06 Mar 2018 08:52:07,987 ERROR [ambari-client-thread-6083] ContainerResponse:423 - The exception contained within MappableContainerException could not be mapped to a response, re-throwing to the HTTP container
      java.lang.NoClassDefFoundError: Could not initialize class com.amazonaws.ClientConfiguration
      	at org.apache.hadoop.fs.s3a.S3ClientFactory$DefaultS3ClientFactory.createS3Client(S3ClientFactory.java:75)
      	at org.apache.hadoop.fs.s3a.S3AFileSystem.initialize(S3AFileSystem.java:205)
      	at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2795)
      	at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:99)
      	at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2829)
      	at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2811)
      	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:390)
      	at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:179)
      	at org.apache.ambari.view.utils.hdfs.HdfsApi$1.run(HdfsApi.java:77)
      	at org.apache.ambari.view.utils.hdfs.HdfsApi$1.run(HdfsApi.java:75)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at javax.security.auth.Subject.doAs(Subject.java:422)
      	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1866)
      	at org.apache.ambari.view.utils.hdfs.HdfsApi.execute(HdfsApi.java:513)
      	at org.apache.ambari.view.utils.hdfs.HdfsApi.execute(HdfsApi.java:489)
      	at org.apache.ambari.view.utils.hdfs.HdfsApi.<init>(HdfsApi.java:75)
      	at org.apache.ambari.view.utils.hdfs.HdfsUtil.getHdfsApi(HdfsUtil.java:157)
      	at org.apache.ambari.view.utils.hdfs.HdfsUtil.connectToHDFSApi(HdfsUtil.java:129)
      	at org.apache.ambari.view.commons.hdfs.HdfsService.getApi(HdfsService.java:98)
      	at org.apache.ambari.view.commons.hdfs.FileOperationService.listdir(FileOperationService.java:100)
      	at sun.reflect.GeneratedMethodAccessor443.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60)
      	at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$ResponseOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:205)

       

      This is caused by an incorrect version from jackson-core.

      In /var/lib/ambari-server/resources/views/work/FILES{1.0.0}/WEB-INF/lib/ there is jackson-core-2.2.3.jar (instead of 2.9.4).

      In 2.2.3 there was no requiresPropertyOrdering() method in com.fasterxml.jackson.core.JsonFactory.

      jackson-core, jackson-databind and jackson-annotations should all have the same version (2.9.4).

      Attachments

        Activity

          People

            amagyar Attila Magyar
            amagyar Attila Magyar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 50m
                1h 50m