【问题标题】:Can't find the method when use Hbase RowCounter使用 Hbase RowCounter 时找不到方法
【发布时间】:2019-02-10 02:52:39
【问题描述】:

我的问题是我能否/如何在独立的 hbase 中使用 mapreduce.RowCounter。

我在没有 hadoop 的 docker 中运行了一个独立的 hbase(1.3.1)。

为了使用rowCounter,我下载jar包(org\apache\hbase\hbase-mapreduce\2.0.0\hbase-mapreduce-2.0.0.jar)放在/hbase/lib下,然后重启码头工人。

当我运行脚本:org.apache.hadoop.hbase.mapreduce.RowCounter 时,出现:ArgumentError: Java package org.apache.hadoop.hbase.mapreduce' does not have a methodRowCounter'。

我猜是因为路径错误,或者mapReduce是基于hdfs的,所以它不能在没有hadoop的独立hbase中运行。

但我缺乏验证它的知识。

参考: Hbase quickly count number of rows

【问题讨论】:

  • 很抱歉,但是我找到了解决问题的方法。它出错了,因为我首先启动了hbase shell并运行了setence。应该是:运行hbase org.apache.hbase。 hbase/bin 下的 mapreduce.RowCounter 'tablename' 。

标签: java hadoop mapreduce hbase


【解决方案1】:

行计数器基于 map reduce。所以你需要纱线来运行它。没有hadoop就不可能运行它。检查您的 hadoop 安装并确保 yarn 已启动。

【讨论】:

    猜你喜欢
    • 2016-11-26
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-05-21
    • 2015-11-24
    • 2020-01-22
    相关资源
    最近更新 更多