Created on 07-10-2015 03:08 PM - last edited on 01-02-2020 07:25 AM by Robert Justice
Hi ,
I am getting following errorhi in cdh 5.4.2
FAILED: SemanticException [Error 10294]: Attempt to do update or delete using transaction manager that does not support these operations.
I followed the steps and limitations:
Following are my steps........
1. New Configuration Parameters for Transactions
2. Creates Hive table with ACID support
3. Load data into Hive table
4. Do UPDATE,DELETE and INSERT
set hive.support.concurrency=true;
set hive.enforce.bucketing=true;
set hive.exec.dynamic.partition.mode=nonstrict;
set hive.txn.manager=org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;
set hive.compactor.initiator.on=true;
set hive.compactor.worker.threads=2;
CREATE TABLE abc1 (
empwork_key int,
empwork_id int,
empwork__name string,
empwork_email string,
emp_wrk_phone string,
CLUSTERED BY (empwork_id) into 2 buckets
STORED AS ORC TBLPROPERTIES ('transactional' = 'true');
-- the data is inserted from an external table which is textfile format.
INSERT INTO TABLE abc1
SELECT
empwork_key ,
empwork_id ,
empwork_name,
empwork_email ,
emp_wrk_phone ,
FROM test.abc1
;
update abc1 SET empwork_name = "Raj" where empwork_key = 70;
Please help if any suggestions or configuration changes needed.
I am setting all properties from hive shell
Created 04-05-2019 12:45 PM
Turning on ACID properties in the Hive configs worked for me. I had to restart Oozie and Hive after saving the changes.
Created 04-05-2019 12:51 PM
Created 04-09-2019 09:43 AM
/etc/hive/conf and update property in hive-site.xml
not using these ser use xml tag .
SET hive.txn.manager =org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;
SET hive.compactor.initiator.on = true;
SET hive.compactor.worker.threads = 1;
it worked for me.
Created 04-09-2019 09:48 AM
<property>
<name>hive.support.concurrency</name>
<value>true</value>
</property>
<property>
<name>hive.txn.manager</name>
<value>org.apache.hadoop.hive.ql.lockmgr.DbTxnManager</value>
</property>
<property>
<name>hive.compactor.initiator.on</name>
<value>true</value>
</property>
<property>
<name>hive.compactor.worker.threads</name>
<value>1</value>
</property>
Created 07-13-2017 11:52 AM
Hi Harsha,
I am also facing same error..
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 on 06-13-2018 01:04 PM - edited 06-13-2018 01:05 PM
It's problem with hive server. Please run UPDATE or DELETE commands on a Client machine or update the below set commands on Hive-stie.xml file.
SET hive.support.concurrency = true;
SET hive.enforce.bucketing = true;
SET hive.exec.dynamic.partition.mode = nonstrict;
SET hive.txn.manager =org.apache.hadoop.hive.ql.lockmgr.DbTxnManager;
SET hive.compactor.initiator.on = true;
SET hive.compactor.worker.threads = 1;
Created 09-14-2015 06:19 AM
Hello,
the following will work:
hive -e "set hive.auto.convert.join.noconditionaltask.size = 10000000; set hive.support.concurrency = true; set hive.enforce.bucketing = true; set hive.exec.dynamic.partition.mode = nonstrict; set hive.txn.manager = org.apache.hadoop.hive.ql.lockmgr.DbTxnManager; set hive.compactor.initiator.on = true;
set hive.compactor.worker.threads = 1 ; update abc1 SET empwork_name = "Raj" where empwork_key = 70;"
Cherif T
Created 04-25-2018 08:52 AM
I get the following:
insert into rhtest_db.val_test_2 values(15, 'testing');
Error while compiling statement: FAILED: SemanticException [Error 10293]: Unable to create temp file for insert values User [hive] is not authorized to perform [DECRYPT_EEK] on key with ACL name [hdfskey]!!
Any Ideas?