开发者社区> 问答> 正文

hive当中hive shell 命令导出怎么做?

hive当中hive shell 命令导出怎么做?

展开
收起
游客ahv54x37wvm7u 2021-12-08 19:56:09 326 0
1 条回答
写回答
取消 提交回答
  • 基本语法:(hive -f/-e 执行语句或者脚本 > file)
    
    hive -e "select * from myhive.score;" > /export/servers/exporthive/score.txt
    
    hive -f export.sh > /export/servers/exporthive/score.txt
    
    2021-12-08 19:56:25
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Comparison of Spark SQL with Hive 立即下载
Hive Bucketing in Apache Spark 立即下载
2019大数据技术公开课第五季—Hive迁移到MaxCompute最佳实践 立即下载