GitHub user keypointt opened a pull request: https://github.com/apache/spark/pull/15191
[SPARK-17628][Streaming][Examples] change name "StreamingExamples" to be "StreamingExamplesUtils", more descriptive https://issues.apache.org/jira/browse/SPARK-17628 ## What changes were proposed in this pull request? `object StreamingExamples` is more of a utility object, and the name is too general. here changing it to be `StreamingExamplesUtils ` ``` /** Utility functions for Spark Streaming examples. */ object StreamingExamples extends Logging { /** Set reasonable logging levels for streaming if the user has not configured log4j. */ def setStreamingLogLevels() { val log4jInitialized = Logger.getRootLogger.getAllAppenders.hasMoreElements if (!log4jInitialized) { // We first log something to initialize Spark's default logging, then we override the // logging level. logInfo("Setting log level to [WARN] for streaming example." + " To override add a custom log4j.properties to the classpath.") Logger.getRootLogger.setLevel(Level.WARN) } } } ``` ## How was this patch tested? Tested manually on local laptop You can merge this pull request into a Git repository by running: $ git pull https://github.com/keypointt/spark SPARK-17628 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/15191.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 #15191 ---- commit 79533fda30b171fc54466e9da3d7eab08ce0b7db Author: Xin Ren <iamsh...@126.com> Date: 2016-09-22T00:34:17Z [SPARK-17628] change name StreamingExamples to be StreamingExamplesUtils, more descriptive ---- --- 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