Spark JDBC Oracle陷入了一项任务
我正在Oracle运行下面的查询:
df = spark.read \
.format("jdbc") \
.option("url", "{}".format(db_url)) \
.option("dbtable","({})".format(query)) \
.option("user","{}".format(db_username)) \
.option("numPartitions", 1000) \
.option("partitionColumn", "CD_CONVENIO") \
.option("lowerBound", int(ParameterBound['MIN'])) \
.option("upperBound", int(ParameterBound['MAX'])) \
.option("password","{}".format(db_password)) \
.option("customSchema", schema) \
.option("driver", "oracle.jdbc.driver.OracleDriver") \
.load()
返回了大约19,000行。
但是该过程很长一段时间都陷入了一项任务。
I'm running the query below in oracle:
df = spark.read \
.format("jdbc") \
.option("url", "{}".format(db_url)) \
.option("dbtable","({})".format(query)) \
.option("user","{}".format(db_username)) \
.option("numPartitions", 1000) \
.option("partitionColumn", "CD_CONVENIO") \
.option("lowerBound", int(ParameterBound['MIN'])) \
.option("upperBound", int(ParameterBound['MAX'])) \
.option("password","{}".format(db_password)) \
.option("customSchema", schema) \
.option("driver", "oracle.jdbc.driver.OracleDriver") \
.load()
Approximately 199 thousand rows returned.
But the process gets stuck in one task for a long time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论