对象存储服务 OBS-Presto对接OBS:Catalog配置文件(重点)

时间:2024-03-25 20:27:49

Catalog配置文件(重点)

hive connector配置如下:

  1. 在etc目录下创建catalog目录
  2. 创建一个hive connector的配置文件:hive.properties
# hive.properties
#连接名
connector.name=hive-hadoop2
#配置hive metastore连接
hive.metastore.uri=thrift://192.168.XX.XX:9083
#指定hadoop的配置文件,注意core-site.xml需要按照https://github.com/huaweicloud/obsa-hdfs/tree/master/release/doc配置
hive.config.resources=/home/modules/hadoop-2.8.3/etc/hadoop/core-site.xml,/home/modules/hadoop-2.8.3/etc/hadoop/hdfs-site.xml,/home/modules/hadoop-2.8.3/etc/hadoop/mapred-site.xml
#给删表权限
hive.allow-drop-table=true
support.huaweicloud.com/bestpractice-obs/obs_05_1511.html