diff options
author | xiao321 <1042460381@qq.com> | 2014-11-07 12:56:49 -0800 |
---|---|---|
committer | Tathagata Das <tathagata.das1565@gmail.com> | 2014-11-07 12:57:38 -0800 |
commit | 4fb26df8748ea7dda11db8c2b99f4b08da25bb4e (patch) | |
tree | f72f4c05501fcfc4b6872774a837e3d8be51a87d | |
parent | 0a40eac25a0202c492f58e3c97a96a35ceed6ce8 (diff) | |
download | spark-4fb26df8748ea7dda11db8c2b99f4b08da25bb4e.tar.gz spark-4fb26df8748ea7dda11db8c2b99f4b08da25bb4e.tar.bz2 spark-4fb26df8748ea7dda11db8c2b99f4b08da25bb4e.zip |
Update JavaCustomReceiver.java
数组下标越界
Author: xiao321 <1042460381@qq.com>
Closes #3153 from xiao321/patch-1 and squashes the following commits:
0ed17b5 [xiao321] Update JavaCustomReceiver.java
(cherry picked from commit 7c9ec529a3483fab48f728481dd1d3663369e50a)
Signed-off-by: Tathagata Das <tathagata.das1565@gmail.com>
-rw-r--r-- | examples/src/main/java/org/apache/spark/examples/streaming/JavaCustomReceiver.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/src/main/java/org/apache/spark/examples/streaming/JavaCustomReceiver.java b/examples/src/main/java/org/apache/spark/examples/streaming/JavaCustomReceiver.java index 5622df5ce0..f92615d5f6 100644 --- a/examples/src/main/java/org/apache/spark/examples/streaming/JavaCustomReceiver.java +++ b/examples/src/main/java/org/apache/spark/examples/streaming/JavaCustomReceiver.java @@ -70,7 +70,7 @@ public class JavaCustomReceiver extends Receiver<String> { // Create a input stream with the custom receiver on target ip:port and count the // words in input stream of \n delimited text (eg. generated by 'nc') JavaReceiverInputDStream<String> lines = ssc.receiverStream( - new JavaCustomReceiver(args[1], Integer.parseInt(args[2]))); + new JavaCustomReceiver(args[0], Integer.parseInt(args[1]))); JavaDStream<String> words = lines.flatMap(new FlatMapFunction<String, String>() { @Override public Iterable<String> call(String x) { |