[英]Unable to deploy mysql debezium connector on GKE - User does not have the 'LOCK TABLES' privileges
We are deploying Debezium mysql-cdc-connector on GKE.我们正在 GKE 上部署 Debezium mysql-cdc-connector 。 After the deployment the pod is failing with following error:部署后 pod 失败并出现以下错误:
caused by: org.apache.kafka.connect.errors.ConnectException: User does not have the 'LOCK TABLES' privilege required to obtain a consistent snapshot by preventing concurrent writes to tables.原因:org.apache.kafka.connect.errors.ConnectException:用户没有通过阻止并发写入表来获得一致快照所需的“LOCK TABLES”权限。
To overcome this without giving lock table access to the user, we can set snapshot.locking.mode=none
.为了在不给用户锁定表访问权限的情况下克服这个问题,我们可以设置snapshot.locking.mode=none
。 But we are not able to figure out where to update the code repo .但是我们无法弄清楚在哪里更新代码仓库。
In order to set this configuration you should add "snapshot.locking.mode": "none",
in your json configuration file and proceed with the steps described in here in order to start running a MySQL connector.为了设置此配置,您应该在 json 配置文件中添加"snapshot.locking.mode": "none",
并继续执行此处描述的步骤,以开始运行 MySQL 连接器。
Please remind to configure a connector configuration, and add the configuration to your Kafka Connect cluster.请提醒配置连接器配置,并将配置添加到您的 Kafka Connect 集群。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.