You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Apache Spark (JIRA)" <ji...@apache.org> on 2016/09/22 00:40:20 UTC
[jira] [Assigned] (SPARK-17628) Name of "object StreamingExamples"
should be more self-explanatory
[ https://issues.apache.org/jira/browse/SPARK-17628?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Apache Spark reassigned SPARK-17628:
------------------------------------
Assignee: (was: Apache Spark)
> Name of "object StreamingExamples" should be more self-explanatory
> -------------------------------------------------------------------
>
> Key: SPARK-17628
> URL: https://issues.apache.org/jira/browse/SPARK-17628
> Project: Spark
> Issue Type: Bug
> Components: Examples, Streaming
> Affects Versions: 2.0.0
> Reporter: Xin Ren
> Priority: Minor
>
> `object StreamingExamples` is more of a utility object, and the name is too general and I thought it's an actual streaming example at the very beginning.
> {code}
> /** 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)
> }
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org