# Installation of logstash-input-kafka without internet connection

**URL:** <https://discuss.elastic.co/t/installation-of-logstash-input-kafka-without-internet-connection/92625>\
**Category:** Logstash\
**Created:** [July 11, 2017, 10:45am UTC](https://discuss.elastic.co/t/installation-of-logstash-input-kafka-without-internet-connection/92625 "2017-07-11T10:45:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zeenon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zeenon/32/24883_2.png) [@zeenon](https://discuss.elastic.co/u/zeenon)\
**Post date:** [July 11, 2017, 10:45am UTC](https://discuss.elastic.co/t/installation-of-logstash-input-kafka-without-internet-connection/92625/1 "2017-07-11T10:45:29Z")

</div>

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](http://repo.maven.apache.org)  
How can I finish my installation ?  
thanks for your tips

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 12, 2017, 7:52pm UTC](https://discuss.elastic.co/t/installation-of-logstash-input-kafka-without-internet-connection/92625/2 "2017-07-12T19:52:30Z")

</div>

[https://www.elastic.co/guide/en/logstash/current/offline-plugins.html](https://www.elastic.co/guide/en/logstash/current/offline-plugins.html)

---

<div class="post-metadata">

**Author:** ![zeenon](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zeenon/32/24883_2.png) [@zeenon](https://discuss.elastic.co/u/zeenon)\
**Post date:** [July 13, 2017, 6:41am UTC](https://discuss.elastic.co/t/installation-of-logstash-input-kafka-without-internet-connection/92625/3 "2017-07-13T06:41:41Z")

</div>

very easy if you work for a bank without internet connection 😉  
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

---

<div class="post-metadata">

**Author:** ![magnusbaeck](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/magnusbaeck/32/44943_2.png) [@magnusbaeck](https://discuss.elastic.co/u/magnusbaeck)\
**Post date:** [July 13, 2017, 6:48am UTC](https://discuss.elastic.co/t/installation-of-logstash-input-kafka-without-internet-connection/92625/4 "2017-07-13T06:48:41Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [August 10, 2017, 6:48am UTC](https://discuss.elastic.co/t/installation-of-logstash-input-kafka-without-internet-connection/92625/5 "2017-08-10T06:48:47Z")

</div>

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