GitHub user zsxwing opened a pull request: https://github.com/apache/spark/pull/17863
[SPARK-20603][SS][Test]Set default number of topic partitions to 1 to reduce the load ## What changes were proposed in this pull request? I checked the logs of https://amplab.cs.berkeley.edu/jenkins/job/spark-branch-2.2-test-maven-hadoop-2.7/47/ and found it took several seconds to create Kafka internal topic `__consumer_offsets`. As Kafka creates this topic lazily, the topic creation happens in the first test `deserialization of initial offset with Spark 2.1.0` and causes it timeout. This PR changes `offsets.topic.num.partitions` from the default value 50 to 1 to make creating `__consumer_offsets` much faster. ## How was this patch tested? Jenkins You can merge this pull request into a Git repository by running: $ git pull https://github.com/zsxwing/spark fix-kafka-flaky-test Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/17863.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #17863 ---- commit 83dfc74af487c24c40754d5ff811349130dbf791 Author: Shixiong Zhu <shixi...@databricks.com> Date: 2017-05-04T21:14:31Z Set default number of topic partitions to 1 to reduce the load ---- --- 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