本文通过两种方式为您介绍,如何设置Hudi参数。

Set方式

此方式通过Set设置全局参数。
set hoodie.insert.shuffle.parallelism = 100;
set hoodie.upsert.shuffle.parallelism = 100;
set hoodie.delete.shuffle.parallelism = 100;

options方式

此方式是在建表语句options中指定参数来设置全局参数。
create table if not exists h0(
  id bigint, 
  name string, 
  price double
) using hudi
options (
  primaryKey = 'id',
  type = 'mor',
  hoodie.index.type = 'GLOBAL_BLOOM'
);