Skip to content

Commit 8cefb63

Browse files
xiao321tdas
authored andcommitted
Update JavaCustomReceiver.java
数组下标越界 Author: xiao321 <[email protected]> Closes #3153 from xiao321/patch-1 and squashes the following commits: 0ed17b5 [xiao321] Update JavaCustomReceiver.java (cherry picked from commit 7c9ec52) Signed-off-by: Tathagata Das <[email protected]>
1 parent 47bd8f3 commit 8cefb63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/src/main/java/org/apache/spark/examples/streaming/JavaCustomReceiver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public static void main(String[] args) {
7070
// Create a input stream with the custom receiver on target ip:port and count the
7171
// words in input stream of \n delimited text (eg. generated by 'nc')
7272
JavaReceiverInputDStream<String> lines = ssc.receiverStream(
73-
new JavaCustomReceiver(args[1], Integer.parseInt(args[2])));
73+
new JavaCustomReceiver(args[0], Integer.parseInt(args[1])));
7474
JavaDStream<String> words = lines.flatMap(new FlatMapFunction<String, String>() {
7575
@Override
7676
public Iterable<String> call(String x) {

0 commit comments

Comments
 (0)