Subject: Failure to compile package hbase-operator-tools


hi ,busbey
    
   The reason I want to compile the HBase operator tools package myself is that I can't execute HBCK commands using the existing jar package,I downloaded the executable bin package from the following address,But when I execute the bypass command, I get an error as follows
commond : hbase hbck -j /packages/hbase-operator-tools-1.0.0/hbase-hbck2/hbase-hbck2-1.0.0.jar bypass -o 993

Exception in thread "main" java.lang.UnsupportedOperationException: bypass not supported on server version=2.1.0-cdh6.1.0; needs at least a server that matches or exceeds [2.0.3, 2.1.1, 2.2.0, 3.0.0]
at org.apache.hbase.HBCK2.checkHBCKSupport(HBCK2.java:134)
at org.apache.hbase.HBCK2.bypass(HBCK2.java:335)
at org.apache.hbase.HBCK2.doCommandLine(HBCK2.java:686)
at org.apache.hbase.HBCK2.run(HBCK2.java:631)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:90)
at org.apache.hbase.HBCK2.main(HBCK2.java:865)   


So I want to compile the jar package that HBase 2.1.0 can use. But I download the SRC package from the above image address and compile it. The following errors will still be reported. Can HBase 2.1.0-cdh 6.1.0 not use HBCK2?

[INFO] Apache HBase Operator Tools ........................ SUCCESS [  1.584 s]
[INFO] Apache HBase - HBCK2 ............................... FAILURE [ 23.380 s]
[INFO] Apache HBase Operator Tools - Assembly ............. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  25.196 s
[INFO] Finished at: 2019-10-15T19:49:33+08:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project hbase-hbck2: Compilation failure: Compilation failure: 
[ERROR] /home/cdcshaod/packages/hbase-operator-tools-1.0.0/hbase-hbck2/src/main/java/org/apache/hbase/HBCK2.java:[49,38] cannot find symbol
[ERROR]   symbol:   class Hbck
[ERROR]   location: package org.apache.hadoop.hbase.client
[ERROR] /home/cdcshaod/packages/hbase-operator-tools-1.0.0/hbase-hbck2/src/main/java/org/apache/hbase/HBCK2.java:[139,28] cannot find symbol
[ERROR]   symbol:   class Hbck
[ERROR]   location: class org.apache.hbase.HBCK2
[ERROR] /home/cdcshaod/packages/hbase-operator-tools-1.0.0/hbase-hbck2/src/main/java/org/apache/hbase/HBCK2.java:[266,22] cannot find symbol
[ERROR]   symbol:   class Hbck
[ERROR]   location: class org.apache.hbase.HBCK2
[ERROR] /home/cdcshaod/packages/hbase-operator-tools-1.0.0/hbase-hbck2/src/main/java/org/apache/hbase/HBCK2.java:[283,24] cannot find symbol
[ERROR]   symbol:   class Hbck
[ERROR]   location: class org.apache.hbase.HBCK2
[ERROR] /home/cdcshaod/packages/hbase-operator-tools-1.0.0/hbase-hbck2/src/main/java/org/apache/hbase/HBCK2.java:[340,33] cannot find symbol
[ERROR]   symbol:   class Hbck
[ERROR]   location: class org.apache.hbase.HBCK2
[ERROR] -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :hbase-hbck2


------------------ 原始邮件 ------------------
发件人: "busbey"<[EMAIL PROTECTED]>;
发送时间: 2019年10月14日(星期一) 晚上9:21
收件人: "Hbase-User"<[EMAIL PROTECTED]>;

主题: Re: Failure to compile package hbase-operator-tools

Hi!

Git holds the in progress work of the project and isn't intended for
downstream use. Please try to use the published hbase-operator-tools and
let us know if you have an issue. You can find a link to the current
release on our downloads page:

http://hbase.apache.org/downloads.html
Alternatively, feel free to subscribe to [EMAIL PROTECTED] and bring up
any issues you have trying to work with the in progress stuff.

On Mon, Oct 14, 2019, 02:50 DavdShao <[EMAIL PROTECTED]> wrote: