Github user yssharma commented on a diff in the pull request:

    https://github.com/apache/spark/pull/17506#discussion_r111291842
  
    --- Diff: 
external/kinesis-asl/src/test/scala/org/apache/spark/streaming/kinesis/KinesisStreamSuite.scala
 ---
    @@ -233,11 +241,15 @@ abstract class KinesisStreamTests(aggregateTestData: 
Boolean) extends KinesisFun
         val localTestUtils = new KPLBasedKinesisTestUtils(1)
         localTestUtils.createStream()
         try {
    -      val awsCredentials = KinesisTestUtils.getAWSCredentials()
    -      val stream = KinesisUtils.createStream(ssc, localAppName, 
localTestUtils.streamName,
    -        localTestUtils.endpointUrl, localTestUtils.regionName, 
InitialPositionInStream.LATEST,
    -        Seconds(10), StorageLevel.MEMORY_ONLY,
    -        awsCredentials.getAWSAccessKeyId, awsCredentials.getAWSSecretKey)
    +      val stream = KinesisInputDStream.builder.streamingContext(ssc)
    --- End diff --
    
    Yes thats true. The KinesisInputDStream.builder uses the Dafault 
credentials if no creds are passed, and the default creds work with both AWS 
Key and Session tokens.
    So now "mvn test" works on both permanent aws keys & session based token 
environments.


---
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]

Reply via email to