I'm migrating from solr v4.3.1 to v8.5.2 and using this guide: 
https://lucene.apache.org/solr/guide/8_5/installing-solr.html
I can't get data-import handler to work. I wanted to create a new core and then 
copy my old data-config fields into it to get me a quick start.

1. I ran command `solr create -c mytest` to create a new core.
2. I started solr: `C:\solr-8.5.2\bin\solr start -p 8983`
3. I look at http://localhost:8983/solr/#/, where I see my "mytest" core

On disk I see a `managed-schema` file, which I think matches Solr 4.3.1's 
`schema.xml`
I moved my data-config.xml to the new location 
C:\solr-8.5.2\server\solr\mytest\conf

In my old solrconfig.xml I had this code referring to the above data-config:

       <requestHandler name="/dataimport" 
class="org.apache.solr.handler.dataimport.DataImportHandler">
        <lst name="defaults">
        <str name="config">data-config.xml</str>
        </lst>
      </requestHandler>

This code was missing from the  
C:\solr-8.5.2\server\solr\mytest\conf\solrconfig.xml so I added it.
Then when I try to run 
`http://localhost:8983/solr/mytest/dataimport?command=full-import` I get the 
error:

> Error loading class 'org.apache.solr.handler.dataimport.DataImportHandler'

So I copied files from C:\solr-8.5.2\dist to C:\solr-8.5.2\server\lib

But then I get error

> org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: 
> Error Instantiating requestHandler, 
> org.apache.solr.handler.dataimport.DataImportHandler failed to instantiate 
> org.apache.solr.request.SolrRequestHandler

What can I do?

Reply via email to