Skip to content

Commit 156e20c

Browse files
committed
More fixes, based on PR comments.
1 parent e9a6c01 commit 156e20c

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

extras/kinesis-asl/src/main/java/org/apache/spark/examples/streaming/JavaKinesisWordCountASL.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
* onto the Kinesis stream.
7676
* Usage instructions for KinesisWordCountProducerASL are provided in the class definition.
7777
*/
78-
final class JavaKinesisWordCountASL {
78+
public final class JavaKinesisWordCountASL { // needs to be public for access from run-example
7979
private static final Pattern WORD_SEPARATOR = Pattern.compile(" ");
8080
private static final Logger logger = Logger.getLogger(JavaKinesisWordCountASL.class);
8181

@@ -87,10 +87,10 @@ public static void main(String[] args) {
8787
/* Check that all required args were passed in. */
8888
if (args.length < 2) {
8989
System.err.println(
90-
"|Usage: KinesisWordCount <stream-name> <endpoint-url>\n" +
91-
"| <stream-name> is the name of the Kinesis stream\n" +
92-
"| <endpoint-url> is the endpoint of the Kinesis service\n" +
93-
"| (e.g. https://kinesis.us-east-1.amazonaws.com)\n");
90+
"Usage: JavaKinesisWordCountASL <stream-name> <endpoint-url>\n" +
91+
" <stream-name> is the name of the Kinesis stream\n" +
92+
" <endpoint-url> is the endpoint of the Kinesis service\n" +
93+
" (e.g. https://kinesis.us-east-1.amazonaws.com)\n");
9494
System.exit(1);
9595
}
9696

extras/kinesis-asl/src/main/scala/org/apache/spark/streaming/kinesis/KinesisUtils.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ import com.amazonaws.services.kinesis.clientlibrary.lib.worker.InitialPositionIn
3535
object KinesisUtils {
3636
/**
3737
* Create an InputDStream that pulls messages from a Kinesis stream.
38-
*
38+
* :: Experimental ::
3939
* @param ssc StreamingContext object
4040
* @param streamName Kinesis stream name
4141
* @param endpointUrl Url of Kinesis service (e.g., https://kinesis.us-east-1.amazonaws.com)
@@ -66,7 +66,7 @@ object KinesisUtils {
6666

6767
/**
6868
* Create a Java-friendly InputDStream that pulls messages from a Kinesis stream.
69-
*
69+
* :: Experimental ::
7070
* @param jssc Java StreamingContext object
7171
* @param streamName Kinesis stream name
7272
* @param endpointUrl Url of Kinesis service (e.g., https://kinesis.us-east-1.amazonaws.com)

0 commit comments

Comments
 (0)