java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.refreshAfterWrite(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/cache/CacheBuilder;

twittercommunity.com | 1 month 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

    Twitter Streaming API not working with twitter4j and Apache Flume - Streaming APIs - Twitter Developers

    twittercommunity.com | 7 months ago
    java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.refreshAfterWrite(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/cache/CacheBuilder;
  2. 0

    Twitter Streaming API not working with twitter4j and Apache Flume - Streaming APIs - Twitter Developers

    twittercommunity.com | 1 month ago
    java.lang.NoSuchMethodError: com.google.common.cache.CacheBuilder.refreshAfterWrite(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/cache/CacheBuilder;

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      com.google.common.cache.CacheBuilder.refreshAfterWrite(JLjava/util/concurrent/TimeUnit;)Lcom/google/common/cache/CacheBuilder;

      at org.apache.hadoop.security.Groups.<init>()
    2. Hadoop
      Path.getFileSystem
      1. org.apache.hadoop.security.Groups.<init>(Groups.java:97)
      2. org.apache.hadoop.security.Groups.<init>(Groups.java:74)
      3. org.apache.hadoop.security.Groups.getUserToGroupsMappingService(Groups.java:303)
      4. org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java:283)
      5. org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java:260)
      6. org.apache.hadoop.security.UserGroupInformation.loginUserFromSubject(UserGroupInformation.java:790)
      7. org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java:760)
      8. org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java:633)
      9. org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:2812)
      10. org.apache.hadoop.fs.FileSystem$Cache$Key.<init>(FileSystem.java:2802)
      11. org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2668)
      12. org.apache.hadoop.fs.FileSystem.get(FileSystem.java:371)
      13. org.apache.hadoop.fs.Path.getFileSystem(Path.java:295)
      13 frames
    3. org.apache.flume
      BucketWriter$9.call
      1. org.apache.flume.sink.hdfs.BucketWriter$1.call(BucketWriter.java:243)
      2. org.apache.flume.sink.hdfs.BucketWriter$1.call(BucketWriter.java:235)
      3. org.apache.flume.sink.hdfs.BucketWriter$9$1.run(BucketWriter.java:679)
      4. org.apache.flume.auth.SimpleAuthenticator.execute(SimpleAuthenticator.java:50)
      5. org.apache.flume.sink.hdfs.BucketWriter$9.call(BucketWriter.java:676)
      5 frames
    4. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask.run(FutureTask.java:266)
      2. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      4. java.lang.Thread.run(Thread.java:745)
      4 frames