简体   繁体   English

Gogle Cloud Data Fusion Post GresQL 从关注者数据库中读取

[英]Gogle Cloud Data Fusion Post GresQL read from follower database

So, like the title I am trying to read from a PostGres follower database using Google Cloud Data Fusion so I can pipeline to big query.因此,就像我尝试使用 Google Cloud Data Fusion 从 PostGres 关注者数据库中读取的标题一样,我可以通过管道进行大查询。 I keep running into the issue.我一直遇到这个问题。

01/04/2022 0:28:52
INFO
Pipeline '2bf2d105-6d1f-11ec-9f9d-7ee8fe64661a' is started by user 'root' with arguments {isolationLevel=READ_COMMITTED, logical.start.time=1641274129122, system.profile.name=SYSTEM:dataproc, default_transaction_isolation=repeatable read, isolationlevel=READ_COMMITTED}
01/04/2022 0:28:52
INFO
Pipeline '2bf2d105-6d1f-11ec-9f9d-7ee8fe64661a' running
01/04/2022 0:29:15
ERROR
Spark program 'phase-1' failed with error: ERROR: cannot use serializable mode in a hot standby Detail: "default_transaction_isolation" is set to "serializable". Hint: You can use "SET default_transaction_isolation = 'repeatable read'" to change the default.. Please check the system logs for more details.
01/04/2022 0:29:15
ERROR
Pipeline '2bf2d105-6d1f-11ec-9f9d-7ee8fe64661a' failed.

I understand what it is telling me and why, but I can't for the life of me get Cloud Data Fusion to run postgresql-9.4.1211.jar with the argument for transaction isolation, which seems to be --isolationLevel=READ_COMMITTED according to https://spark.apache.org/docs/2.4.1/sql-data-sources-jdbc.html我明白它在告诉我什么以及为什么,但我无法让 Cloud Data Fusion 用事务隔离的参数运行 postgresql-9.4.1211.jar,这似乎是 --isolationLevel=READ_COMMITTED至https://spark.apache.org/docs/2.4.1/sql-data-sources-jdbc.html

Can someone help me understand what I am misunderstanding?有人可以帮助我理解我的误解吗?

I had this same issue and I could solve it as stated by "Prajna Rai T" but using "Database pluging" instead of "BigQuery plugin", which doesn't have the "Transaction Isolation Level" property.我遇到了同样的问题,我可以按照“Prajna Rai T”的说明解决它,但使用“数据库插件”而不是“BigQuery 插件”,它没有“事务隔离级别”属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM