Github user jerrysxu commented on a diff in the pull request:

    https://github.com/apache/spark/pull/6955#discussion_r35784641
  
    --- Diff: 
extras/kinesis-asl/src/main/python/examples/streaming/kinesis_wordcount_asl.py 
---
    @@ -0,0 +1,81 @@
    +#
    +# Licensed to the Apache Software Foundation (ASF) under one or more
    +# contributor license agreements.  See the NOTICE file distributed with
    +# this work for additional information regarding copyright ownership.
    +# The ASF licenses this file to You under the Apache License, Version 2.0
    +# (the "License"); you may not use this file except in compliance with
    +# the License.  You may obtain a copy of the License at
    +#
    +#    http://www.apache.org/licenses/LICENSE-2.0
    +#
    +# Unless required by applicable law or agreed to in writing, software
    +# distributed under the License is distributed on an "AS IS" BASIS,
    +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    +# See the License for the specific language governing permissions and
    +# limitations under the License.
    +#
    +
    +"""
    +  Consumes messages from a Amazon Kinesis streams and does wordcount.
    +
    +  This example spins up 1 Kinesis Receiver per shard for the given stream.
    +  It then starts pulling from the last checkpointed sequence number of the 
given stream.
    +
    +  Usage: kinesis_wordcount_asl.py <app-name> <stream-name> <endpoint-url> 
<region-name>
    +    <app-name> is the name of the consumer app, used to track the read 
data in DynamoDB
    +    <stream-name> name of the Kinesis stream (ie. mySparkStream)
    +    <endpoint-url> endpoint of the Kinesis service
    +      (e.g. https://kinesis.us-east-1.amazonaws.com)
    +
    +
    +  Example:
    +      # export AWS keys if necessary
    +      $ export AWS_ACCESS_KEY_ID=<your-access-key>
    +      $ export AWS_SECRET_KEY=<your-secret-key>
    +
    +      # run the example
    +      $ bin/spark-submit -jar extras/kinesis-asl/target/scala-*/\
    +        spark-streaming-kinesis-asl-assembly_*.jar \
    +        
extras/kinesis-asl/src/main/python/examples/streaming/kinesis_wordcount_asl.py \
    +        myAppName mySparkStream https://kinesis.us-east-1.amazonaws.com
    +
    --- End diff --
    
    After a clean build "mvn -DskipTests clean package -P kinesis-asl", I need 
actually two jars to run this.  
extras/kinesis-asl-assembly/target/scala-2.10/spark-streaming-kinesis-asl-assembly-*.jar
 and extras/kinesis-asl/target/spark-streaming-kinesis-asl_*.jar.


---
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