Lijuan Hou
09/05/2023, 6:53 PMAvroInputFormat like this?
String s3Path =
"s3://...";
AvroInputFormat<Customer> avroInputFormat =
new AvroInputFormat<>(new Path(s3Path), Customer.class);
TypeInformation<Customer> typeInfo = TypeInformation.of(Customer.class);
DataStream<Customer> datastream = env.createInput(avroInputFormat, typeInfo);