티스토리 뷰
Elasticsearch java client 사용시 java.lang.NoClassDefFoundError: org/elasticsearch/plugins/NetworkPlugin 발생하는 경우
Mr. Curious 2017. 10. 31. 19:07아래와 같이 Elasticsearch java client 사용시 java.lang.NoClassDefFoundError: org/elasticsearch/plugins/NetworkPlugin 발생하거나 FiltersAggregator.KeyedFilter와 같은 API들을 찾을 수 없는 경우가 있다.
java.lang.NoClassDefFoundError: org/elasticsearch/plugins/NetworkPlugin
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:763)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:467)
at java.net.URLClassLoader.access$100(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:368)
at java.net.URLClassLoader$1.run(URLClassLoader.java:362)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:361)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.elasticsearch.transport.client.PreBuiltTransportClient.<clinit>(PreBuiltTransportClient.java:88)
at kr.bluewhale.elastic.broker.ElasticQueryThread.run(ElasticQueryThread.java:37)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.ClassNotFoundException: org.elasticsearch.plugins.NetworkPlugin
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 16 more
그럴땐, org.elasticsearch.elasticsearch가 dependency에 정의되어있는지 확인해보자.
<dependency>
<groupId>org.elasticsearch</groupId>
<artifactId>elasticsearch</artifactId>
<version>5.6.3</version>
</dependency>
<dependency>
<groupId>org.elasticsearch.client</groupId>
<artifactId>transport</artifactId>
<version>5.6.3</version>
</dependency>
'Programming > ElasticSearch' 카테고리의 다른 글
Elasticsearch Java client DSL로 작성한 Request의 실제 Query 확인하기 (0) | 2017.11.01 |
---|---|
ES Java client 사용시 availableProcessors is already set to [8], rejecting [8] 발생 (388) | 2017.10.31 |
인덱스 안의 모든 타입의 xxx field의 fielddata를 true로 세팅 (402) | 2017.10.27 |
no [query] registered for [filtered] 오류가 나며 filtered query가 에러나는 경우 (0) | 2017.10.25 |
Elasticsearch) Painless script를 이용해서 값을 변경하기 (0) | 2017.10.19 |
- Total
- Today
- Yesterday
- pycharm
- X-Pack
- Ansible
- AWS
- PubSub
- mecab
- boot2docker
- Paw
- git
- 은전한닢
- TDD
- docker
- spring #lombok
- xpath
- GCP
- ansible-container
- Netty
- Elasticsearch
- Redis
- pymongo
- MacOS
- Python
- scrapy
- docker-machine
- Spring Boot
- zsh
- kubernetes
- PIP
- MongoDB
- IntelliJ
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |