[
https://issues.apache.org/jira/browse/NUTCH-2473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16289940#comment-16289940
]
ASF GitHub Bot commented on NUTCH-2473:
---------------------------------------
lewismc closed pull request #253: fix for NUTCH-2473 Remove broken slf4j
dependecy from indexer-elastic-rest
URL: https://github.com/apache/nutch/pull/253
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/src/plugin/indexer-elastic-rest/plugin.xml
b/src/plugin/indexer-elastic-rest/plugin.xml
index ee1adab3e..d31714ec3 100644
--- a/src/plugin/indexer-elastic-rest/plugin.xml
+++ b/src/plugin/indexer-elastic-rest/plugin.xml
@@ -6,9 +6,9 @@
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
-
+
http://www.apache.org/licenses/LICENSE-2.0
-
+
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
@@ -34,7 +34,6 @@
<library name="httpcore-nio-4.4.4.jar"/>
<library name="jest-2.0.3.jar"/>
<library name="jest-common-2.0.3.jar"/>
- <library name="slf4j-api-1.7.21.jar"/>
</runtime>
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
> Elasticsearch REST Indexer broken due to wrong depenency
> --------------------------------------------------------
>
> Key: NUTCH-2473
> URL: https://issues.apache.org/jira/browse/NUTCH-2473
> Project: Nutch
> Issue Type: Bug
> Affects Versions: 1.14
> Reporter: Moreno Feltscher
> Assignee: Sebastian Nagel
>
> When trying to index into Elasticsearch using {{indexer-elastic-rest}} the
> following error is being thrown:
> {code}
> Exception in thread "main" java.lang.LinkageError: loader constraint
> violation: when resolving method
> "org.slf4j.impl.StaticLoggerBinder.getLoggerFactory()Lorg/slf4j/ILoggerFactory;"
> the class loader (instance of org/apache/nutch/plugin/PluginClassLoader) of
> the current class, org/slf4j/LoggerFactory, and the class loader (instance of
> sun/misc/Launcher$AppClassLoader) for the method's defining class,
> org/slf4j/impl/StaticLoggerBinder, have different Class objects for the type
> org/slf4j/ILoggerFactory used in the signature
> at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:418)
> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357)
> at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:383)
> at
> org.apache.nutch.indexwriter.elasticrest.ElasticRestIndexWriter.<clinit>(ElasticRestIndexWriter.java:71)
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
> at java.lang.Class.newInstance(Class.java:442)
> at
> org.apache.nutch.plugin.Extension.getExtensionInstance(Extension.java:161)
> at org.apache.nutch.indexer.IndexWriters.<init>(IndexWriters.java:57)
> at org.apache.nutch.indexer.IndexingJob.index(IndexingJob.java:123)
> at org.apache.nutch.indexer.IndexingJob.run(IndexingJob.java:230)
> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
> at org.apache.nutch.indexer.IndexingJob.main(IndexingJob.java:239)
> {code}
> [e66d44d|https://github.com/apache/nutch/commit/e66d44d9c290c550e78edb425a43e010b861172c#diff-aefa48b9ce916d2e33dc27b153c44977]
> removed the runtime dependency on {{slf4j-api-1.7.21.jar}} everywhere but in
> {{indexer-elastic-rest}}.
> Possible fix: https://github.com/apache/nutch/pull/253
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)