0x574C opened a new issue #3971:
URL: https://github.com/apache/hudi/issues/3971
**To Reproduce**
Steps to reproduce the behavior:
1.When use org.apache.hudi.streamer.HoodieFlinkStreamer, set avro schema
with `--source-avro-schema`.
2.The method
`org.apache.hudi.util.StreamerUtil#getSourceSchema(org.apache.flink.configuration.Configuration)`
says `--source-avro-schema-path` must be null.
3.If I set `--source-avro-schema-path` to null,
org/apache/hudi/streamer/FlinkStreamerConfig.java:368 throw a
NullPointerException.
org/apache/hudi/streamer/FlinkStreamerConfig.java:368 should be
```
if (config.sourceAvroSchemaPath != null) {
conf.setString(FlinkOptions.SOURCE_AVRO_SCHEMA_PATH,
config.sourceAvroSchemaPath);
}
```
**Environment Description**
* Hudi version : 0.10.0-SNAPSHOT
* Spark version :
* Hive version :
* Hadoop version :
* Storage (HDFS/S3/GCS..) :
* Running on Docker? (yes/no) :
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]