Rajesh Balamohan created HIVE-12030:
---------------------------------------
Summary: Hive throws NPE with ACID enabled tables
Key: HIVE-12030
URL: https://issues.apache.org/jira/browse/HIVE-12030
Project: Hive
Issue Type: Bug
Reporter: Rajesh Balamohan
Code based on master: commit 507442319985198466b4f6c2ba18c6b068d8435e Date: Thu
Oct 1
Exception
=========
{noformat}
Caused by: java.io.IOException: java.lang.NullPointerException
at
org.apache.hadoop.hive.io.HiveIOExceptionHandlerChain.handleRecordReaderCreationException(HiveIOExceptionHandlerChain.java:97)
at
org.apache.hadoop.hive.io.HiveIOExceptionHandlerUtil.handleRecordReaderCreationException(HiveIOExceptionHandlerUtil.java:57)
at
org.apache.hadoop.hive.ql.io.HiveInputFormat.getRecordReader(HiveInputFormat.java:253)
at
org.apache.hadoop.mapred.split.TezGroupedSplitsInputFormat$TezGroupedSplitsRecordReader.initNextRecordReader(TezGroupedSplitsInputFormat.java:193)
... 25 more
Caused by: java.lang.NullPointerException
at
org.apache.hadoop.hive.ql.io.AcidUtils.deserializeDeltas(AcidUtils.java:371)
at
org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.getReader(OrcInputFormat.java:1272)
at
org.apache.hadoop.hive.ql.io.orc.OrcInputFormat.getRecordReader(OrcInputFormat.java:1190)
at
org.apache.hadoop.hive.ql.io.HiveInputFormat.getRecordReader(HiveInputFormat.java:250)
... 26 more
{noformat}
Steps to reproduce the issue:
=============================
{noformat}
--hiveconf hive.support.concurrency=true --hiveconf hive.enforce.bucketing=true
--hiveconf hive.exec.dynamic.partition.mode=nonstrict --hiveconf
hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager --hiveconf
hive.compactor.initiator.on=true --hiveconf hive.compactor.worker.threads=1
DROP TABLE `lineitem_acid_bucket`;
CREATE TABLE `lineitem_acid_bucket`(
`l_orderkey` bigint,
`l_partkey` bigint,
`l_suppkey` bigint,
`l_linenumber` bigint,
`l_quantity` double,
`l_extendedprice` double,
`l_discount` double,
`l_tax` double,
`l_returnflag` string,
`l_linestatus` string,
`l_shipdate` string,
`l_commitdate` string,
`l_receiptdate` string,
`l_shipinstruct` string,
`l_shipmode` string,
`l_comment` string)
CLUSTERED BY (l_orderkey)
INTO 10 BUCKETS STORED AS ORC TBLPROPERTIES("transactional"="true");
INSERT INTO lineitem_acid_bucket SELECT * FROM tpch_flat_orc_1000.lineitem
WHERE l_orderkey > 0 AND l_orderkey < 10000000;
INSERT INTO lineitem_acid_bucket SELECT * FROM tpch_flat_orc_1000.lineitem
WHERE l_orderkey > 10000001 AND l_orderkey < 20000000;
update lineitem_acid_bucket set l_quantity=1 where l_orderkey=5963520;
ALTER TABLE lineitem_acid_bucket COMPACT 'minor';
update lineitem_acid_bucket set l_quantity=1 where l_orderkey=5963520;
exception thrown here
{noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)