[ 
https://issues.apache.org/jira/browse/METRON-1598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16501901#comment-16501901
 ] 

ASF GitHub Bot commented on METRON-1598:
----------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/metron/pull/1048


> NoClassDefFoundError when running with Elasticsearch X-Pack
> -----------------------------------------------------------
>
>                 Key: METRON-1598
>                 URL: https://issues.apache.org/jira/browse/METRON-1598
>             Project: Metron
>          Issue Type: Bug
>    Affects Versions: 0.4.2
>            Reporter: Nick Allen
>            Assignee: Nick Allen
>            Priority: Major
>
> When running on Elasticsearch with X-Pack enabled, the following exception is 
> thrown in the Metron REST logs.
> {code}
> 2018-05-23T07:43:16.000 ERROR 
> [org.apache.metron.elasticsearch.utils.ElasticsearchUtils] - Failed to 
> convert search request to JSON java.lang.NoClassDefFoundError: 
> com/fasterxml/jackson/dataformat/smile/SmileParser at 
> org.elasticsearch.common.xcontent.XContentFactory.contentBuilder(XContentFactory.java:123)
>  at 
> org.elasticsearch.action.support.ToXContentToBytes.buildAsBytes(ToXContentToBytes.java:62)
>  at 
> org.elasticsearch.action.support.ToXContentToBytes.buildAsBytes(ToXContentToBytes.java:52)
>  at 
> org.apache.metron.elasticsearch.utils.ElasticsearchUtils.toJSON(ElasticsearchUtils.java:277)
>  at 
> org.apache.metron.elasticsearch.dao.ElasticsearchRequestSubmitter.submitSearch(ElasticsearchRequestSubmitter.java:58)
>  at 
> org.apache.metron.elasticsearch.dao.ElasticsearchDao.search(ElasticsearchDao.java:172)
>  at 
> org.apache.metron.elasticsearch.dao.ElasticsearchMetaAlertDao.search(ElasticsearchMetaAlertDao.java:403)
>  at 
> org.apache.metron.rest.service.impl.SearchServiceImpl.search(SearchServiceImpl.java:83)
>  at 
> org.apache.metron.rest.controller.SearchController.search(SearchController.java:54)
> {code}
> This does not happen with all queries, just some queries. For example, the 
> following query completes successfully.
> {code}
> { 
>   "indices" : [], 
>   "query" : "*", 
>   "size" : 100, 
>   "from" : 0, 
>   "sort" : [ \{ "field" : "timestamp", "sortOrder" : "DESC" } ], 
>   "fields" : null, 
>   "facetFields" : null 
> }
> {code}
> On the other hand, this query fails with the exception shown above.
> {code}
> { 
>   "indices" : [], 
>   "query" : "*", 
>   "size" : 100, 
>   "from" : 0, 
>   "sort" : [ \{ "field" : "timestamp", "sortOrder" : "DESC" } ], 
>   "fields" : null, 
>   "facetFields" : [] 
> }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to