<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Solr DataImporter class not found in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-DataImporter-class-not-found/m-p/57894#M65393</link>
    <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;A href="http://community.cloudera.com/t5/user/viewprofilepage/user-id/15085" target="_self"&gt;Yuexin Zhang&lt;/A&gt;&amp;nbsp;thank you for your reply&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Your solution partially solved my problem. now the collection are created with the below error in the solrAdmin console.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: RequestHandler init failure&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Solrconfig xml:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;lt;requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler"&amp;gt;&lt;BR /&gt;&amp;lt;lst name="defaults"&amp;gt;&lt;BR /&gt;&amp;lt;str name="config"&amp;gt;db-data-config.xml&amp;lt;/str&amp;gt;&lt;BR /&gt;&amp;lt;/lst&amp;gt;&lt;BR /&gt;&amp;lt;/requestHandler&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;I feel like it expected the ojdbc.jar in the classpath. Since I have 5 nodes cluster should i need to copy the ojdbc.jar in all the node of the folder &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;/opt/cloudera/parcels/CDH/lib/solr/&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 24 Jul 2017 07:10:48 GMT</pubDate>
    <dc:creator>ganeshkumarj</dc:creator>
    <dc:date>2017-07-24T07:10:48Z</dc:date>
    <item>
      <title>Solr DataImporter class not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-DataImporter-class-not-found/m-p/57892#M65391</link>
      <description>&lt;P&gt;&lt;STRONG&gt;CDH version&lt;/STRONG&gt;&amp;nbsp;: 5.9.2&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;solr version&lt;/STRONG&gt; : 4.10.3&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to import Oracle table data to the Solrcloud. I am getting the error when creating the collection with the below command&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;solrctl --zk ${ZOOKEEPER_CONNECT} collection --create xxxx&amp;nbsp;-s 2&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Trace:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Caused by: java.lang.ClassNotFoundException: org.apache.solr.handler.dataimport.DataImportHandler&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so I created the lib folder inside my core instantdir like&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;instantDir/lib&amp;nbsp;&lt;/STRONG&gt;and copied jar from the parcel folder&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/data/opt/cloudera/parcels/CDH-5.9.2-1.cdh5.9.2.p0.3/jars/&lt;STRONG&gt;solr-dataimportandler*.jar&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it does not consider those folder jars when i again try to create the collection getting same error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In solrconfig.xml i have below entry for lib tag:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;lib dir="../lib" /&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i check the solr server log i can see few warns&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2017-07-24 08:15:31,421 WARN org.apache.solr.core.SolrResourceLoader: Can't find (or read) directory to add to classloader:&amp;nbsp;../lib&amp;nbsp;(resolved as: /var/lib/solr/xxxx_shard1_replica1/../lib).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From my understanding the folder &lt;SPAN&gt;xxxx&lt;/SPAN&gt;&lt;SPAN&gt;_shard1_replica1 must be created once the collection are successfully created.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But I don't why it is refering it that folder and throwing the error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:58:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-DataImporter-class-not-found/m-p/57892#M65391</guid>
      <dc:creator>ganeshkumarj</dc:creator>
      <dc:date>2022-09-16T11:58:15Z</dc:date>
    </item>
    <item>
      <title>Re: Solr DataImporter class not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-DataImporter-class-not-found/m-p/57893#M65392</link>
      <description>&lt;P&gt;How about adding a lib configuration to your solrconfig.xml? Like below:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&amp;lt;lib dir="/opt/cloudera/parcels/CDH/lib/solr/" regex="solr-dataimporthandler*\.jar" /&amp;gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, the dir&amp;nbsp;/var/lib/solr/xxxx_shard1_replica1 is created by solr when the node is asked to load the core, not when the collection is created.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 06:54:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-DataImporter-class-not-found/m-p/57893#M65392</guid>
      <dc:creator>Yuexin Zhang</dc:creator>
      <dc:date>2017-07-24T06:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Solr DataImporter class not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-DataImporter-class-not-found/m-p/57894#M65393</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;&lt;A href="http://community.cloudera.com/t5/user/viewprofilepage/user-id/15085" target="_self"&gt;Yuexin Zhang&lt;/A&gt;&amp;nbsp;thank you for your reply&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;Your solution partially solved my problem. now the collection are created with the below error in the solrAdmin console.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: RequestHandler init failure&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;Solrconfig xml:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;&amp;lt;requestHandler name="/dataimport" class="org.apache.solr.handler.dataimport.DataImportHandler"&amp;gt;&lt;BR /&gt;&amp;lt;lst name="defaults"&amp;gt;&lt;BR /&gt;&amp;lt;str name="config"&amp;gt;db-data-config.xml&amp;lt;/str&amp;gt;&lt;BR /&gt;&amp;lt;/lst&amp;gt;&lt;BR /&gt;&amp;lt;/requestHandler&amp;gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;I feel like it expected the ojdbc.jar in the classpath. Since I have 5 nodes cluster should i need to copy the ojdbc.jar in all the node of the folder &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;/opt/cloudera/parcels/CDH/lib/solr/&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 07:10:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-DataImporter-class-not-found/m-p/57894#M65393</guid>
      <dc:creator>ganeshkumarj</dc:creator>
      <dc:date>2017-07-24T07:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Solr DataImporter class not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-DataImporter-class-not-found/m-p/57896#M65394</link>
      <description>&lt;P&gt;I have copied the ojdbc6.jar to the path&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/opt/cloudera/parcels/CDH/lib/solr/&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in all 5 nodes. still getting the problem in the&amp;nbsp;&lt;SPAN&gt;SolrCore Initialization Failures&amp;nbsp;&lt;/SPAN&gt;&amp;nbsp;error in the solr admin page and also it didn't listing the created collection core in the admin page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: RequestHandler init failure&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 07:44:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-DataImporter-class-not-found/m-p/57896#M65394</guid>
      <dc:creator>ganeshkumarj</dc:creator>
      <dc:date>2017-07-24T07:44:11Z</dc:date>
    </item>
    <item>
      <title>Re: Solr DataImporter class not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-DataImporter-class-not-found/m-p/57901#M65395</link>
      <description>&lt;P&gt;Problem has been solved. the mistake is mine,previously i have given wrong driver name and url for oracle connection. I have corrected and it successully imported data from oracle.&lt;/P&gt;</description>
      <pubDate>Mon, 24 Jul 2017 09:08:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-DataImporter-class-not-found/m-p/57901#M65395</guid>
      <dc:creator>ganeshkumarj</dc:creator>
      <dc:date>2017-07-24T09:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: Solr DataImporter class not found</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-DataImporter-class-not-found/m-p/58305#M65396</link>
      <description>&lt;P&gt;Glad the issue the resolved but try to use some other location to store those jars instead of /opt/cloudera/parcels as when you upgrade you can lose all those jars.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2017 18:49:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Solr-DataImporter-class-not-found/m-p/58305#M65396</guid>
      <dc:creator>neerjakhattar</dc:creator>
      <dc:date>2017-08-01T18:49:37Z</dc:date>
    </item>
  </channel>
</rss>

