Sano babu
Sano babu

Reputation: 105

How can we pass multiple hql files to hive/beeline?

I want to run file_1.hql and file_2.hql in one hive session. How can I do that? I was thinking of passing both files as hive -f file_1.hql file_2.hql. But -f only takes one file. Any suggestion?

Upvotes: 1

Views: 2128

Answers (1)

parisni
parisni

Reputation: 1152

What about using bash:

hive -e "$(cat file1.hql file2.hql)"

Upvotes: 3

Related Questions