java.lang.RuntimeException: Failed to apply upload policy


Solutions on the web19

Solution icon of github
Failed to apply upload policy

Solution icon of github
Failed to apply upload policy

Solution icon of github
Failed to apply upload policy

Solution icon of github
Failed to apply upload policy

Solution icon of github
Failed to apply upload policy

Solution icon of github
via GitHub by doriwal
, 1 year ago
Failed to apply upload policy

Solution icon of googlegroups
via Google Groups by Unknown author, 1 year ago
Failed to apply upload policy

Solution icon of github
via GitHub by freakynit
, 9 months ago
Failed to apply upload policy

Solution icon of github
Failed to apply upload policy

Solution icon of googlegroups
via Google Groups by Karshit Jaiswal, 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

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
Once, 9 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago