One Star

Problem with com/google/common/collect/ImmutableMap ElasticsearchIndex

Hi,
I have a problem when i'm using a tWriteJsonField with tElasticsearchIndex. 
I have this error: Exception in thread "Thread-1" java.lang.NoClassDefFoundError: com/google/common/collect/ImmutableMap.
Or i included the recommended Jars to elasticserarch, and even i added guava21 jar.
But i have the same error.
Can you help me please.
Thanks.
4 REPLIES
Moderator

Re: Problem with com/google/common/collect/ImmutableMap ElasticsearchIndex

Hi,
It seems there is a missing jar issue in your job.
Could you please indicate on which build version you got this issue? Screenshots of job setting will be preferred.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: Problem with com/google/common/collect/ImmutableMap ElasticsearchIndex

I work with TOS for big data 6.3.0 ,elasticsearch 2.3.5 , lucene : 5.5.0 , and tElasticsearchIndex 1.0.3

I try to change the guava.jar version in every time sometime the error change " java.lang.NoClassDefFoundError: org/apache/lucene/util/Version " like this :

One Star

Re: Problem with com/google/common/collect/ImmutableMap ElasticsearchIndex

The problem is resolved when I added all those libraries by the routine's method: 
guava-18.0.jar
compress-lzf-1.0.3.jar
hppc-0.7.1.jar
jackson-core-2.8.2.jar
joda-time-2.8.2.jar
 jsr166e-1.1.0.jar
 netty-3.10.5.Final.jar
 t-digest-3.0.jar
Moderator

Re: Problem with com/google/common/collect/ImmutableMap ElasticsearchIndex

Hi rim_edatis,
Thanks for your feedback and solution. Could you please mark this topic as resolved?
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.