def path_exists(path):
# spark is a SparkSession
sc = spark.sparkContext
fs = sc._jvm.org.apache.hadoop.fs.FileSystem.get(
sc._jvm.java.net.URI.create("s3://" + path.split("/")[2]),
sc._jsc.hadoopConfiguration(),
)
return fs.exists(sc._jvm.org.apache.hadoop.fs.Path(path))
Poker & Rules - Worrione
ReplyDeleteLearn worrione how to 1xbet win at poker with our live 바카라사이트 tables, tables, and more. Poker Rules · Learn how to win at poker with our live table, table, and more. Poker.