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:
> hi guys,
> &nbsp; &nbsp; When I compiled the toolkit downloaded from gitup,
the
> display failed.
> &nbsp; &nbsp;&nbsp;My commands are as follows??
> &nbsp; &nbsp; git&nbsp; clone&nbsp;
> https://github.com/apache/hbase-operator-tools.git
> &nbsp
<https://github.com/apache/hbase-operator-tools.git&nbsp>; &nbsp;
> cd hbase-operator-tools
> &nbsp; &nbsp; vi pom.xml (Modify HBase version configuration)
> &nbsp; &nbsp; mvn clean package
>
>
> But after the "mvn clean ..." command is executed, the error is reported
> as follows
>
>
> "&nbsp; INFO] Apache HBase Operator Tools ........................
SUCCESS
> [&nbsp; 3.644 s]
> [INFO] Apache HBase - HBCK2 ............................... FAILURE
> [&nbsp; 6.522 s]
> [INFO] Apache HBase Operator Tools - Assembly ............. SKIPPED
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time:&nbsp; 10.347 s
> [INFO] Finished at: 2019-10-14T15:29:27+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:&nbsp;
> [ERROR]
>
/home/cdcshaod/packages/hbase-operator-tools/hbase-hbck2/src/main/java/org/apache/hbase/HBCK2.java:[49,38]
> cannot find symbol
> [ERROR]&nbsp; &nbsp;symbol:&nbsp; &nbsp;class Hbck
> [ERROR]&nbsp; &nbsp;location: package
org.apache.hadoop.hbase.client
> [ERROR]
>
/home/cdcshaod/packages/hbase-operator-tools/hbase-hbck2/src/main/java/org/apache/hbase/HBCK2.java:[138,28]
> cannot find symbol
> [ERROR]&nbsp; &nbsp;symbol:&nbsp; &nbsp;class Hbck
> [ERROR]&nbsp; &nbsp;location: class org.apache.hbase.HBCK2
> [ERROR]
>
/home/cdcshaod/packages/hbase-operator-tools/hbase-hbck2/src/main/java/org/apache/hbase/HBCK2.java:[267,22]
> cannot find symbol
> [ERROR]&nbsp; &nbsp;symbol:&nbsp; &nbsp;class Hbck
> [ERROR]&nbsp; &nbsp;location: class org.apache.hbase.HBCK2
> [ERROR]
>
/home/cdcshaod/packages/hbase-operator-tools/hbase-hbck2/src/main/java/org/apache/hbase/HBCK2.java:[284,24]
> cannot find symbol
> [ERROR]&nbsp; &nbsp;symbol:&nbsp; &nbsp;class Hbck
> [ERROR]&nbsp; &nbsp;location: class org.apache.hbase.HBCK2
> [ERROR]
>
/home/cdcshaod/packages/hbase-operator-tools/hbase-hbck2/src/main/java/org/apache/hbase/HBCK2.java:[341,33]
> cannot find symbol
> [ERROR]&nbsp; &nbsp;symbol:&nbsp; &nbsp;class Hbck
> [ERROR]&nbsp; &nbsp;location: class org.apache.hbase.HBCK2
> [ERROR] -&gt; [Help 1]
> [ERROR]&nbsp;
> [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]&nbsp;
> [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]&nbsp;
> [ERROR] After correcting the problems, you can resume the build with the
> command
> [ERROR]&nbsp; &nbsp;mvn <goals&gt; -rf :hbase-hbck2&nbsp;
&nbsp; &nbsp;
> &nbsp;"
>
>
> I wonder if you have ever encountered such a mistake.
>
>
>
>
>
>
> DavidShao
>
>
> &nbsp; &nbsp;&nbsp;