[
https://issues.apache.org/jira/browse/HBASE-19167?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16237881#comment-16237881
]
stack commented on HBASE-19167:
-------------------------------
Thank you for trying alpha3 and filing the issue [~silvanheller]. We updated
out commons lang lib but it looks like we forgot to add reference to it so it
gets bundled when we launch MR jobs. The place to add it is
#addHBaseDependencyJars in TableMapReduceUtil.java (There is one in mapreduce
package and another in mapred package). Will fix soon unless you beat us to it.
Thanks again.
> RowCounter not working on 2.0.0-alpha3
> --------------------------------------
>
> Key: HBASE-19167
> URL: https://issues.apache.org/jira/browse/HBASE-19167
> Project: HBase
> Issue Type: Bug
> Components: hadoop2, mapreduce, shell
> Affects Versions: 2.0.0-alpha-3
> Environment: Ubuntu 16.04, Distributed 3-Node Deployment, all running
> 2.0.0-alpha3
> Reporter: Silvan Heller
> Priority: Minor
>
> 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)
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)