Hi Raju,

I am trying curl "
http://192.168.0.10:8983/solr/test/update/csv?separator=%%23&commit=true";
--data-binary "@file.txt" -H "Content-type:text/plain; charset=utf-8"

The text file contains about 5000 records that are single line (less than
256 chars)

I'll try with the second option once I am back in office tomorrow.

Regards
Puneet


On Fri, Nov 29, 2013 at 10:59 AM, Raju Shikha <raju.shi...@cigniti.com>wrote:

> Hi Puneet,
> Using curl,
> Are you trying in this way?
>
>   curl http://localhost:8983/solr/update?commit=true -H "Content-Type:
> text/xml" -d "@mem.xml"
>   curl http://localhost:7574/solr/update?commit=true -H "Content-Type:
> text/xml" -d "@monitor2.xml"
>
> or try using -Durl if it is windows like below,
>
>            java -Durl=http://localhost:8983/solr/collection1/update -jar
> post.jar ipod_video.xml
>
>            java -Durl=http://localhost:8983/solr/collection1/update -jar
> post.jar monitor.xml
>
>            java -Durl=http://localhost:8983/solr/collection1/update -jar
> post.jar mem.xml
>
>
>
> -----Original Message-----
> From: Puneet Pawaia [mailto:puneet.paw...@gmail.com]
> Sent: 29 November 2013 06:42
> To: solr-user@lucene.apache.org
> Subject: Re: SolrCloud - BadRequest error when adding records
>
> Hi Eric
>
> I am adding documents using curl.
> Each document is a single line document containing a few fields which are
> generally a few words.  Several such documents are stored in a csv file
> which is uploaded using curl.
>
> When these files are uploaded to a single node installation,  there are no
> errors.
>
> Regards
> Puneet
> On 29 Nov 2013 06:09, "Erick Erickson" <erickerick...@gmail.com> wrote:
>
> > How are you trying to update? This looks like the intra-shard URL,
> > What's the process by which you attempt to add the docs?
> >
> > Best,
> > Erick
> >
> >
> > On Thu, Nov 28, 2013 at 12:20 PM, Puneet Pawaia <puneet.paw...@gmail.com
> > >wrote:
> >
> > > Hi All,
> > >
> > > I have an test setup with External Zookeeper and 2 machines with Solr
> > > 4.6.0. 2 collections with 2 shards. As such there is no replica at the
> > > moment.
> > >
> > > However, when adding records, I am getting the following error
> > >
> > > ERROR - 2013-11-28 22:42:26.925;
> > > org.apache.solr.update.StreamingSolrServers$1; error
> > > org.apache.solr.common.SolrException: Bad Request
> > >
> > > request:
> > >
> > >
> >
> http://192.168.0.10:8983/solr/test/update?update.distrib=TOLEADER&distrib.from=http%3A%2F%2F192.168.0.9%3A8983%2Fsolr%2Ftest%2F&wt=javabin&version=2
> > >         at
> > >
> > >
> >
> org.apache.solr.client.solrj.impl.ConcurrentUpdateSolrServer$Runner.run(ConcurrentUpdateSolrServer.java:240)
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> > >         at
> > >
> > >
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> > >         at java.lang.Thread.run(Thread.java:724)
> > >
> > > Don't know what could be the problem.
> > >
> > > TIA
> > > Regards
> > > Puneet Pawaia
> > >
> >
>

Reply via email to