title: Logstash MySQL JDBC LoadError: no such file to load -- <file-path>
body: <p>I want to build Docker-ELK from <a href="https://github.com/edceo/docker-elk" rel="nofollow noreferrer">this repository</a>. </p>
  
  <p>This is my logstash.conf file</p>
  
  <pre><code>input {
    jdbc {
      jdbc_driver_library =&gt; "/home/edsoft/IdeaProjects/docker-elk/resources/mysql-connector-java-5.1.36-bin.jar"
          jdbc_driver_class =&gt; "com.mysql.jdbc.Driver"
          jdbc_connection_string =&gt; "jdbc:mysql://localhost:3306/yazilimokulu"
          jdbc_user =&gt; "root"
          jdbc_password =&gt; "1"
          schedule =&gt; "* * * * *"
          statement =&gt; "select * from posts"
      }
      tcp {
          port =&gt; 5000
      }
  }
  
  ## Add your filters / logstash plugins configuration here
  
  output {
      elasticsearch {
          hosts =&gt; ["elasticsearch:9200"]
          index =&gt; "posts"
          document_type =&gt; "post"
          document_id =&gt; "%{id}" ## must be lower case
      }
  }
  </code></pre>
  
  <p>I run docker with docker-compose. Kibana and ElasticSearch start successfully but Logstash throw error </p>
  
  <pre><code>LoadError: no such file to load -- /home/edsoft/IdeaProjects/docker-elk/resources/mysql-connector-java-5.1.36-bin
  logstash_1       |                   require at org/jruby/RubyKernel.java:1040
  logstash_1       |                   require at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/polyglot-0.3.5/lib/polyglot.rb:65
  logstash_1       |              load_drivers at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-jdbc-4.1.3/lib/logstash/plugin_mixins/jdbc.rb:134
  logstash_1       |                      each at org/jruby/RubyArray.java:1613
  logstash_1       |              load_drivers at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-jdbc-4.1.3/lib/logstash/plugin_mixins/jdbc.rb:132
  logstash_1       |   prepare_jdbc_connection at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-jdbc-4.1.3/lib/logstash/plugin_mixins/jdbc.rb:146
  logstash_1       |                  register at /usr/share/logstash/vendor/bundle/jruby/1.9/gems/logstash-input-jdbc-4.1.3/lib/logstash/inputs/jdbc.rb:191
  logstash_1       |           register_plugin at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:282
  logstash_1       |          register_plugins at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:293
  logstash_1       |                      each at org/jruby/RubyArray.java:1613
  logstash_1       |          register_plugins at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:293
  logstash_1       |              start_inputs at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:436
  logstash_1       |             start_workers at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:337
  logstash_1       |                       run at /usr/share/logstash/logstash-core/lib/logstash/pipeline.rb:232
  logstash_1       |            start_pipeline at /usr/share/logstash/logstash-core/lib/logstash/agent.rb:387
  </code></pre>
  
  <p>I write path ...bin.jar but error delete .jar from filename. I write ..bin.jar.jar error code is ..bin.jar but doesn't find the file.</p>
  
  <p>Please help me </p>
  
  <p>Thank you</p>