79271972

Date: 2024-12-11 13:58:17
Score: 0.5
Natty:
Report link

The earlier answers don't show how to extract the java object into a python list[str]:

_jars_scala = spark.sparkContext._jsc.sc().listJars()
jars = [_jars_scala.apply(i) for i in range(_jars.length()]
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Aaron Zolnai-Lucas