Ask Your Question

how do I drop multiple hive tables before writing to it

asked 2019-11-14 08:54:51 -0600

Ranjan Mishra gravatar image

I have to load multiple s3 CSV to hive. The file name, contents keep on changing in every load so I have to drop the existing tables in HIVE, create and full refresh. In the same hive database there are other tables but I can use wild card as the tables for this particular load can have a fixed prefix such as APP10_

how do I do it

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2019-12-06 08:51:48 -0600

Gangi gravatar image

The same can be achieved by enabling the hive Query as start event for the pipeline and specify the drop statement in start event-Hive Query Configuration Tab as below.


General Tab of pipeline--> select Hive Query as start event --> this will opens a tab start event-Hive Query.

In start event-Hive Query configure required details like hive jdbs Url, query that you want run(drop table if exists <hiveschema>.<tablename>)

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2019-11-14 08:54:51 -0600

Seen: 45 times

Last updated: 13 hours ago