Hudi编译

本文介绍了如何在国内环境下编译Hudi项目,包括配置阿里云仓库、修改pom.xml文件以及解决特定依赖问题。Hudi作为一种数据湖解决方案,具备快速upsert、增量拉取、ACID语义等特性,适合处理结构化和非结构化数据。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

编译hudi

首先安装maven,修改仓库为aliyun,准备进行maven编译。

<mirror>
    <id>aliyunmaven</id>
    <mirrorOf>*</mirrorOf>
    <name>阿里云公共仓库</name>
    <url>https://maven.aliyun.com/repository/public</url>
</mirror>

再安装git,通过git拉取代码。

// 拉取代码
git clone https://github.com/apache/hudi.git && cd hudi

// 修改hudi/pom.xml
<repository>
	<id>nexus-aliyun</id>
	<name>nexus-aliyun</name>
	<url>http://maven.aliyun.com/nexus/content/groups/public/</url>
	<releases>
		<enabled>true</enabled>
	</releases>
	<snapshots>
		<enabled>false</enabled>
	</snapshots>
</repository>

// 修改hudi-utilities/pom.xml
vi hudi-utilities/pom.xml
<!-- Kafka -->
<dependency>
	<groupId>io.confluent</groupId>
	<artifactId>kafka-avro-serializer</artifactId>
	<version>6.1.1</version>
</dependency>
<dependency>
	<groupId>io.confluent</groupId>
	<artifactId>common-config</artifactId>
	<version>6.1.1</version>
</dependency>
<dependency>
	<groupId>io.confluent</groupId>
	<artifactId>common-utils</artifactId>
	<version>6.1.1</version>
</dependency>
<dependency>
	<groupId>io.confluent</groupId>
	<artifactId>kafka-schema-registry-client</artifactId>
	<version>6.1.1</version>
</dependency>


// 编译
mvn clean package -DskipTests -DskipITs

编译的时候有几个jar包无法从国内maven仓库拉取,https://download.youkuaiyun.com/download/qq_41106844/18167168我做了一个资源下载,需要的可以私信。

image-20210427161622624

image-20210427161715375

在这里插入图片描述

在只有数仓的时代中,人们将精力留在处理结构化数据上,把非结构化数据解析后存储为结构化数据。但是随着发展,人们不再局限于处理结构化数据,开始将非结构化数据(图片,视频,音频,json,XML等)直接存储到数据湖中,对非结构化数据进行处理。

优点

  • 支持较快upsert/delete
  • 支持增量拉取
  • 具有Table Schema
  • 对小文件的合并管理
  • ACID语义保证
  • 支持多种分析引擎

hudi的特性

  • 快速upsert,可插入索引
  • 以原子方式操作数据并具有回滚功能
  • 写入器之间的快照隔离
  • savepoint用户数据恢复的保存点
  • 管理文件大小、使用统计数据布局
  • 数据行的异步压缩和柱状数据
  • 时间轴数据跟踪血统
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

寒 暄

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值