你的位置:首页 > 软件开发 > 数据库 > 从零自学Hadoop:Hive的CLI和JDBC

从零自学Hadoop:Hive的CLI和JDBC

发布时间:2016-02-04 09:00:10
阅读目录序Hive CLI(old CLI)Beeline CLI(new CLI)JDBCDemo下载系列索引本文版权归mephisto和博客园共有,欢迎转载,但须保留此段声明,并给出原文链接,谢谢合作。文章是哥(mephisto)写的,SourceLink 序 ...

从零自学Hadoop:Hive的CLI和JDBC

阅读目录

  • Hive CLI(old CLI)
  • Beeline CLI(new CLI)
  • JDBC
  • Demo下载
  • 系列索引

本文版权归mephisto和博客园共有,欢迎转载,但须保留此段声明,并给出原文链接,谢谢合作。

 

     上一篇,我们对hive的数据导出,以及集群Hive数据的迁移进行描述。了解到了基本的hive导出操作。这里,我们将对hive的CLI及JDBC这些实用性很强的两个方便进行简要的介绍。

   下面我们开始介绍hive的CLI和JDBC。

Hive CLI(old CLI)

一:说明

  在0.11之前只有Hive CLI,他需要安装Hive Client才能使用。是一个重量级的命令行工具。连接的服务器是HiveServer1。

二:语法:

usage: hive -d,--define <key=value>     Variable subsitution to apply to hive                 commands. e.g. -d A=B or --define A=B -e <quoted-query-string>     SQL from command line -f <filename>          SQL from files -H,--help            Print help information -h <hostname>          Connecting to Hive Server on remote host  --hiveconf <property=value>  Use value for given property  --hivevar <key=value>     Variable subsitution to apply to hive                 commands. e.g. --hivevar A=B -i <filename>          Initialization SQL file -p <port>            Connecting to Hive Server on port number -S,--silent           Silent mode in interactive shell -v,--verbose           Verbose mode (echo executed SQL to the                 console)

原标题:从零自学Hadoop:Hive的CLI和JDBC

关键词:

*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

可能感兴趣文章

我的浏览记录