Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Update and Delete are not working in Hive ?

Re: Update and Delete are not working in Hive ?

Contributor

Hive version : Hive 1.1.0-cdh5.13.0,

Still i didnt get the solution...

Re: Update and Delete are not working in Hive ?

Champion

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? 

Re: Update and Delete are not working in Hive ?

Explorer

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!

Re: Update and Delete are not working in Hive ?

Champion

@AlexMulti

 

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. 

 

Reference https://cwiki.apache.org/confluence/display/Hive/Hive+Transactions#HiveTransactions-NewConfiguration...

Highlighted

Re: Update and Delete are not working in Hive ?

Explorer

@csgunaThank you for the reply!

 

I am using Parquet and you are right, it is not supported for UPDATE and DELETE operations. Only ORC is supported.

 

@syamsriI suggest the last post from csguna should be marked as the correct answer.

Don't have an account?
Coming from Hortonworks? Activate your account here