Cannot connect from Spark Streaming to Kafka: org.apache.spark.SparkException: java.net.SocketTimeoutException
问题 I'm trying to read from a Kafka topic with Spark Streaming direct stream but I receive the following error: INFO consumer.SimpleConsumer: Reconnect due to socket error: java.net.SocketTimeoutException ERROR yarn.ApplicationMaster: User class threw exception: org.apache.spark.SparkException: java.net.SocketTimeoutException java.net.SocketTimeoutException org.apache.spark.SparkException: java.net.SocketTimeoutException java.net.SocketTimeoutException at org.apache.spark.streaming.kafka