Last active
September 18, 2018 12:21
-
-
Save hadoopsters/5da24ea7f7fe6bfd09479cc9c2852188 to your computer and use it in GitHub Desktop.
How to Change Log Level for Spark Streaming
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
val conf = new SparkConf().setAppName(appName) // run on cluster | |
val ssc = new StreamingContext(conf, Seconds(5)) | |
val sc = ssc.sparkContext | |
sc.setLogLevel("ERROR") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment