hbase hive集成数据类型Map <string,string>的值为{&#34; - &#34;:null}失败</string,string>

时间:2014-10-10 06:38:34

标签: hadoop null hive hbase

我在hbase列中有一列映射到hive Map数据类型。现在我想使用配置单元填充数据,但在我的配置单元表中,我的值为{“ - ”:null}所以它失败并出现异常。

Caused by: java.lang.NullPointerException
    at org.apache.hadoop.hive.serde2.lazy.LazyUtils.writePrimitiveUTF8(LazyUtils.java:226)
    at org.apache.hadoop.hive.hbase.HBaseSerDe.serialize(HBaseSerDe.java:737)
    at org.apache.hadoop.hive.hbase.HBaseSerDe.serialize(HBaseSerDe.java:726)
    at org.apache.hadoop.hive.hbase.HBaseSerDe.serializeField(HBaseSerDe.java:659)
    at org.apache.hadoop.hive.hbase.HBaseSerDe.serialize(HBaseSerDe.java:601)
    at org.apache.hadoop.hive.ql.exec.FileSinkOperator.processOp(FileSinkOperator.java:618)
    at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:504)
    at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:847)
    at org.apache.hadoop.hive.ql.exec.SelectOperator.processOp(SelectOperator.java:87)
    at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:504)
    at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:847)
    at org.apache.hadoop.hive.ql.exec.TableScanOperator.processOp(TableScanOperator.java:91)
    at org.apache.hadoop.hive.ql.exec.Operator.process(Operator.java:504)
    at org.apache.hadoop.hive.ql.exec.Operator.forward(Operator.java:847)
    at org.apache.hadoop.hive.ql.exec.MapOperator.process(MapOperator.java:519)
    ... 9 more

如果我尝试使用str_to_map('{"-":null}',',',':')插入,那么它运行正常。 请帮助我解决问题

0 个答案:

没有答案