参考: http://spark.apache.org/docs/1.4.0/streaming-kafka-integration.html—— 官网使用 http://kafka.apache.org/082/documentation.html#basic_ops_consumer_lag —— kafka https://www.jianshu.com/p/716af5449175 ——容错 https://www.cnblogs.com/felixzh/p/6371253.html ——容错