天天看點

啟動hive指令時指定參數或自定義參數

啟動hive指令時指定參數或自定義參數

在hive啟動指令中指定一個參數

hive --hiveconf hive.job.submit.username=fuxin.zhao -e "select dt,count(1) from ods.s1_userinfo where dt>='2017-02-01' group by dt;"
           

在hive啟動指令中指定多個參數,這些參數是hive-site.xml中參數,也開始自定義的慘。

hive --hiveconf hive.job.submit.username=fuxin.zhao --hiveconf hive.job.submit.group=develop -e "select dt,count(1) from ods.s1_userinfo where dt>='2017-02-01' group by dt;"
           

在resouceManager 的UI頁面中檢視job.xml檔案中可以找到如下自定義的參數:

啟動hive指令時指定參數或自定義參數

作者:

丹江湖畔養蜂子的趙大爹

出處:http://www.cnblogs.com/honeybee/

關于作者:丹江湖畔養蜂子的趙大爹

本文版權歸作者和部落格園共有,歡迎轉載,但未經作者同意必須保留此段聲明,且在文章頁面明顯位置給出原文連結

繼續閱讀