HIVE项目 - zhongjiajie/zhongjiajie.github.com GitHub Wiki

HIVE项目

概况

从2015年6月开始,Hive有两条主线(main-line),branch-1master,分别对应的hive版本是hive1.x以及hive2.x,hive2.x不向后兼容hive1.x。这些区别是社区在hive1.3发布之后做的改变(分成了branch-1和master)。有时候release的版本号和原始分支号不同,具体的如下:

release number original number
1.0.0 0.14.1
1.1.0 0.15.0
2.3.0 2.2.0

代码情况

Hive使用JIRA控制全部的代码、文档、infra,Fix Version/s中会显示这个issue/feature完成的分支内容。

管理配置

设置配置

配置管理见confluence

  • Hive by default gets its configuration from <install-dir>/conf/hive-default.xml
  • The location of the Hive configuration directory can be changed by setting the HIVE_CONF_DIR environment variable(hive-site.sh).
  • Configuration variables can be changed by (re-)defining them in <install-dir>/conf/hive-site.xml
  • Log4j configuration is stored in <install-dir>/conf/hive-log4j.properties
  • Hive configuration is an overlay on top of Hadoop – it inherits the Hadoop configuration variables by default.
  • Hive configuration can be manipulated by:
    • Editing hive-site.xml and defining any desired variables (including Hadoop variables) in it
    • Using the set command (see next section)
    • Invoking Hive (deprecated), Beeline or HiveServer2 using the syntax:
      • bin/hive --hiveconf x1=y1 --hiveconf x2=y2 //this sets the variables x1 and x2 to y1 and y2 respectively
      • bin/hiveserver2 --hiveconf x1=y1 --hiveconf x2=y2 //this sets server-side variables x1 and x2 to y1 and y2 respectively
      • bin/beeline --hiveconf x1=y1 --hiveconf x2=y2 //this sets client-side variables x1 and x2 to y1 and y2 respectively.
    • Setting the HIVE_OPTS environment variable to --hiveconf x1=y1 --hiveconf x2=y2 which does the same as above.
  • 在hive-cli或者beeline中使用set <setting-name>=<value>;完成设置

查看配置

  • 查看指定配置: set <setting_name>;
  • 查看全部配置:set;
  • 查看和hadoop不一样的配置:set -v;

⚠️ **GitHub.com Fallback** ⚠️