YARN-7032. [ATSv2] NPE while starting hbase co-processor when HBase authorization is enabled. Contributed by Rohith Sharma K S.
This commit is contained in:
parent
41b581012a
commit
d62932c3b2
|
@ -98,7 +98,9 @@ public class FlowRunCoprocessor extends BaseRegionObserver {
|
||||||
if ((attributes != null) && (attributes.size() > 0)) {
|
if ((attributes != null) && (attributes.size() > 0)) {
|
||||||
for (Map.Entry<String, byte[]> attribute : attributes.entrySet()) {
|
for (Map.Entry<String, byte[]> attribute : attributes.entrySet()) {
|
||||||
Tag t = HBaseTimelineStorageUtils.getTagFromAttribute(attribute);
|
Tag t = HBaseTimelineStorageUtils.getTagFromAttribute(attribute);
|
||||||
tags.add(t);
|
if (t != null) {
|
||||||
|
tags.add(t);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
byte[] tagByteArray = Tag.fromList(tags);
|
byte[] tagByteArray = Tag.fromList(tags);
|
||||||
NavigableMap<byte[], List<Cell>> newFamilyMap = new TreeMap<>(
|
NavigableMap<byte[], List<Cell>> newFamilyMap = new TreeMap<>(
|
||||||
|
|
Loading…
Reference in New Issue