Hi Gora, First of all thank you, and I will try to look closely at example-DIH (so I guess the rest of my email can be ignored), thanks!
I'm using DataImportHandler as it's described here: http://wiki.apache.org/solr/DataImportHandler. And I have the binary distribution, not the compiled one. I meant that I'm using the example/ folder which is included with the binary Solr archive to create a DataImportHandler which imports from MySQL database. I'm running "java -jar start.jar" from /home/my/projects/apache-solr-4.0.0-BETA/example. And, the example-DIH is really working for me. I just wanted to use the above folder in order to experience and try to configure the dataimport by myself. On the thread I mentioned, someone wrote: [[You need to find "apache-solr-solrj-4.0.jar" from your distribution and put it in the classpath somewhere. Perhaps the easiest thing is to include it in your core's "lib" directory.]] So I tried that too, and therefore I mentioned SolrJ. Thanks. On Sat, Aug 18, 2012 at 6:23 PM, Gora Mohanty <g...@mimirtech.com> wrote: > On 18 August 2012 19:50, Val <val.hoff...@gmail.com> wrote: > > Hi all, > > > > I'm having trouble using dataimport, so maybe you can help me. I've > > downloaded beta version of Solr 4. > > I already posted a question > > here< > http://stackoverflow.com/questions/12018422/classnotfoundexception-dataimport-dataimporthandler > >, > > so I don't want to repeat it. But in short: > > I want to import from MySQL, and I configured everything as needed. I'm > > getting a DataImportHandler exception, with no more output about the > > nature of the error. > [...] > > Are you indexing data using the DataImportHandler or SolrJ? > The error, and your post seem to refer to DIH but the > StackOverflow thread mentions SolrJ libraries. > > Are you building Solr 4.0.0-BETA from source, or are you using > the binary distribution? Could you clarify what you mean by > "example folder for my MySQL DB" in your StackOverflow question, > i.e., please provide the filesystem path from where you are doing > a "java -jar start.jar". If you are in > apache-solr-4.0.0-BETA/example/example-DIH please read the > README.txt there on how to start Solr for the > DataImportHandler example configuration: You need to specify > solr.solr.home. Everything should be ready to run from the binary > distribution without needing to change any configuration files. > > Regards, > Gora > -- Regards, Val * * * * * * * webdesignpatterns.org * * | twitter <http://twitter.com/wdesignpatterns> *