Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-19167

RowCounter not working on 2.0.0-alpha3

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 2.0.0-alpha-3
    • Fix Version/s: 2.0.0-beta-1, 2.0.0
    • Component/s: hadoop2, mapreduce, shell
    • Labels:
      None
    • Environment:

      Ubuntu 16.04, Distributed 3-Node Deployment, all running 2.0.0-alpha3

      Description

      Steps to reproduce:

      • Create a table 'w' (or any other name)
      • Execute in shell: ./hbase org.apache.hadoop.hbase.mapreduce.RowCounter w (Where 'w' is my tablename)

      Expected Behavior:

      • I receive how many rows my table has

      Actual Behavior:

      • Jobs fail because org.apache.commons.lang3.ArrayUtils is not present on the classpath. Detailed Stacktrace below.

      ============== STACKTRACE
      2017-11-03 10:26:26,773 INFO [main] mapreduce.Job: Task Id : attempt_1507127903800_0002_m_000001_2, Status : FAILED
      Error: java.lang.ClassNotFoundException: org.apache.commons.lang3.ArrayUtils
      at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
      at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
      at org.apache.hadoop.hbase.HConstants.<clinit>(HConstants.java:1144)
      at org.apache.hadoop.hbase.shaded.protobuf.ProtobufUtil.toScan(ProtobufUtil.java:1091)
      at org.apache.hadoop.hbase.mapreduce.TableMapReduceUtil.convertStringToScan(TableMapReduceUtil.java:576)
      at org.apache.hadoop.hbase.mapreduce.TableInputFormat.setConf(TableInputFormat.java:122)
      at org.apache.hadoop.util.ReflectionUtils.setConf(ReflectionUtils.java:76)
      at org.apache.hadoop.util.ReflectionUtils.newInstance(ReflectionUtils.java:136)
      at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:749)
      at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
      at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:175)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              silvanheller Silvan Heller
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: