Installation of logstash-input-kafka without internet connection

Hi,
I want to install logstash-input-kafka without internet connection on the server.
After a lot of search, I have downloaded a gem file: logstash-input-kafka-4.2.0.gem

Now, I am running the command

# /opt/logstash-5.5.0/bin/logstash-plugin install  logstash-input-kafka-4.2.0.gem
Validating logstash-input-kafka-4.2.0.gem
Installing logstash-input-kafka
Jul 11, 2017 12:35:28 PM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.NoRouteToHostException) caught when processing request to {s}->https://repo.maven.apache.org:443: No route to host
Jul 11, 2017 12:35:28 PM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: Retrying request to {s}->https://repo.maven.apache.org:443
Jul 11, 2017 12:35:31 PM org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec execute
INFO: I/O exception (java.net.NoRouteToHostException) caught when processing request to {s}->https://repo.maven.apache.org:443: No route to host

Of course, without Internet connection, I cannot ping repo.maven.apache.org
How can I finish my installation ?
thanks for your tips

https://www.elastic.co/guide/en/logstash/current/offline-plugins.html

very easy if you work for a bank without internet connection :wink:
So, I prepare the zip file on my personal computer and download on the server,

unzip /tmp/logstash-input420.zip

ls -lR /tmp/logstash

/tmp/logstash:
total 3528
drwxr-xr-x 2 root root 101 Jul 13 06:41 dependencies
-rw-r--r-- 1 root root 3612672 Jul 13 06:41 logstash-input-kafka-4.2.0.gem

/tmp/logstash/dependencies:
total 44
-rw-r--r-- 1 root root 12800 Jul 13 06:41 logstash-codec-json-3.0.3.gem
-rw-r--r-- 1 root root 10752 Jul 13 06:41 logstash-codec-plain-3.0.3.gem
-rw-r--r-- 1 root root 15872 Jul 13 06:41 stud-0.0.22.gem

bin/logstash-plugin install --local --no-verify /tmp/logstash/logstash-input-kafka-4.2.0.gem

Installing logstash-input-kafka
Error Errno::EHOSTUNREACH, retrying 1/10
No route to host - SocketChannel.connect
Error Errno::EHOSTUNREACH, retrying 2/10

always, need an internet connection

Did you also try following the instructions for how to install offline plugin packs?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.