使用Kafka Connect JMS连接器解锁未经授权

时间:2018-01-10 16:13:59

标签: apache-kafka-connect solace

我正在尝试使用Kafka Connect JMS Source Connect(由datamountaineer)连接到Solace JMS,并且我一直在smfclient4上未经授权。我确信用户名和密码是正确的。日志如下。

[2018-01-10 07:52:49,859] INFO Connecting to host 'orig=tcp://solace-ip, scheme=tcp://, host=solace-ip' (host 1 of 1, smfclient 2, attempt 1 of 1, this_host_attempt: 1 of 1) (com.solacesystems.jcsmp.protocol.impl.TcpClientChannel:2337)
[2018-01-10 07:52:50,031] INFO Connected to host 'orig=tcp://solace-ip, scheme=tcp://, host=solace-ip' (smfclient 2) (com.solacesystems.jcsmp.protocol.impl.TcpClientChannel:2341)
[2018-01-10 07:52:50,222] INFO Channel Closed (smfclient 2) (com.solacesystems.jcsmp.protocol.impl.TcpClientChannel:460)
[2018-01-10 07:52:50,240] INFO Connecting to host 'orig=tcp://solace-ip, scheme=tcp://, host=solace-ip' (host 1 of 1, smfclient 4, attempt 1 of 2147483647, this_host_attempt: 1 of 1) (com.solacesystems.jcsmp.protocol.impl.TcpClientChannel:2337)
[2018-01-10 07:52:50,591] INFO (Client name: client-dns.c/3570/#00320002   Local addr: client-ip:52016   Remote addr: solace-ip:55003) - Error Response (401) - Unauthorized (com.solacesystems.jcsmp.protocol.impl.TcpChannel:226)
[2018-01-10 07:52:50,595] INFO Connection attempt failed to host 'solace-ip' ConnectException ((Client name: client-dns.c/3570/#00320002   Local addr: client-ip:52016   Remote addr: solace-ip:55003) - )  com.solacesystems.jcsmp.JCSMPErrorResponseException: 401: Unauthorized [Subcode:1] ((Client name: client-dns.c/3570/#00320002   Local addr: client-ip:52016   Remote addr: solace-ip:55003) - ) (com.solacesystems.jcsmp.protocol.impl.TcpClientChannel:2377)

Kafka Connect配置如下。我需要在connect.jms.url中添加用户名:密码。如果没有,我会得到未经身份验证的身份验证。

connector.class: "com.datamountaineer.streamreactor.connect.jms.source.JMSSourceConnector"
connect.jms.initial.context.factory: "com.solacesystems.jndi.SolJNDIInitialContextFactory"
connect.jms.initial.context.extra.params: "SOLACE_JMS_VPN=my_vpn"
connect.jms.connection.factory: "MY.CF"
connect.jms.url: "smf://username:password@solace-ip"
connect.jms.username: "username@my_vpn"
connect.jms.kcql: "insert into kafka_topic select * from solaceQ WITHTYPE QUEUE"

我试图标记datamountaineer,但我找不到datamountaineer标记。

有关这个问题的任何线索?除此之外,smfclient 2,4,6和8是什么意思?

非常感谢你!

1 个答案:

答案 0 :(得分:0)

您是否能够使用其他工具使用此用户名,VPN和密码进行连接?例如SDKPerf(可在Solace Dev网站上找到)

客户端配置文件或ACL配置文件很可能无法为您提供足够的权限。