[ 
https://issues.apache.org/jira/browse/HADOOP-16080?focusedWorklogId=520392&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-520392
 ]

ASF GitHub Bot logged work on HADOOP-16080:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 05/Dec/20 00:55
            Start Date: 05/Dec/20 00:55
    Worklog Time Spent: 10m 
      Work Description: sunchao opened a new pull request #2522:
URL: https://github.com/apache/hadoop/pull/2522


   (This is a backport from #2510)
   
   This does the following:
   
   - removes ListenableFuture as well as ListeningExecutorService from public 
interfaces, so that modules such as `hadoop-aws` and `hadoop-aliyun` can 
consume the class from hadoop-client-api without running into Guava conflicts.
   - replaces error message template usages in 
`checkArgument/checkState/checkNotNull` with `String.format`. The former is 
generally not available in Guava version < 20 so this is to eliminate potential 
conflicts.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Issue Time Tracking
-------------------

    Worklog Id:     (was: 520392)
    Time Spent: 1h 50m  (was: 1h 40m)

> hadoop-aws does not work with hadoop-client-api
> -----------------------------------------------
>
>                 Key: HADOOP-16080
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16080
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs/s3
>    Affects Versions: 3.2.0, 3.1.1
>            Reporter: Keith Turner
>            Assignee: Chao Sun
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.2.2
>
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> I attempted to use Accumulo and S3a with the following jars on the classpath.
>  * hadoop-client-api-3.1.1.jar
>  * hadoop-client-runtime-3.1.1.jar
>  * hadoop-aws-3.1.1.jar
> This failed with the following exception.
> {noformat}
> Exception in thread "init" java.lang.NoSuchMethodError: 
> org.apache.hadoop.util.SemaphoredDelegatingExecutor.<init>(Lcom/google/common/util/concurrent/ListeningExecutorService;IZ)V
>     at org.apache.hadoop.fs.s3a.S3AFileSystem.create(S3AFileSystem.java:769)
>     at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:1169)
>     at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:1149)
>     at org.apache.hadoop.fs.FileSystem.create(FileSystem.java:1108)
>     at org.apache.hadoop.fs.FileSystem.createNewFile(FileSystem.java:1413)
>     at 
> org.apache.accumulo.server.fs.VolumeManagerImpl.createNewFile(VolumeManagerImpl.java:184)
>     at 
> org.apache.accumulo.server.init.Initialize.initDirs(Initialize.java:479)
>     at 
> org.apache.accumulo.server.init.Initialize.initFileSystem(Initialize.java:487)
>     at 
> org.apache.accumulo.server.init.Initialize.initialize(Initialize.java:370)
>     at org.apache.accumulo.server.init.Initialize.doInit(Initialize.java:348)
>     at org.apache.accumulo.server.init.Initialize.execute(Initialize.java:967)
>     at org.apache.accumulo.start.Main.lambda$execKeyword$0(Main.java:129)
>     at java.lang.Thread.run(Thread.java:748)
> {noformat}
> The problem is that {{S3AFileSystem.create()}} looks for 
> {{SemaphoredDelegatingExecutor(com.google.common.util.concurrent.ListeningExecutorService)}}
>  which does not exist in hadoop-client-api-3.1.1.jar.  What does exist is 
> {{SemaphoredDelegatingExecutor(org.apache.hadoop.shaded.com.google.common.util.concurrent.ListeningExecutorService)}}.
> To work around this issue I created a version of hadoop-aws-3.1.1.jar that 
> relocated references to Guava.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to