zhengruifeng commented on code in PR #37517:
URL: https://github.com/apache/spark/pull/37517#discussion_r945679284
##########
python/pyspark/context.py:
##########
@@ -531,32 +564,57 @@ def applicationId(self) -> str:
@property
def uiWebUrl(self) -> str:
- """Return the URL of the SparkUI instance started by this
SparkContext"""
+ """Return the URL of the SparkUI instance started by this
`SparkContext`
+
+ .. versionadded:: 2.1.0
Review Comment:
```
File "/Users/ruifeng.zheng/Dev/spark/python/pyspark/context.py", line ?, in
__main__.SparkContext.uiWebUrl
Failed example:
sc.uiWebUrl
Exception raised:
Traceback (most recent call last):
File "/Users/ruifeng.zheng/.dev/miniconda3/lib/python3.9/doctest.py",
line 1334, in __run
exec(compile(example.source, filename, "single",
File "<doctest __main__.SparkContext.uiWebUrl[0]>", line 1, in <module>
sc.uiWebUrl
File "/Users/ruifeng.zheng/Dev/spark/python/pyspark/context.py", line
583, in uiWebUrl
return self._jsc.sc().uiWebUrl().get()
File
"/Users/ruifeng.zheng/Dev/spark/python/lib/py4j-0.10.9.5-src.zip/py4j/java_gateway.py",
line 1321, in __call__
return_value = get_return_value(
File
"/Users/ruifeng.zheng/Dev/spark/python/lib/py4j-0.10.9.5-src.zip/py4j/protocol.py",
line 326, in get_return_value
raise Py4JJavaError(
py4j.protocol.Py4JJavaError: An error occurred while calling o408.get.
: java.util.NoSuchElementException: None.get
at scala.None$.get(Option.scala:529)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]