HBaseZeroCopyByteString

ZeroCopyLiteralByteString cannot access superclass

和自甴很熟 提交于 2019-12-07 04:00:31
问题描述 在HBase上运行MapReduce作业时,报如下异常:IllegalAccessError: class com.google.protobuf.HBaseZeroCopyByteString cannot access its superclass com.google.protobuf.LiteralByteString 使用HBase环境如下:CDH5.0.1, HBase版本:0.96.1 问题原因 This isssue occurs because of an optimization introduced in HBASE-9867 that inadvertently introduced a classloader dependency. This affects both jobs using the -libjars option and "fat jar," jobs which package their runtime dependencies in a nested lib folder. 这个问题的发生是由于优化了 HBASE-9867 引起的,无意间引进了一个依赖类加载器。它影响使用-libjars参数和使用 fat jar两种模式的job. fat jar模式Hadoop的一个特殊功能:可以读取操作目录中