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?
Asked
Active
Viewed 2,024 times
1 Answers
3
What about using bash:
hive -e "$(cat file1.hql file2.hql)"

parisni
- 920
- 7
- 20
-
Updated solution works, but cat showdata1.sql showdata.sql | hive -f - never worked – roh Feb 15 '18 at 14:16
-