Community Articles
Find and share helpful community-sourced technical articles
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.
Labels (1)
Rising Star

SYMPTOM: While integrating Storm 1.0.1 to Elastic Search 5.0.0, the following error is observed:

Exception in thread "main" java.lang.NoClassDefFoundError: org/elasticsearch/common/base/Preconditions 
at org.apache.storm.elasticsearch.common.EsConfig.<init>( 
at org.apache.storm.elasticsearch.common.EsConfig.<init>( 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
at sun.reflect.NativeMethodAccessorImpl.invoke( 
at sun.reflect.DelegatingMethodAccessorImpl.invoke( 
at java.lang.reflect.Method.invoke( 
at com.intellij.rt.execution.application.AppMain.main( 
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.common.base.Preconditions
Following were the maven dependencies:


ROOT CAUSE: Apache libraries were used to compile/package the topology instead of using Hortonworks repository RESOLUTION: Please add the Hortonworks repository in the pom.xml:
Then change the storm artifact versions, which should be in this format: <apache_version>.<HDP-version> For example, for 'storm-core' in HDP, version would be Similarly, for 'storm-elasticsearch' it would be: (for HDP Please find the version corresponding to your HDP here:
0 Kudos
Don't have an account?
Coming from Hortonworks? Activate your account here
Version history
Revision #:
1 of 1
Last update:
‎03-26-2017 09:18 PM
Updated by:
Top Kudoed Authors