apache/hudi:README に基づく導入ガイド
README、メタデータ、ライセンスに基づく apache/hudi の導入と確認ガイドです。
プロジェクトの範囲
apache/hudi の README はプロジェクトを「Upserts, Deletes And Incremental Processing on Big Data.」と説明しています。ここではリポジトリで確認できる事実だけを整理します。star 数やバッジは注目度の手掛かりであり、品質の証明ではありません。「README」には次の説明があります。<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership.。これは範囲の説明であり、本番検証の結果ではありません。
向いている用途
README の「Ingestion」にある内容から、用途が合うかを先に判断できます。Supports half-dozen file formats, database change logs and streaming data systems.。目的が違うなら、人気だけで採用する理由にはなりません。プロジェクト名やコマンドは原文のまま残し、一次資料へ戻って用語を確認できるようにしています。 README には次の確認可能な項目もあります。Built-in ingestion tools for Apache Spark/Apache Flink users.。初回テストの材料にはなりますが、実際の環境での確認を省略する理由にはなりません。
動作の考え方
動作の説明は「Apache Hudi」など複数の箇所に分かれています。確認できる情報は次の通りです。Apache Hudi is an open data lakehouse platform, built on a high-performance open table format to ingest, index, store, serve, transform and manage your data across multiple cloud data environments.。書かれていない構成、性能、セキュリティを推測で補いません。導入時はディレクトリ、設定ファイル、release 履歴を確認してください。
インストールと初回起動
初回導入は README の入口から始めます。確認できるコマンドは次の通りです。 # Checkout code and build git clone https://github.com/apache/hudi.git && cd hudi mvn clean package -DskipTests -Dspark3.5 -Dflink2.1 # Start command spark-3.5.0-bin-hadoop3/bin/spark-shell \ --jars `ls packaging/hudi-spark-bundle/target/hudi-spark3.5-bundle_2.12-*.*.*-SNAPSHOT.jar` \ --conf 'spark.serializer=org.apache.spark.serializer.KryoSerializer' \ --conf 'spark.sql.extensions=org.apache.spark.sql.hudi.HoodieSparkSessionExtension' \ --conf 'spark.sql.catalog.spark_catalog=org.apac 実行可能なコマンドがない場合は手順を作らず、「Features」で依存関係、待受ポート、初回設定を確認します。
設定と日常運用
日常運用は公式文書の範囲に限ります。「Features」にはHudi stores all data and metadata on cloud storage in open formats, providing the following features across different aspects.とあります。設定、環境変数、権限、データ保存先は明記されたものだけを扱います。未記載の既定値は隔離環境で確認し、戻せる設定を保存してください。 同じ資料にはConnect sink for Apache Kafka, to bring external data sources.ともあります。