The Hive scripts are used to collectively execute a series of SQL Commands. In other words, multiple SQL statements can be grouped and executed all at once. This helps to reduce the time and effort expended in manually drafting and executing any command.
a) Create
a Database à
create db name;
b) Create
a table
c) Load
the data
d) Select
the data
We need to do above steps in script.
Go to Cloudera / Cloudxlab:
Create file à Vi req_b10.hql (below
data insert in this file)
No comments:
Post a Comment