欢迎投稿

今日深度:

hive命令行,

hive命令行,


1.hive执行sql并保存结果到本地

hive -S -e "select  *  from table_name "  >> /tmp/comandinfo.txt

2.产看hive的某个属性

hive -s -e "set" | grep  (查找关键字)

3.执行hive文件

hive -f   /path/myhive.sql

4.hive中执行shell指令

hive> ! pwd

5.hive中执行HDFS命令

hive>  dfs -ls  /   

www.htsjk.Com true http://www.htsjk.com/hive/37359.html NewsArticle hive命令行, 1.hive执行sql并保存结果到本地 hive -S -e "select  *  from table_name "  /tmp/comandinfo.txt 2.产看hive的某个属性 hive -s -e "set" | grep  (查找关键字) 3.执行hive文件 hive -f   /path/myhive.sq...
相关文章
    暂无相关文章
评论暂时关闭