6

I have hive script custsales.hql now I want to run it from hive cli as

hive (pract5)> run /user/training/hdfs_location/custsales.hql

but it does not execute. Please guide. I know we can run it from command line with

$ hive -f /home/training/local_location/custsales.hql

but this is not my requirement.

leftjoin
  • 36,950
  • 8
  • 57
  • 116
user8167344
  • 353
  • 2
  • 6
  • 17

1 Answers1

4

Use source path/to/script command.

leftjoin
  • 36,950
  • 8
  • 57
  • 116