Hive CLI has a -i <file> option. We create a pre.sql file with hive
settings and then specify:
hive -i pre.hql -f query.hql


On Mon, Jun 16, 2014 at 2:52 PM, Jinyuan Zhou <zhou.jiny...@gmail.com>
wrote:

> Hi,
> I like to include common settings in one place when I run different hql
> script via hive cli.
> My setting is really script specific, with my understanding of hive,
> hadoop,  it is not very appropriate to put  these settings in
> hive-site.xml, or hadoop configruation files. I don't want to repeat these
> settings in every hql script either. I know pig has a mechinizsm to
> importing pig script into another script. Is there similar mechnism for
> hive?
> Thanks,
>
> --
> -- Jinyuan (Jack) Zhou
>

Reply via email to