Not quite sure. Are all the directories you expect the Tika docs to be
in available to the Solr node?

Sidestepping your question, I would be very reluctant to use Tika in
SolrCloud mode because you're then putting all of the heavy-duty
processing on nodes that also serve queries. I have the same
reservation about stand-alone FWIW, but it's worse in SolrCloud.

I strongly recommend you do the Tika parsing from a client and send
the resulting Solr doc to SorlCloud, I predict you'll eventually do
that anyway. Here's a skeletal program that does that in SolrJ:

https://lucidworks.com/2012/02/14/indexing-with-solrj/

It also shows indexing from a DB, but that's easy enough to rip out.

Best,
Erick

On Wed, Feb 1, 2017 at 7:04 AM, Anatharaman, Srinatha (Contractor)
<srinatha_ananthara...@comcast.com> wrote:
> Hi,
>
>
>
> I am new to Solr, I have implemented Solr on single node and my code is
> working good
>
> When I move the same code to SolrCloud it fails (I made few changes for
> SolrCloud)
>
>
>
> I am trying to load data using Dataimporthandler but it throws error as
> below
>
>
>
> 2017-02-01 03:23:07.727 ERROR (Thread-18) [c:dsearch s:shard2 r:core_node1
> x:dsearch_shard2_replica1] o.a.s.h.d.DataImporter Full Import
> failed:java.lang.RuntimeException: java.lang.RuntimeException:
> org.apache.solr.handler.dataimport.DataImportHandlerException: Unable to
> load Tika Config Processing Document # 1
>
>         at
> org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:270)
>
>         at
> org.apache.solr.handler.dataimport.DataImporter.doFullImport(DataImporter.java:416)
>
>         at
> org.apache.solr.handler.dataimport.DataImporter.runCmd(DataImporter.java:475)
>
>         at
> org.apache.solr.handler.dataimport.DataImporter.lambda$runAsync$0(DataImporter.java:458)
>
>         at java.lang.Thread.run(Thread.java:745)
>
> Caused by: java.lang.RuntimeException:
> org.apache.solr.handler.dataimport.DataImportHandlerException: Unable to
> load Tika Config Processing Document # 1
>
>         at
> org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:416)
>
>         at
> org.apache.solr.handler.dataimport.DocBuilder.doFullDump(DocBuilder.java:329)
>
>         at
> org.apache.solr.handler.dataimport.DocBuilder.execute(DocBuilder.java:232)
>
>         ... 4 more
>
> Caused by: org.apache.solr.handler.dataimport.DataImportHandlerException:
> Unable to load Tika Config Processing Document # 1
>
>         at
> org.apache.solr.handler.dataimport.DataImportHandlerException.wrapAndThrow(DataImportHandlerException.java:69)
>
>         at
> org.apache.solr.handler.dataimport.TikaEntityProcessor.firstInit(TikaEntityProcessor.java:96)
>
>         at
> org.apache.solr.handler.dataimport.EntityProcessorBase.init(EntityProcessorBase.java:60)
>
>         at
> org.apache.solr.handler.dataimport.TikaEntityProcessor.init(TikaEntityProcessor.java:76)
>
>         at
> org.apache.solr.handler.dataimport.EntityProcessorWrapper.init(EntityProcessorWrapper.java:75)
>
>         at
> org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:433)
>
>         at
> org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:516)
>
>         at
> org.apache.solr.handler.dataimport.DocBuilder.buildDocument(DocBuilder.java:414)
>
>         ... 6 more
>
> Caused by: org.apache.solr.common.cloud.ZooKeeperException:
> ZkSolrResourceLoader does not support getConfigDir() - likely, what you are
> trying to do is not supported in ZooKeeper mode
>
>         at
> org.apache.solr.cloud.ZkSolrResourceLoader.getConfigDir(ZkSolrResourceLoader.java:151)
>
>         at
> org.apache.solr.handler.dataimport.TikaEntityProcessor.firstInit(TikaEntityProcessor.java:91)
>
>         ... 12 more
>
>
>
>
>
> I have attached the code for your reference
>
> Could you please help me with the solution
>
>
>
> Regards,
>
> ~Sri
>
>
>
>
>
>

Reply via email to