You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by "Plaatje, Patrick" <Pa...@getronics.com> on 2008/12/16 21:56:30 UTC
Using DIH, getting exception
Hi All,
I'm trying to use the Data import handler, with the data config below
(snippet):
<dataSource type="JdbcDataSource" name="mySource"
driver="com.mysql.jdbc.Driver" url="jdbc:mysql://myhost/myDB"
user="username" password="password"/>
<document name="post">
The variables are all good (userrname+password, etc), but I'm getting
the following exception, any thoughts?
org.apache.solr.handler.dataimport.DataImportHandlerException: No
dataSource :null available for entity :item Processing Document #
Best,
Patrick
Re: Using DIH, getting exception
Posted by Noble Paul നോബിള് नोब्ळ् <no...@gmail.com>.
you either remove the name="mySource" from the dataSource tag or add
dataSource="mySource" in the entity 'item'
On Wed, Dec 17, 2008 at 2:26 AM, Plaatje, Patrick
<Pa...@getronics.com> wrote:
> Hi All,
>
> I'm trying to use the Data import handler, with the data config below
> (snippet):
>
> <dataSource type="JdbcDataSource" name="mySource"
> driver="com.mysql.jdbc.Driver" url="jdbc:mysql://myhost/myDB"
> user="username" password="password"/>
> <document name="post">
>
> The variables are all good (userrname+password, etc), but I'm getting
> the following exception, any thoughts?
>
> org.apache.solr.handler.dataimport.DataImportHandlerException: No
> dataSource :null available for entity :item Processing Document #
>
>
> Best,
>
> Patrick
>
--
--Noble Paul