Skip to content
This repository has been archived by the owner on May 2, 2023. It is now read-only.

Can't install MQTT connector, returned a non-zero code: 7 #876

Open
Chloejay opened this issue Oct 16, 2020 · 0 comments
Open

Can't install MQTT connector, returned a non-zero code: 7 #876

Chloejay opened this issue Oct 16, 2020 · 0 comments

Comments

@Chloejay
Copy link

I got error when run docker-compose up -d to build confluent-hub install --no-prompt confluentinc/kafka-connect-mqtt:1.2.3 from Dockerfile.

Building connect
Step 1/3 : FROM confluentinc/cp-kafka-connect-base:5.3.0
 ---> b1491496b48d
Step 2/3 : ENV CONNECT_PLUGIN_PATH="/usr/share/java, /usr/share/confluent-hub-components"
 ---> Using cache
 ---> b821f5e285cf
Step 3/3 : RUN confluent-hub install --no-prompt confluentinc/kafka-connect-mqtt:1.2.3
 ---> Running in e8ce73db4a7a
Running in a "--no-prompt" mode 
java.net.SocketException: Invalid argument or cannot assign requested address 
 
Error: Unknown error 
ERROR: Service 'connect' failed to build: The command '/bin/sh -c confluent-hub install --no-prompt confluentinc/kafka-connect-mqtt:1.2.3' returned a non-zero code: 7

However, I run this command on shell locally, it works

$ confluent-hub install --no-prompt confluentinc/kafka-connect-mqtt:1.2.3
Running in a "--no-prompt" mode 
Implicit acceptance of the license below:  
Confluent Software Evaluation License 
https://www.confluent.io/software-evaluation-license 
Downloading component Kafka Connect MQTT 1.2.3, provided by Confluent, Inc. from Confluent Hub and installing into /Users/chloeji/kafkamysql/confluent-5.3.2/share/confluent-hub-components 
Adding installation directory to plugin path in the following files: 
  /Users/chloeji/kafkamysql/confluent-5.3.2/etc/kafka/connect-distributed.properties 
  /Users/chloeji/kafkamysql/confluent-5.3.2/etc/kafka/connect-standalone.properties 
  /Users/chloeji/kafkamysql/confluent-5.3.2/etc/schema-registry/connect-avro-distributed.properties 
  /Users/chloeji/kafkamysql/confluent-5.3.2/etc/schema-registry/connect-avro-standalone.properties 
 
Completed 
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant