Hitachi Vantara Pentaho Community Forums
Results 1 to 4 of 4

Thread: ElasticSearch Bulk Insert

  1. #1
    Join Date
    Jun 2016

    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$
    at org.pentaho.di.ui.trans.steps.elasticsearchbulk.ElasticSearchBulkDialog.test(
    at org.pentaho.di.ui.trans.steps.elasticsearchbulk.ElasticSearchBulkDialog.access$300(
    at org.pentaho.di.ui.trans.steps.elasticsearchbulk.ElasticSearchBulkDialog$7.handleEvent(
    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(
    at org.pentaho.di.ui.spoon.Spoon.waitForDispose(
    at org.pentaho.di.ui.spoon.Spoon.start(
    at org.pentaho.di.ui.spoon.Spoon.main(
    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(

  2. #2
    Join Date
    Apr 2008


    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


    Possible. Documentation for this step does not say I need some JAR, where to get it and where it should be placed :-(

  4. #4


    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 | 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.