Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Connector-V2]Add Hudi Source #2147

Merged
merged 5 commits into from
Jul 11, 2022
Merged

[Connector-V2]Add Hudi Source #2147

merged 5 commits into from
Jul 11, 2022

Conversation

Emor-nj
Copy link
Contributor

@Emor-nj Emor-nj commented Jul 7, 2022

Related to #1946
Add new hudi source connector.
The first version only support hudi cow table and Snapshot Query. (MOR table,Incremental Query, Read Optimized Query will be added later.)
I have pass the hudi source test both on spark and flink batch mode. (Souce is Hudi, Sink is Console)
example spark config:

env {
  job.mode = BATCH
  spark.app.name = "SeaTunnel"
  spark.executor.instances = 2
  spark.executor.cores = 1
  spark.executor.memory = "1g"
  spark.master = local
}
source {
  Hudi {
    table.path = "/test/hudi/test_order/"
    table.type = "cow"
    conf.files = "/home/test/hdfs-site.xml;/home/test/core-site.xml;/home/test/yarn-site.xml"
    use.kerberos = true
    kerberos.principal = "test_user"
    kerberos.principal.file = "/home/test/test_user.keytab"
  }
}
transform {
}
sink {
  Console {}
}

example flink config:

env {
  job.mode = "BATCH"
  execution.parallelism = 1
}
source {
  Hudi {
    table.path = "/test/hudi/test_order/"
    table.type = "cow"
    conf.files = "/home/test/hdfs-site.xml;/home/test/core-site.xml;/home/test/yarn-site.xml"
    use.kerberos = true
    kerberos.principal = "test_user"
    kerberos.principal.file = "/home/test_user/test_user.keytab"
  }
}
transform {
}
sink {
  Console {}
}

@CalvinKirs CalvinKirs self-requested a review July 8, 2022 01:42
Copy link
Member

@CalvinKirs CalvinKirs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Emor-nj
Copy link
Contributor Author

Emor-nj commented Jul 8, 2022

Could you add docs to here https://github.com/apache/incubator-seatunnel/tree/dev/docs/en/connector-v2

Sure, added done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants