You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@spark.apache.org by yhuai <gi...@git.apache.org> on 2017/12/29 00:03:17 UTC
[GitHub] spark pull request #19535: [SPARK-22313][PYTHON] Mark/print deprecation warn...
Github user yhuai commented on a diff in the pull request:
https://github.com/apache/spark/pull/19535#discussion_r159013024
--- Diff: python/pyspark/streaming/flume.py ---
@@ -54,8 +54,13 @@ def createStream(ssc, hostname, port,
:param bodyDecoder: A function used to decode body (default is utf8_decoder)
:return: A DStream object
- .. note:: Deprecated in 2.3.0
+ .. note:: Deprecated in 2.3.0. Flume support is deprecated as of Spark 2.3.0.
+ See SPARK-22142.
"""
+ warnings.warn(
--- End diff --
Seems `warnings` is not imported in this file?
---
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org
For additional commands, e-mail: reviews-help@spark.apache.org