Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: ElasticSearch Bulk Insert

  1. #1
    Join Date
    Jun 2016
    Posts
    181

    Default ElasticSearch Bulk Insert

    Trying to connect to Elasticsearch (localhost:9200 or 9300). Any idea why this error?

    An unexpected error occurred in Spoon:
    Could not initialize class org.elasticsearch.threadpool.ThreadPool
    java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.threadpool.ThreadPool
    at org.elasticsearch.client.transport.TransportClient$Builder.build(TransportClient.java:133)
    at org.pentaho.di.ui.trans.steps.elasticsearchbulk.ElasticSearchBulkDialog.test(ElasticSearchBulkDialog.java:923)
    at org.pentaho.di.ui.trans.steps.elasticsearchbulk.ElasticSearchBulkDialog.access$300(ElasticSearchBulkDialog.java:86)
    at org.pentaho.di.ui.trans.steps.elasticsearchbulk.ElasticSearchBulkDialog$7.handleEvent(ElasticSearchBulkDialog.java:358)
    at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Display.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
    at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
    at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
    at org.pentaho.di.ui.spoon.Spoon.readAndDispatch(Spoon.java:1375)
    at org.pentaho.di.ui.spoon.Spoon.waitForDispose(Spoon.java:8104)
    at org.pentaho.di.ui.spoon.Spoon.start(Spoon.java:9466)
    at org.pentaho.di.ui.spoon.Spoon.main(Spoon.java:701)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.pentaho.commons.launcher.Launcher.main(Launcher.java:92)

  2. #2
    Join Date
    Apr 2008
    Posts
    4,690

    Default

    Quote Originally Posted by Gosforth View Post
    java.lang.NoClassDefFoundError: Could not initialize class org.elasticsearch.threadpool.ThreadPool
    Usually this error indicates that there's a JAR missing...

  3. #3
    Join Date
    Jun 2016
    Posts
    181

    Default

    Possible. Documentation for this step does not say I need some JAR, where to get it and where it should be placed :-(
    https://help.pentaho.com/Documentati...ch_Bulk_Insert

  4. #4

    Default

    What ES version do you try to connect to?
    AFAIK Kettle supports ES 2.2.0.
    I tried to upgrade the ES lib (remove elasticsearch-2.2.0.jar and add a newer one), but there were API breaks.
    As ES has a fancy REST-API, try to use the REST-Client or (as we did) build a small JavaScript Module.
    R2-PDI | PDI CE 8.0.0.0-28 | MySQL Connector/J 5.1.46 | Rhino 1.7.9
    @development: ubuntu 18.10 (x64) | Oracle Java 1.8.0_192 | Percona 5.7.24-27-1 | Elasticsearch 6.5.4
    @processing: Debian 8.8 (x64) | Oracle Java 1.8.0_191 | Percona 5.7.23-25-1 | Elasticsearch 6.3.1

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Privacy Policy | Legal Notices | Safe Harbor Privacy Policy

Copyright © 2005 - 2019 Hitachi Vantara Corporation. All Rights Reserved.