Details
-
Sub-task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.6.0
-
None
-
None
-
Reviewed
Description
Removing usage of Guava's deprecated or missing methods in recent version(17.0) without updating pom file. This JIRA targets branch-2. On this JIRA, org.apache.hadoop.util.LimitInputStream will be used instead of com.google.common.io.LimitInputStream which is removed in Guava 15.0.
In the latest release of Guava(18.0), following changes are done:
- Objects#ToStringHelper was removed and we need to use MoreObjects#ToStringHelper. However, MoreObjects#ToStringHelper has been introduced since 18.0.
- Enums.valueOfFunction was removed and need to be replaced with Enums.stringConverter. However, MoreObjects#ToStringHelper has been introduced since 16.0.
- MoreExecutors.sameThreadExecutor() was removed at 18.0 and need to be replaced with MoreExecutors.newDirectExecutorService. However, MoreExecutors.newDirectExecutorService has been introduced since 18.0.
We'll do these changes on HADOOP-10101.
Attachments
Attachments
Issue Links
- duplicates
-
HDFS-5518 HDFS doesn't compile/run against Guava 1.5
- Resolved
- relates to
-
HADOOP-11602 Fix toUpperCase/toLowerCase to use Locale.ENGLISH
- Closed