Github user budde commented on the issue:
https://github.com/apache/spark/pull/16744
@brkyvz I actually think that Scaladoc may be outdatedâ I double checked
the current master branch and it looks like ```KinesisUtils.createStream()```
will still provide Some(SerializableAWSCredentials(null, null)) when null
values are passed. The [helper method returning the
AWSCredentialsProvider](https://github.com/apache/spark/blob/master/external/kinesis-asl/src/main/scala/org/apache/spark/streaming/kinesis/KinesisReceiver.scala#L312-L324)
passed to the KCL doesn't inspect the values to make sure they are non-null,
so we'd be relying on the AWS SDK implicitly falling back to
```DefaultAWSCredentialsProviderChain()``` when given null credentials, which I
don't believe it does.
Regardless, the check you've suggested would restore this behavior. I'll go
that route.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]