[
https://issues.apache.org/jira/browse/NUTCH-848?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Julien Nioche updated NUTCH-848:
--------------------------------
Attachment: nutch-deploy
Modified version of the nutch script to use in a deployed environment. Note
that this will not work in local mode.
Will modify the build script so that this is put in the right place at
compilation time
@Chris : thanks for the pointer. I think Andrzej has found an implementation of
a ClassLoader which would allow to do just that. It will probably require some
time to use and test it in Nutch so in the short term maybe we could go with
the script attached. We can't really leave the trunk broken much longer
> Error when calling 'nutch solrindex' in deployed configuration
> --------------------------------------------------------------
>
> Key: NUTCH-848
> URL: https://issues.apache.org/jira/browse/NUTCH-848
> Project: Nutch
> Issue Type: Bug
> Reporter: Julien Nioche
> Priority: Blocker
> Fix For: 2.0
>
> Attachments: nutch-deploy
>
>
> See https://issues.apache.org/jira/browse/NUTCH-843
> In a deployed environment with just bin/nutch and the job file on an
> independent Hadoop configuration, a call to 'nutch solrindex' yields :
> {code}
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/solr/client/solrj/SolrServer
> Caused by: java.lang.ClassNotFoundException:
> org.apache.solr.client.solrj.SolrServer
> at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
> at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
> Could not find the main class: org.apache.nutch.indexer.solr.SolrIndexer.
> Program will exit.
> {code}
> Surprisingly some tasks work fine, but not this one.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.