I have developed an Apache Spark Streaming Application in Python which runs normally on my local machine (spark master, spark worker and kafka is on my local machine). However when I tried to deploy the cluster on S3, the application seems to print out a lot of errors and is stopped after exactly 6.3 min. 
My setting up:
- A
broker server(apache kafka), this server allows inbound ports 2181 and 9092 foranalytic server, all outbound ports are opened. - A
analytic serverwhich I have Spark master and Spark worker ruing on, inbound port 8080 is open, all outbound ports are opened. The application will process messages from Kafka.
I run my application by following command:
PYTHONPATH=/home/ubuntu/social_publishing_platform/analytic/ /home/ubuntu/spark-1.6.1/bin/spark-submit --jars /home/ubuntu/spark-1.6.1/exteal/kafka-assembly/target/spark-streaming-kafka-assembly_2.10-1.6.1.jar --master spark://172.31.25.1:7077 linsight/analyze_info.py
And this is the whole log.
Question 1: What's wrong with my application? Why does it has such many errors but run normally on my local machine.
Question 2: Why were they stopped after exactly 6.3 min?
Question 3: (although a bit off topic) How can I deploy a spark streaming application so it run endlessly in background? Is using detaching utilities such as nohup the only way?
