[ https://issues.apache.org/jira/browse/YARN-7346?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16370444#comment-16370444 ]
Rohith Sharma K S commented on YARN-7346: ----------------------------------------- Ahh I see! I guess src/main/java package is compiled by default if it exist. If we want to override that compilation then we can use below property which is NOT recommended. {code} <configuration> <skipMain>true</skipMain> </configuration> {code} However let do following things which I feel that's better # Option-1 ## Lets activate module hbase-1 vs hbase-2 based on profile is set as we are doing in last patch. It compiles only respective modules based on profile is set. ## Let add <skipMain>true</skipMain> for hbase-2 for default compilation. It allows default compilation NOT to happen. This is only for avoiding jenkins not to run compile against HBase-2.0 unless profile is activated. # Option-2 ## Lets compile both hbase-1 and hbase-2 all the time which ensures compilation is not broken with patches. ## Include co-process jar in distribution only based on the profile set. ## For this we need to enable corresponding dependencies in hbase-2 modules as well. ## For test, default profile can be set to hbase1 by default. > Fix compilation errors against hbase2 beta release > -------------------------------------------------- > > Key: YARN-7346 > URL: https://issues.apache.org/jira/browse/YARN-7346 > Project: Hadoop YARN > Issue Type: Sub-task > Reporter: Ted Yu > Assignee: Vrushali C > Priority: Major > Attachments: YARN-7346.00.patch, YARN-7346.01.patch, > YARN-7346.02.patch, YARN-7346.03-incremental.patch, YARN-7346.03.patch, > YARN-7346.04.patch, YARN-7346.prelim1.patch, YARN-7346.prelim2.patch, > YARN-7581.prelim.patch > > > When compiling hadoop-yarn-server-timelineservice-hbase against 2.0.0-alpha3, > I got the following errors: > https://pastebin.com/Ms4jYEVB > This issue is to fix the compilation errors. -- This message was sent by Atlassian JIRA (v7.6.3#76005) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org