java.lang.RuntimeException

Failed to apply upload policy

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web39489

  • Failed to apply upload policy
  • via GitHub by doriwal
    , 9 months ago
    Failed to apply upload policy
  • via Google Groups by Unknown author, 1 year ago
    Failed to apply upload policy
  • Stack trace

    • java.lang.RuntimeException: Failed to apply upload policy at com.pinterest.secor.consumer.Consumer.checkUploadPolicy(Consumer.java:116) at com.pinterest.secor.consumer.Consumer.run(Consumer.java:106) Caused by: java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: com.amazonaws.services.s3.transfer.TransferManager.<init>(Lcom/amazonaws/services/s3/AmazonS3;Ljava/util/concurrent/ThreadPoolExecutor;)V at java.util.concurrent.FutureTask.report(FutureTask.java:122) at java.util.concurrent.FutureTask.get(FutureTask.java:192) at com.pinterest.secor.uploader.FutureHandle.get(FutureHandle.java:34) at com.pinterest.secor.uploader.Uploader.uploadFiles(Uploader.java:104) at com.pinterest.secor.uploader.Uploader.checkTopicPartition(Uploader.java:195) at com.pinterest.secor.uploader.Uploader.applyPolicy(Uploader.java:227) at com.pinterest.secor.consumer.Consumer.checkUploadPolicy(Consumer.java:114) ... 1 more Caused by: java.lang.NoSuchMethodError: com.amazonaws.services.s3.transfer.TransferManager.<init>(Lcom/amazonaws/services/s3/AmazonS3;Ljava/util/concurrent/ThreadPoolExecutor;)V at org.apache.hadoop.fs.s3a.S3AFileSystem.initialize(S3AFileSystem.java:287) 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 com.pinterest.secor.util.FileUtil.getFileSystem(FileUtil.java:87) at com.pinterest.secor.util.FileUtil.moveToCloud(FileUtil.java:206) at com.pinterest.secor.uploader.HadoopS3UploadManager$1.run(HadoopS3UploadManager.java:66) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 10 months ago
    Unknown user
    Once, 10 months ago
    Once, 6 months ago
    Unknown user
    Once, 11 months ago