HCatClient API can be used for many Hive related functions like -
- Create/Drop Hive schemas/tables.
- Update Hive table schema.
- Add/Drop Partitions.
- Update Table name.
Driver API can be used to -
- Execute Hive query.
- Get query plan.
The below program illustrates the use of HCatClient to create a database and create a table -
Now we can modify the above table schema using HCatClient -
Now we can use Driver API to drop table and database
It’s great to come across a blog every once in a while that isn’t the same out of date rehashed material. Fantastic read.
ReplyDeleteMachine Learning Training in Chennai |Machine Learning Training Institute in Chennai