Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-21-2023 11:51 PM
Hi,
I was able to solve the issue by specifying maxFetchDuration value more than minFetchPeriod. However I didn't get the purpose of specifying maxFetchDuration value greater than or equal to minFetchPeriod value.
spark \
.readStream \
.format("kinesis") \
.option("streamName", kinesis_stream_name) \
.option("region", region name) \
.option("initial Position", "latest") \
.option("awsAccessKey", awsAccessKey) \
.option("awsSecretKey", aws_secret_access_key)\
.option("maxFetchDuration","60s")\
.option("minFetchPeriod","60s")