我喜欢接受的答案。一件事 - 环境变量对我不起作用...我正在使用融合社区版 5.3.1...
这是我所做的工作...
我从这里安装了汇合的cli:https://docs.confluent.io/current/cli/installing.html#tarball-installation
我使用命令运行汇合confluent local start
我使用命令获取了连接应用程序详细信息ps -ef | grep connect
我将生成的命令复制到编辑器并添加了arg(紧跟在java之后):
-agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005
然后我停止使用命令连接confluent local stop connect
然后我用arg运行连接命令
中场休息---
vs代码开发由erich gamma领导 - 成名,他也写了eclipse。vs code 正在成为一流的 java ide 参见 https://en.wikipedia.org/wiki/Erich_Gammagang of four
---场休息
接下来我启动了vs代码并打开了debezium oracle连接器文件夹(从这里克隆)https://github.com/debezium/debezium-incubator
然后我选择了Debug - Open Configurations
并进入突出显示的调试配置
然后运行调试器 - 它将命中您的断点!
连接命令应如下所示:
/Library/Java/JavaVirtualMachines/jdk1.8.0_221.jdk/Contents/Home/bin/java -agentlib:jdwp=transport=dt_socket,server=y,suspend=y,address=5005 -Xms256M -Xmx2G -server -XX:+UseG1GC -XX:MaxGCPauseMillis=20 -XX:InitiatingHeapOccupancyPercent=35 -XX:+ExplicitGCInvokesConcurrent -Djava.awt.headless=true -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dkafka.logs.dir=/var/folders/yn/4k6t1qzn5kg3zwgbnf9qq_v40000gn/T/confluent.CYZjfRLm/connect/logs -Dlog4j.configuration=file:/Users/myuserid/confluent-5.3.1/bin/../etc/kafka/connect-log4j.properties -cp /Users/myuserid/confluent-5.3.1/share/java/kafka/*:/Users/myuserid/confluent-5.3.1/share/java/confluent-common/*:/Users/myuserid/confluent-5.3.1/share/java/kafka-serde-tools/*:/Users/myuserid/confluent-5.3.1/bin/../share/java/kafka/*:/Users/myuserid/confluent-5.3.1/bin/../support-metrics-client/build/dependant-libs-2.12.8/*:/Users/myuserid/confluent-5.3.1/bin/../support-metrics-client/build/libs/*:/usr/share/java/support-metrics-client/* org.apache.kafka.connect.cli.ConnectDistributed /var/folders/yn/4k6t1qzn5kg3zwgbnf9qq_v40000gn/T/confluent.CYZjfRLm/connect/connect.properties