Created on 07-13-2017 11:14 AM - edited 09-16-2022 04:55 AM
Hi all,
I am not able to delete or update in hive table .
create table testTableNew(id int ,name string ) clustered by (id) into 2 buckets stored as orc TBLPROPERTIES('transactional'='true');
insert into table testTableNew values('101','syri');
select * from testtablenew;
1 | 102 | syam |
2 | 101 | syri |
3 | 101 | syri |
delete from testTableNew where id = '101';
update testTableNew
set name = praveen
where id = 101;
I have added few properties in hive-site.xml also :
hive.support.concurrency
true
hive.enforce.bucketing
true
hive.exec.dynamic.partition.mode
nonstrict
hive.txn.manager
org.apache.hadoop.hive.ql.lockmgr.DbTxnManager
hive.compactor.initiator.on
true
hive.compactor.worker.threads
2
hive.in.test
true
After restart the Hive service also same error i am facing.
Quick Start VM - 5.8 and Hive version - 1.1.0.
Please guide me to sort this issue.
Thanks,
Syam.
Created 11-30-2017 09:44 PM
Hive version : Hive 1.1.0-cdh5.13.0,
Still i didnt get the solution...
Created 12-02-2017 10:05 PM
Hi @AlexMulti @syamsri @UjjwalRana @Suribharu
are you still looking for solution ?
what version of hive are you using ?
what file format does your table has ?
what client tool are using hiveshell or beeline ?
did you perform the pre-requsites before performing the hive delete operation?
Created 12-06-2017 06:03 AM
Hi @csguna,
I haven't found any solutions to the problem (tried Hive CLI and HUE query editor). I will try to do a workaround...
What do you mean by "prerequisites"?
Version:
CDH 5.12.1
Hive 1.1
Thanks!
Created on 12-07-2017 09:33 PM - edited 12-07-2017 09:37 PM
Deletes can only be performed on tables that support ACID. More over your tables's file format should be ORC
Below are the properties that needs to be set .
hive.support.concurrency true (default is false) hive.enforce.bucketing true (default is false) (Not required as of Hive 2.0) hive.exec.dynamic.partition.mode nonstrict (default is strict)
Also i would suggest you to take look into kudu.
Created 12-08-2017 07:52 AM