[
https://issues.apache.org/jira/browse/HADOOP-17329?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17220471#comment-17220471
]
Xiaoqiao He commented on HADOOP-17329:
--------------------------------------
Some more dig info:
After HADOOP-17081 commit (which just update MetricsSystemImpl but not
hadoop-common-project/hadoop-common/dev-support/jdiff-workaround.patch), it
broken following execution in hadoop-project-dist/pom.xml.
{code:java}
<!-- Pre site -->
<execution>
<id>pre-site</id>
<phase>prepare-package</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<target if="is.hadoop.common.component">
<!-- HADOOP-13428: This is for workaround issues of JDiff
- https://sourceforge.net/p/javadiff/bugs/19/ -->
<exec executable="patch"
input="dev-support/jdiff-workaround.patch" dir="${basedir}">
<arg value="-p3"/>
</exec>
</target>
</configuration>
</execution>
{code}
> mvn site fails due to MetricsSystemImpl class
> ---------------------------------------------
>
> Key: HADOOP-17329
> URL: https://issues.apache.org/jira/browse/HADOOP-17329
> Project: Hadoop Common
> Issue Type: Bug
> Reporter: Xiaoqiao He
> Priority: Major
>
> When prepare for branch-3.2.2 release, i found there is one issue while
> create release. And it also exist in trunk.
> command line: mvn install site site:stage -DskipTests -DskipShade -Pdist,src
> -Preleasedocs,docs
> failed log show as the following:
> {quote}[ERROR] Failed to execute goal
> org.apache.maven.plugins:maven-site-plugin:3.6:site (default-site) on project
> hadoop-common: failed to get report for
> org.apache.maven.plugins:maven-dependency-plugin: Failed to execute goal
> org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)
> on project hadoop-common: Compilation failure
> [ERROR]
> /Users/hexiaoqiao/Source/hadoop-common/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/metrics2/impl/MetricsSystemImpl.java:[298,5]
> method <T>register(java.lang.String,java.lang.String,T) is already defined
> in class org.apache.hadoop.metrics2.impl.MetricsSystemImpl{quote}
> I am not sure why source code of class MetricsSystemImpl will be changed
> while building, I try to revert HADOOP-17081 everything seems OK.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]