I work in spark with Python, What does the below code do?
jvm = sc._jvm
jsc = sc._jsc
fs = jvm.org.apache.hadoop.fs.FileSystem.get(jsc.hadoopConfiguration())
if fs.exists(jvm.org.apache.hadoop.fs.Path(loc+"_SUCCESS")):
df=spark.read.parquet(loc)
df.write.mode("overwrite").parquet(hdfs_bkp_loc)
else: