java.util.ServiceConfigurationError: org.apache.hadoop.fs.FileSystem: Provider org.apache.hadoop.fs.s3a.S3AFileSystem could not be instantiated

Apache's JIRA Issue Tracker | Raghavendra Singh | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    {CODE} Exception in thread "main" java.util.ServiceConfigurationError: org.apache.hadoop.fs.FileSystem: Provider org.apache.hadoop.fs.s3a.S3AFileSystem could not be instantiated at java.util.ServiceLoader.fail(ServiceLoader.java:224) at java.util.ServiceLoader.access$100(ServiceLoader.java:181) at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:377) at java.util.ServiceLoader$1.next(ServiceLoader.java:445) at org.apache.hadoop.fs.FileSystem.loadFileSystems(FileSystem.java:2563) at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2574) at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2591) at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:91) at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2630) at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2612) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:370) at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:169) at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:345) at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:293) at org.apache.hive.service.cli.session.SessionManager.applyAuthorizationConfigPolicy(SessionManager.java:128) at org.apache.hive.service.cli.session.SessionManager.init(SessionManager.java:76) at org.apache.hive.service.CompositeService.init(CompositeService.java:59) at org.apache.hive.service.cli.CLIService.init(CLIService.java:112) at org.apache.hive.service.CompositeService.init(CompositeService.java:59) at org.apache.lens.server.LensServices.init(LensServices.java:186) at org.apache.lens.server.LensServer.startServices(LensServer.java:113) at org.apache.lens.server.LensServer.<init>(LensServer.java:73) at org.apache.lens.server.LensServer.main(LensServer.java:168) Caused by: java.lang.NoClassDefFoundError: com/amazonaws/services/s3/AmazonS3 at java.lang.Class.getDeclaredConstructors0(Native Method) at java.lang.Class.privateGetDeclaredConstructors(Class.java:2532) at java.lang.Class.getConstructor0(Class.java:2842) at java.lang.Class.newInstance(Class.java:345) at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:373) ... 20 more Caused by: java.lang.ClassNotFoundException: com.amazonaws.services.s3.AmazonS3 at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:354) at java.lang.ClassLoader.loadClass(ClassLoader.java:425) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at java.lang.ClassLoader.loadClass(ClassLoader.java:358) ... 25 more {CODE}

    Apache's JIRA Issue Tracker | 2 years ago | Raghavendra Singh
    java.util.ServiceConfigurationError: org.apache.hadoop.fs.FileSystem: Provider org.apache.hadoop.fs.s3a.S3AFileSystem could not be instantiated
  2. 0

    Flink on YARN : Amazon S3 wrongly used instead of HDFS

    Stack Overflow | 11 months ago | Charles
    java.util.ServiceConfigurationError: org.apache.hadoop.fs.FileSystem: Provider org.apache.hadoop.fs.s3a.S3AFileSystem could not be instantiated
  3. 0

    Re: Flink on YARN : Amazon S3 wrongly used instead of HDFS

    flink-user | 11 months ago | Robert Metzger
    java.util.ServiceConfigurationError: org.apache.hadoop.fs.FileSystem: Provider org.apache.hadoop.fs.s3a.S3AFileSystem could not be instantiated
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    batch ingestion error at version(0.9.2)

    Google Groups | 5 months ago | Zhenyuan Gao
    java.util.ServiceConfigurationError: org.apache.hadoop.fs.FileSystem: Provider org.apache.hadoop.hdfs.web.HftpFileSystem not found
  6. 0

    warning messages and fail to connect to Spark locally

    GitHub | 3 months ago | sdjoko
    java.util.ServiceConfigurationError: org.apache.hadoop.fs.FileSystem: Provider tachyon.hadoop.TFS could not be instantiated
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.ClassNotFoundException

    com.amazonaws.services.s3.AmazonS3

    at java.net.URLClassLoader$1.run()
  2. Java RT
    ServiceLoader$1.next
    1. java.net.URLClassLoader$1.run(URLClassLoader.java:366)
    2. java.net.URLClassLoader$1.run(URLClassLoader.java:355)
    3. java.security.AccessController.doPrivileged(Native Method)
    4. java.net.URLClassLoader.findClass(URLClassLoader.java:354)
    5. java.lang.ClassLoader.loadClass(ClassLoader.java:425)
    6. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
    7. java.lang.ClassLoader.loadClass(ClassLoader.java:358)
    8. java.lang.Class.getDeclaredConstructors0(Native Method)
    9. java.lang.Class.privateGetDeclaredConstructors(Class.java:2532)
    10. java.lang.Class.getConstructor0(Class.java:2842)
    11. java.lang.Class.newInstance(Class.java:345)
    12. java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:373)
    13. java.util.ServiceLoader$1.next(ServiceLoader.java:445)
    13 frames
  3. Hadoop
    FileSystem.get
    1. org.apache.hadoop.fs.FileSystem.loadFileSystems(FileSystem.java:2563)
    2. org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2574)
    3. org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2591)
    4. org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:91)
    5. org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2630)
    6. org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2612)
    7. org.apache.hadoop.fs.FileSystem.get(FileSystem.java:370)
    8. org.apache.hadoop.fs.FileSystem.get(FileSystem.java:169)
    8 frames
  4. Hive Query Language
    SessionState.start
    1. org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:345)
    2. org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:293)
    2 frames
  5. org.apache.hive
    CompositeService.init
    1. org.apache.hive.service.cli.session.SessionManager.applyAuthorizationConfigPolicy(SessionManager.java:128)
    2. org.apache.hive.service.cli.session.SessionManager.init(SessionManager.java:76)
    3. org.apache.hive.service.CompositeService.init(CompositeService.java:59)
    4. org.apache.hive.service.cli.CLIService.init(CLIService.java:112)
    5. org.apache.hive.service.CompositeService.init(CompositeService.java:59)
    5 frames
  6. org.apache.lens
    LensServer.main
    1. org.apache.lens.server.LensServices.init(LensServices.java:186)
    2. org.apache.lens.server.LensServer.startServices(LensServer.java:113)
    3. org.apache.lens.server.LensServer.<init>(LensServer.java:73)
    4. org.apache.lens.server.LensServer.main(LensServer.java:168)
    4 frames