[
https://issues.apache.org/jira/browse/HBASE-19421?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrew Purtell updated HBASE-19421:
-----------------------------------
Attachment: HBASE-19421-branch-1.patch
I went through all the POMs and synchronized the hadoop-3.0 profiles with
those in the respective POMs on master branch.
We seem to require a dependency on hadoop-mapreduce-client-core in
hbase-common. I've added that. We have that dependency for other Hadoop
versions so I'm sure it is fine.
hbase-server needs MBeanUtil from Hadoop 2 for HRegionServer. hbase-thrift also
needs this for IncrementCoalescer. I brought in MBeanUtil. It's a very small
class with two static helper methods.
hbase-server needs MetricsServlet from hadoop 2 for HttpServer. For this I use
reflection to remove the compile time dependency on availability of this class.
Bringing in this would bring in new dependencies on Hadoop metrics details that
would also be version specific. After this change if MetricsServlet is missing
at runtime we just won't have a servlet available at "/metrics". This can be
improved later.
MockRegionServer had a bogus include that I've removed.
TestBulkLoad needed fixing for a change to the FSDataOutputStream constructors.
After this change the test compiles against both our default for the build
(2.7.4) and 3.0.0.
Fixed check-aggregate-license enforcement errors in hbase-assembly when
building against 3.0.0. Changes do not affect building against earlier
versions. (supplemental-models.xml changes are additions only.)
> branch-1 does not compile against Hadoop 3.0.0
> ----------------------------------------------
>
> Key: HBASE-19421
> URL: https://issues.apache.org/jira/browse/HBASE-19421
> Project: HBase
> Issue Type: Bug
> Affects Versions: 1.4.0
> Reporter: Andrew Purtell
> Assignee: Andrew Purtell
> Fix For: 1.4.1, 1.5.0
>
> Attachments: HBASE-19421-branch-1.patch
>
>
> Tested with {{mvn clean install -Dhadoop.profile=3.0
> -Dhadoop-three.version=3.0.0-alpha4}}
> {noformat}
> [ERROR]
> /Users/apurtell/src/hbase/hbase-common/src/main/java/org/apache/hadoop/hbase/security/User.java:[37,32]
> package org.apache.hadoop.mapred does not exist
> [ERROR]
> /Users/apurtell/src/hbase/hbase-common/src/main/java/org/apache/hadoop/hbase/security/User.java:[38,35]
> package org.apache.hadoop.mapreduce does not exist
> [ERROR]
> /Users/apurtell/src/hbase/hbase-common/src/main/java/org/apache/hadoop/hbase/security/User.java:[117,66]
> cannot find symbol
> [ERROR] symbol: class Job
> [ERROR] location: class org.apache.hadoop.hbase.security.User
> [ERROR]
> /Users/apurtell/src/hbase/hbase-common/src/main/java/org/apache/hadoop/hbase/security/User.java:[129,46]
> cannot find symbol
> [ERROR] symbol: class JobConf
> [ERROR] location: class org.apache.hadoop.hbase.security.User
> [ERROR]
> /Users/apurtell/src/hbase/hbase-common/src/main/java/org/apache/hadoop/hbase/security/User.java:[344,59]
> cannot find symbol
> [ERROR] symbol: class Job
> [ERROR] location: class
> org.apache.hadoop.hbase.security.User.SecureHadoopUser
> [ERROR]
> /Users/apurtell/src/hbase/hbase-common/src/main/java/org/apache/hadoop/hbase/security/User.java:[369,39]
> cannot find symbol
> [ERROR] symbol: class JobConf
> [ERROR] location: class
> org.apache.hadoop.hbase.security.User.SecureHadoopUser
> [ERROR]
> /Users/apurtell/src/hbase/hbase-common/src/main/java/org/apache/hadoop/hbase/security/User.java:[351,17]
> cannot find symbol
> [ERROR] symbol: class Job
> [ERROR] location: class
> org.apache.hadoop.hbase.security.User.SecureHadoopUser
> [ERROR]
> /Users/apurtell/src/hbase/hbase-common/src/main/java/org/apache/hadoop/hbase/security/User.java:[375,25]
> cannot find symbol
> [ERROR] symbol: class JobConf
> [ERROR] location: class
> org.apache.hadoop.hbase.security.User.SecureHadoopUser
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)