本文的安装版本为Hive 3.1.2,且安装为单节点。

(1) 官网:http://hive.apache.org/

(2) 上篇博客:Hadoop 3.1.3伪分布式环境安装Hive 3.1.2的异常总结

2. 常见属性配置

(1) Hive数据仓库位置

1) default数据仓库原始位置在hdfs上,默认路径为/user/hive/warehouse

2) 在仓库目录下,没有对默认的数据库default创建文件夹。如果某张表属于default数据库,直接在数据仓库目录下创建一个文件夹

3) 修改default数据仓库原始位置(将hive-default.xml.template如下配置信息拷贝到hive-site.xml文件中)

<property>
    <name>hive.metastore.warehouse.dir</name>
    <value>/user/hive/warehouse</value>
    <description>location of default database for the  
warehouse</description>
</property>
View Code

相关文章: