Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Para-search-elasticsearch: NoSuchFieldError: LUCENE_8_3_0 #70

Closed
pikrakpzu opened this issue Feb 12, 2020 · 8 comments
Closed

Para-search-elasticsearch: NoSuchFieldError: LUCENE_8_3_0 #70

pikrakpzu opened this issue Feb 12, 2020 · 8 comments

Comments

@pikrakpzu
Copy link

pikrakpzu commented Feb 12, 2020

Hi,

I`m trying to setup para with mongodb and elasticsearch for scoold pro on docker.

Mongodb + para + scooldPro works well.
After moving shaded para-search-elasticsearch jar to /para/lib, the para app can't start.
Docker run and log: para.log

Everything is managed by docker-compose, scoold-test_internal is a network for mongo/elasticsearch/scoold.
Para was moved out for testing, while ran with docker compose there was the same result.

Docker file for my/para:

FROM erudikaltd/para:v1.34.3
COPY --from=erudikaltd/para-dao-mongodb:1.34.0 /para/lib/* /para/lib/
COPY --from=erudikaltd/para-search-elasticsearch:1.34.1 /para/lib/* /para/lib/

Build:

docker build -f Dockerfile-para-plugins -t my/para:v1.34.3 .

Images:

erudikaltd/para-search-elasticsearch                      1.34.1              195cb05b04a8        2 weeks ago         134MB
erudikaltd/para                                           v1.34.3             2a9d92e84b3c        2 weeks ago         175MB
erudikaltd/para-dao-mongodb                               1.34.0              4735ae498a96        2 weeks ago         107MB
docker.elastic.co/elasticsearch/elasticsearch             7.5.2               929d271f1798        4 weeks ago         779MB
/para $ ls /para/lib/
para-dao-mongodb-1.34.0-shaded.jar           para-search-elasticsearch-1.34.1-shaded.jar
@albogdano
Copy link
Member

You might want to downgrade ES to 7.5.1 because the para-search-elasticsearch plugin uses that version of the ES client. Usually such errors appear when the version of the client is older than that of the server. I'm not 100% sure though...

@albogdano
Copy link
Member

Actually, I was wrong - ignore the comment above. You should extend erudikaltd/para:v1.34.3-base which is the Para container without any plugins in it. Otherwise you will have two different Lucene versons on the classpath as Para contains the para-search-lucene plugin.

@pikrakpzu
Copy link
Author

Thanks for fast response.

I've ran para without para-search-elasticsearch-1.34.1-shaded.jar and it's up without any problems.
But on GET http://localhost:37988/v1/_setup it looks like there is no search implementation:

[ERROR] API request error:
java.lang.UnsupportedOperationException: Not implemented.

Full stack: para2.log

@albogdano
Copy link
Member

That means that the plugin is not loaded or the property para.search = "ElasticSearch" is not in the Para configuration file.

@albogdano
Copy link
Member

albogdano commented Feb 12, 2020

Try editing the dockerfile:

FROM erudikaltd/para:v1.34.3-base
COPY --from=erudikaltd/para-dao-mongodb:1.34.0 /para/lib/* /para/lib/
COPY --from=erudikaltd/para-search-elasticsearch:1.34.1 /para/lib/* /para/lib/

Then rebuild the whole container.

@pikrakpzu
Copy link
Author

While running image based on para...-base only one log line is printed:
para_1 | no main manifest attribute, in para-base-1.31.4-SNAPSHOT.jar :)

@albogdano
Copy link
Member

Oh, apparently the base package build is broken. I'll have to fix this...

@pikrakpzu
Copy link
Author

Ok, so I'll wait for fix then.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants