odbc - Hive Update and Delete -
i using hive 1.0.0 version , hadoop 2.6.0 , cloudera odbc driver. trying update , delete data in hive database cloudera hiveodbc driver throws error. here error.
what have done ?
create:
create database geometry; create table odbctest (employeeid int,firstname string,designation string, salary int,department string) clustered (department) 3 buckets stored orcfile tblproperties ('transactional'='true');
table created.
insert:
insert table geometry.odbctest values(10,'hive','hive',0,'b');
by passing above query data inserting database.
update:
when trying update following error getting
update geometry.odbctest set salary = 50000 employeeid = 10;
sql> update geometry.odbctest set salary = 50000 employeeid = 10;
[s1000][cloudera][hiveodbc] (55) insert operation not support table: hive.geometry.odbctest
[isql]error: not sqlprepare
delete:
when trying delete following error getting
delete geometry.odbctest employeeid=10;
sql> delete geometry.odbctest employeeid=10;
[s1000][cloudera][hiveodbc] (55) insert operation not support table: hive.geometry.odbctest
[isql]error: not sqlprepare
can me out,
you have done couple of required steps properly:
- orc format
- bucketed table
a cause be: 1 or more of following hive settings not included:
these configuration parameters must set appropriately turn on transaction support in hive:
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 (for 1 instance of thrift metastore service) hive.compactor.worker.threads – positive number on @ least 1 instance of thrift metastore service
the full requirements transaction support here: https://cwiki.apache.org/confluence/display/hive/hive+transactions
if have verified above settings in place
describe extended odbctest;
to evaluate transaction related characteristics.
Comments
Post a Comment