Github user lw-lin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/11850#discussion_r56760713
  
    --- Diff: 
external/kinesis-asl/src/test/java/org/apache/spark/streaming/kinesis/JavaKinesisStreamSuite.java
 ---
    @@ -34,11 +35,13 @@
     public class JavaKinesisStreamSuite extends LocalJavaStreamingContext {
       @Test
       public void testKinesisStream() {
    -    // Tests the API, does not actually test data receiving
    -    JavaDStream<byte[]> kinesisStream = KinesisUtils.createStream(ssc, 
"mySparkStream",
    -        "https://kinesis.us-west-2.amazonaws.com";, new Duration(2000),
    -        InitialPositionInStream.LATEST, StorageLevel.MEMORY_AND_DISK_2());
    +    String dummyEndpointUrl = KinesisTestUtils.defaultEndpointUrl();
    +    String dummyRegionName = 
RegionUtils.getRegionByEndpoint(dummyEndpointUrl).getName();
     
    --- End diff --
    
    This JavaDStream is created by the deprecated & removed method; so we 
switch to another `createStream` method.


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to