Can hiveconf variables be loaded from a file? (Separate from the HiveQL file)

前端 未结 1 1874
小蘑菇
小蘑菇 2021-01-22 00:07

I often have a large block of HiveQL that I want to run multiple times with different settings for some variables.

A simple example would be:

set mindate         


        
相关标签:
1条回答
  • 2021-01-22 00:28

    Set your variables in the config file and load this file in your hql script:

     source /path_to_your_config_file/config.hql; 
    
    0 讨论(0)
提交回复
热议问题