hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steve Loughran (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-3400) [JDK 8] Build Failure due to unreported exceptions in RPCUtil
Date Thu, 26 Mar 2015 10:22:54 GMT

    [ https://issues.apache.org/jira/browse/YARN-3400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14381661#comment-14381661
] 

Steve Loughran commented on YARN-3400:
--------------------------------------

I'd seen this too. Given that jenkins is happy with it, and you can replicate with the javac
version updated:

+1

> [JDK 8] Build Failure due to unreported exceptions in RPCUtil 
> --------------------------------------------------------------
>
>                 Key: YARN-3400
>                 URL: https://issues.apache.org/jira/browse/YARN-3400
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Robert Kanter
>            Assignee: Robert Kanter
>         Attachments: YARN-3400.patch
>
>
> When I try compiling Hadoop with JDK 8 like this
> {noformat}
> mvn clean package -Pdist -Dtar -DskipTests -Djavac.version=1.8
> {noformat}
> I get this error:
> {noformat}
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile
(default-compile) on project hadoop-yarn-common: Compilation failure: Compilation failure:
> [ERROR] /Users/rkanter/dev/hadoop-common2/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/ipc/RPCUtil.java:[101,11]
unreported exception java.lang.Throwable; must be caught or declared to be thrown
> [ERROR] /Users/rkanter/dev/hadoop-common2/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/ipc/RPCUtil.java:[104,11]
unreported exception java.lang.Throwable; must be caught or declared to be thrown
> [ERROR] /Users/rkanter/dev/hadoop-common2/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/ipc/RPCUtil.java:[107,11]
unreported exception java.lang.Throwable; must be caught or declared to be thrown
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message