[
https://issues.apache.org/jira/browse/HBASE-21153?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16603859#comment-16603859
]
stack commented on HBASE-21153:
-------------------------------
Doing this seems to work:
{code}
diff --git a/bin/hbase b/bin/hbase
index 7fe61b40eb..552366897d 100755
--- a/bin/hbase
+++ b/bin/hbase
@@ -219,7 +219,7 @@ if [ "${INTERNAL_CLASSPATH}" != "true" ]; then
done
# If command can use our shaded client, use it
- declare -a commands_in_client_jar=("classpath" "version")
+ declare -a commands_in_client_jar=("classpath")
for c in "${commands_in_client_jar[@]}"; do
if [ "${COMMAND}" = "${c}" ]; then
if [ -n "${HADOOP_IN_PATH}" ] && [ -f "${HADOOP_IN_PATH}" ]; then
{code}
Good by you [~busbey]?
> 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)