Hadoop 2.10.0 version (i.e. hadoop-yarn lib) pulls in very old version (3.0.1) of com.codahale.metrics:metrics-core lib. This lib is bundled in tables.jar and jobs.jar fat jar. Also some new methods such as gauge etc. are added in metrics-core lib version starting 3.2.0. So when tables.jar and jobs.jar coexists with higher version of metrics-core lib in the classpath and if new MetricRegistry APIs (such as gauge) are used by some codebase that results in method not found error. Hence, excluding metrics-core lib as this lib is not used in the OSS codebase and we can always pin higher version of this lib if needed.
Summary
Hadoop 2.10.0 version (i.e.
hadoop-yarn
lib) pulls in very old version (3.0.1
) ofcom.codahale.metrics:metrics-core
lib. This lib is bundled in tables.jar and jobs.jar fat jar. Also some new methods such as gauge etc. are added inmetrics-core
lib version starting3.2.0
. So when tables.jar and jobs.jar coexists with higher version of metrics-core lib in the classpath and if new MetricRegistry APIs (such as gauge) are used by some codebase that results in method not found error. Hence, excludingmetrics-core
lib as this lib is not used in the OSS codebase and we can always pin higher version of this lib if needed.Method not found error:
Changes
For all the boxes checked, please include additional details of the changes made in this pull request.
Testing Done
./gradlew clean build
passed.Tested using local docker
Create table:
List table:
For all the boxes checked, include a detailed description of the testing done for the changes made in this pull request.
Additional Information
For all the boxes checked, include additional details of the changes made in this pull request.