2017-12-19 24 views
0

logstash 버전을 사용하여 MySQL에서 Elasticsearch로 데이터를 가져 오려고합니다. 소프트웨어의Logstash 사용하기 Elasticsearch 출력 플러그인 오류 : NameError : SSLConnectionSocketFactory를 찾을 수 없음

버전 사용 :

  • 자바/JRE 1.8을
  • Elasticsearch 6.1.0
  • Logstash를 6.1.0

다음과 같이 내 conf의 내용은 다음과 같습니다

파일 : simple-out.conf

내가 logstash을 실행하면 16,
input { 
    jdbc { 
     # MySQL jdbc connection string to our database, mydb 
     jdbc_connection_string => "jdbc:mysql://valid/validDBNAME?useSSL=false" 
     # The user we wish to execute our statement as 
     jdbc_user => "MY USER" 
     jdbc_password => "MY PWD" 
     # The path to our downloaded jdbc driver 
     jdbc_driver_library => "C:\JavaDevelopment\TomcatServer\apache-tomcat-8.5.20\lib\mysql-connector-java-5.1.45-bin.jar" 
     # The name of the driver class for Postgresql 
     jdbc_driver_class => "com.mysql.jdbc.Driver" 
     # our query 
     statement => "SELECT * from testtable" 
     jdbc_paging_enabled => "true" 
     jdbc_page_size => "50000" 
    } 
} 
output { 
    stdout { codec => json_lines } 
    elasticsearch {  
     hosts => "http://localhost:9200" 
     index => "test-migrate" 
     document_type => "data" 
    } 
} 

나는 다음과 같은 오류가 발생합니다 :

[2017-12-19T16:50:08,055][ERROR][logstash.pipeline  ] Pipeline aborted due to error {:pipeline_id=>"main", :exception=>#<NameError: SSLConnectionSocketFactory not found ERROR 

이 과거를 얻을하는 방법을 제안 해주십시오. 감사합니다.

답변

0

httpclient-VERSION.jar, httpcore-VERSION.jar 개의 파일을 LOGSTASH_HOME/vendor/jruby/lib/ 폴더에 추가해보세요.