一、下载和配置
Iceberg与Hive 2和Hive 3.1.2/3的集成,支持以下特性:
- 创建表
- 删除表
- 读取表
- 插入表(INSERT into)
更多功能需要Hive 4.x(目前alpha版本)才能支持。
1、下载
wget https://search.maven.org/remotecontent?filepath=org/apache/iceberg/iceberg-hive-runtime/1.1.0/iceberg-hive-runtime-1.1.0.jar
wget https://repo1.maven.org/maven2/org/apache/thrift/libfb303/0.9.3/libfb303-0.9.3.jar
mkdir -p /data/bigdata/hive-3.1.2/auxlib
cp iceberg-hive-runtime-1.1.0.jar libfb303-0.9.3.jar /data/bigdata/hive-3.1.2/auxlib
2、修改hive-site.xml
添加配置项
<property>
<name>iceberg.engine.hive.enabled</name>
<value>true</value>
</property>
<property>