Apache Hudi Lakehouseのロゴ

Apache Hudi Lakehouse

コミュニティ
vaquarkhan
apache-hudi-lakehouse

Apache Hudiのレイクハウス設計を、AIエージェント向けに支援します。増分upsert、レコード単位の変更、タイムラインの挙動、コンパクション、Hudiベースのレイクハウステーブルを管理する場合に使用します。

Add to TypingMind

概要

公開者vaquarkhan
リポジトリdata-engineering-agent-skills
スキル名apache-hudi-lakehouse
スター
60
フォーク
8
同梱ファイル
指示のみ
ライセンスMIT
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 指示だけで完結

    モデルに必要なものはすべて指示に含まれているため、別途同期するファイルはありません。

  • オープンソース

    vaquarkhanがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Apache Hudi Lakehouse」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/vaquarkhan/data-engineering-agent-skills/tree/main/skills/apache-hudi-lakehouse
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/vaquarkhan/data-engineering-agent-skills.git /tmp/data-engineering-agent-skills
mkdir -p .claude/skills
cp -r /tmp/data-engineering-agent-skills/skills/apache-hudi-lakehouse .claude/skills/apache-hudi-lakehouse
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでApache Hudi Lakehouseを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にApache Hudi Lakehouseを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Apache Hudi Lakehouseは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Apache Hudi Lakehouse

Overview

Use this skill when Apache Hudi is the primary table layer for incremental lakehouse workloads. It helps agents reason about mutation-heavy patterns, table type selection, compaction behavior, timeline safety, and consumer expectations across read-optimized and real-time query paths.

When to Use

  • choosing or operating Apache Hudi for lakehouse tables
  • building record-level upsert or delete pipelines
  • managing compaction, clustering, and incremental consumption
  • supporting lakehouse tables with heavy mutations (CDC sinks, slowly changing dimensions)
  • planning multi-engine access (Spark, Presto, Trino, Athena, Hive)

Do not use this when the workload is append-only with no mutation requirements and simpler formats like Parquet or Iceberg would suffice.

Workflow

  1. Define mutation patterns and read access expectations. Include:

    • primary record key and partition path
    • expected operations: inserts, upserts, deletes, or bulk replaces
    • read latency expectations: are readers okay with merge-on-read or do they need read-optimized snapshots?
    • query engines that must access the table
    • expected write throughput and record mutation rate
  2. Choose the right table type and indexing strategy.

    • Copy-on-Write (COW): best for read-heavy workloads, produces columnar snapshots on write
    • Merge-on-Read (MOR): best for write-heavy workloads, defers merge to read time or compaction
    • choose record index type: BLOOM, GLOBAL_BLOOM, SIMPLE, BUCKET, or RECORD_INDEX
    • index choice affects upsert performance and scaling behavior
    • document why the table type was chosen — revisiting later is expensive
  3. Plan compaction and clustering explicitly.

    • for MOR tables: compaction converts log files to columnar — it is not optional
    • define compaction strategy: synchronous (inline) or asynchronous (scheduled)
    • set compaction triggers: by number of commits, time, or log file size
    • clustering reorganizes data layout for query performance — plan separately from compaction
    • budget compute for compaction and clustering in cost planning
  4. Design incremental consumption and downstream contracts.

    • Hudi supports incremental queries by commit timeline
    • define the consumer contract: which commit instant do consumers start from?
    • plan for consumer resets and bootstrap reads
    • document how schema changes affect incremental consumers
    • test that consumers handle compaction and rollback instants correctly
  5. Handle schema evolution and timeline safety.

    • Hudi supports schema evolution but not all changes are safe across readers
    • column adds are generally safe; renames and type changes require care
    • define compatibility expectations per reader engine
    • rollback instants can confuse consumers — document rollback behavior
    • archive policy affects timeline visibility for late consumers
  6. Plan operations, monitoring, and recovery.

    • monitor timeline growth, pending compactions, and inflight commits
    • alert on compaction backlog and write failures
    • plan for rollback: Hudi supports instant-level rollback, but consumers must handle gaps
    • define retention and archival for the Hudi timeline
    • document backup and restore procedures for critical tables

Common Rationalizations

RationalizationReality
"Hudi handles upserts so we don't need to think about keys."Record key and partition path design determines correctness, performance, and scaling. Wrong keys cause silent data loss or duplication.
"MOR is always better because writes are faster."MOR defers work to compaction and read time. Without compaction planning, read performance degrades unboundedly.
"Compaction will just happen in the background."Compaction requires explicit scheduling, compute budget, and monitoring. Unmanaged compaction leads to reader degradation and timeline bloat.
"All query engines see the same data."COW and MOR tables expose different snapshots to different query types. Read-optimized queries on MOR tables see only compacted data.

Red Flags

  • record key chosen without understanding uniqueness guarantees
  • MOR table with no compaction schedule or monitoring
  • incremental consumers have no documented starting instant or reset procedure
  • schema changes deployed without testing across all reader engines
  • no monitoring of timeline growth, pending compactions, or inflight commits
  • clustering is never run despite increasing query scan ranges
  • rollback behavior is undocumented and consumers assume a linear timeline
  • index type is default without analysis of key cardinality and write patterns

Verification

  • Record key, partition path, and mutation semantics are explicitly documented
  • Table type choice (COW vs MOR) is justified with read/write trade-off analysis
  • Compaction is scheduled, monitored, and budgeted for compute cost
  • Incremental consumer contracts define starting instants and reset behavior
  • Schema evolution paths are tested across all target query engines
  • Timeline monitoring covers pending compactions, inflight commits, and archival
  • Rollback behavior is documented and consumers handle timeline gaps safely

よくある質問

AIスキル「Apache Hudi Lakehouse」では何ができますか?

Apache Hudiのレイクハウス設計を、AIエージェント向けに支援します。増分upsert、レコード単位の変更、タイムラインの挙動、コンパクション、Hudiベースのレイクハウステーブルを管理する場合に使用します。

TypingMindでApache Hudi Lakehouseを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Apache Hudi Lakehouseはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにApache Hudi Lakehouseをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/vaquarkhan/data-engineering-agent-skills/tree/main/skills/apache-hudi-lakehouseを貼り付けてください。TypingMindがSKILL.mdを読み込み、チャットごとに有効にできるスキルとしてインストールします。

Apache Hudi Lakehouseを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Apache Hudi Lakehouseで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもApache Hudi Lakehouseを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Apache Hudi Lakehouse」は無料ですか?

はい。vaquarkhanがMITライセンスのもとでGitHubに公開しています。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇