Repository: spark
Updated Branches:
  refs/heads/branch-1.2 47bd8f302 -> 8cefb63c1


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 7c9ec529a3483fab48f728481dd1d3663369e50a)
Signed-off-by: Tathagata Das <[email protected]>


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/8cefb63c
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/8cefb63c
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/8cefb63c

Branch: refs/heads/branch-1.2
Commit: 8cefb63c122e7c7cf4af959f9606f4491148d9f4
Parents: 47bd8f3
Author: xiao321 <[email protected]>
Authored: Fri Nov 7 12:56:49 2014 -0800
Committer: Tathagata Das <[email protected]>
Committed: Fri Nov 7 12:57:17 2014 -0800

----------------------------------------------------------------------
 .../org/apache/spark/examples/streaming/JavaCustomReceiver.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/8cefb63c/examples/src/main/java/org/apache/spark/examples/streaming/JavaCustomReceiver.java
----------------------------------------------------------------------
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 981bc4f..99df259 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) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to