[HUDI-3104] Kafka-connect support hadoop config environments and properties#4451
[HUDI-3104] Kafka-connect support hadoop config environments and properties#4451yihua merged 1 commit intoapache:masterfrom
Conversation
106dd1a to
cb4e0f0
Compare
|
@yihua Thanks for reviewing this |
codope
left a comment
There was a problem hiding this comment.
@cdmikechen Few minior comments. I would prefer to avoid a new dependency if possible.
@yihua Can you also take a look?
| <scope>test</scope> | ||
| </dependency> | ||
|
|
||
| <dependency> |
There was a problem hiding this comment.
I see this dependency is required to set env vars at test time. Is there a way to avoid this? Maybe add a wrapper class for system.getEnv calls and mock that class in test?
| <scope>test</scope> | ||
| </dependency> | ||
|
|
||
| <dependency> |
| // Reference https://docs.confluent.io/kafka-connect-hdfs/current/configuration_options.html#hdfs | ||
| public static final ConfigProperty<String> HADOOP_CONF_DIR = ConfigProperty | ||
| .key("hadoop.conf.dir") | ||
| .defaultValue("") |
|
|
||
| public static final ConfigProperty<String> HADOOP_HOME = ConfigProperty | ||
| .key("hadoop.home") | ||
| .defaultValue("") |
| import java.nio.file.Path; | ||
| import java.util.List; | ||
|
|
||
| import static com.github.stefanbirkner.systemlambda.SystemLambda.withEnvironmentVariable; |
There was a problem hiding this comment.
Could you use mocks to get rid of this import?
|
@cdmikechen @yihua @codope : We are targeting this patch for 0.10.1. We have code freeze planned this monday. Would be nice to get this in by then. Wanted to send out a reminder. |
codope
left a comment
There was a problem hiding this comment.
@cdmikechen Thanks for getting rid of the dependency.
Left a couple of minor comments.
What is the purpose of the pull request
Let kafka-connect support hadoop config environments/properties
Brief change log
HADOOP_CONF_DIRandHADOOP_HOMEhadoop.conf.dirandhadoop.homeVerify this pull request
This change added tests and can be verified as follows:
Committer checklist
Has a corresponding JIRA in PR title & commit
Commit message is descriptive of the change
CI is green
Necessary doc changes done or have another open PR
For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.