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

Sean Busbey commented on HBASE-21153:
-------------------------------------

as backgound, currently the hbase script carves out those commands that _won't_ 
work in the client tarball. Everything else is expected to work either there or 
in the big-ball-of-everything tarball.

Current carve-out in master:

{code}
  if [ "${in_omnibus_tarball}" = "true" ]; then
    echo "  wal             Write-ahead-log analyzer"
    echo "  hfile           Store file analyzer"
    echo "  zkcli           Run the ZooKeeper shell"
    echo "  master          Run an HBase HMaster node"
    echo "  regionserver    Run an HBase HRegionServer node"
    echo "  zookeeper       Run a ZooKeeper server"
    echo "  rest            Run an HBase REST server"
    echo "  thrift          Run the HBase Thrift server"
    echo "  thrift2         Run the HBase Thrift2 server"
    echo "  clean           Run the HBase clean up script"
  fi
{code}

Looking at our nightly test of the convenience binaries, we only ask the big 
tarball for the hbase version and not the client tarball.

But just looking at the big tarball, it worked on master 
[ref|https://builds.apache.org/job/HBase%20Nightly/job/master/474/artifact/output-integration/hadoop-2.log/*view*/]:
{code}
HBase version information:
HBase 3.0.0-SNAPSHOT
Source code repository 
file:///home/jenkins/jenkins-slave/workspace/HBase_Nightly_master-4PMG3QPNOXT5YRQZS7HMZP3GLNX6XSF6DVHYXYIB5BWQ75VW3CPA/unpacked_src_tarball
 revision=Unknown
Compiled by jenkins on Wed Sep  5 07:46:22 UTC 2018
>From source with checksum df3c1648082bfdedfd87b66ce0000f42
{code}

Same stuff looks to work on branch-2.1 
[ref|https://builds.apache.org/job/HBase%20Nightly/job/branch-2.1/280/artifact/output-integration/hadoop-2.log/*view*/]:
{code}
HBase version information:
HBase 2.1.1-SNAPSHOT
Source code repository 
file:///home/jenkins/jenkins-slave/workspace/HBase_Nightly_branch-2.1-S5GA5UYEBNAEMXMEVWGCXQO7HNXNX47M5KZBXWNNXMFDW4LAP27Q/unpacked_src_tarball
 revision=Unknown
Compiled by jenkins on Wed Sep  5 07:45:42 UTC 2018
>From source with checksum d505e825f8e7ffee84596e2980d49210
{code}

Maybe the issue is with the other script I gave you? Can you try to use the 
commands on a vanilla hbase assembly?

> hbase version broke in 2.1+
> ---------------------------
>
>                 Key: HBASE-21153
>                 URL: https://issues.apache.org/jira/browse/HBASE-21153
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 2.1.0
>            Reporter: stack
>            Assignee: stack
>            Priority: Major
>             Fix For: 2.1.1
>
>
> When I run the {{hbase version}} command it comes back with:
> {code}$ ./bin/hbase version
> Error: Could not find or load main class 
> org.apache.hadoop.hbase.util.GetJavaProperty
> Error: Could not find or load main class 
> org.apache.hadoop.hbase.util.VersionInfo{code}
> The two classes are in hbase-commons.
> The nice shaded refactoring of our bin/hbase -- i.e. using shaded jars 
> wherever possible -- may have overstretched expecting version to work with 
> shaded client ([~busbey] ?).  If so, fix is < one-liner.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to