Hi Hoss,

* 1) Posting the exact same question twice because you didn't get a reply in
the first 8 hours isn't going to encourage people to reply faster. best
case scenerio: you waste people's time they could be spending reading
another email; worst case scnerio: you irk people and put them in a bad
mood so they don't feel like being helpful.

*Sorry, i did not mean to Spam or irk people. I will follow your advice from
now,as it sounds reasonable.*
*
* 2) In both instances of your question, the curl command you listed didn't
include a space between the URL and the --data-binary option, perhaps
that's your problem?

*There is a space between the URL and the --data-binary option

* 3) what *exactly* do you see in your shell when you run hte command?  you
said the lines from books.csv get dumped to your console, but what appears
above it? what appears below it? ... books.csv is only 10 lines, just
paste it all from the line where you run the command to the next prompt
you see.
*
*Here is what i get when i run the curl command,*

curl http://localhost:8983/solr/update/csv --data-binar

y @books.csv -H 'Content-type:text/plain; charset=utf-8'

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>

<title>Error 400 </title>

</head>

<body><h2>HTTP ERROR: 400</h2><pre>missing content stream</pre>

<p>RequestURI=/solr/update/csv</p><p><i><small><a href="
http://jetty.mortbay.org

/">Powered by Jetty://</a></small></i></p><br/>



<br/>

<br/>

<br/>

<br/>

<br/>

<br/>

<br/>

<br/>

<br/>

<br/>

<br/>

<br/>

<br/>

<br/>

<br/>

<br/>

<br/>

<br/>

<br/>



</body>

</html>


*Here is what i get on the console,*

May 12, 2008 9:57:20 AM org.apache.solr.core.SolrException log

SEVERE: org.apache.solr.core.SolrException: missing content stream

        at
org.apache.solr.handler.CSVRequestHandler.handleRequestBody(CSVReques

tHandler.java:50)

        at
org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandl

erBase.java:77)

        at
org.apache.solr.core.RequestHandlers$LazyRequestHandlerWrapper.handle

Request(RequestHandlers.java:243)

        at org.apache.solr.core.SolrCore.execute(SolrCore.java:658)

        at
org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter

.java:191)

        at
org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilte

r.java:159)

        at
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(Servlet

Handler.java:1089)

        at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:3

65)

        at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.jav

a:216)

        at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:1

81)

        at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:7

12)

        at
org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)



        at
org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHand

lerCollection.java:211)

        at
org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.

java:114)

        at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:1

39)

        at org.mortbay.jetty.Server.handle(Server.java:285)

        at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:50

2)

        at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnectio

n.java:835)

        at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:641)

        at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:208)

        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:378)

        at
org.mortbay.jetty.bio.SocketConnector$Connection.run(SocketConnector.

java:226)

        at
org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool

.java:442)



May 12, 2008 9:57:20 AM org.apache.solr.core.SolrCore execute

INFO: /update/csv
id,cat,name,price,inStock,author_t,series_t,sequence_i,genre_s



0553573403,book,A Game of Thrones,7.99,true,George R.R. Martin,"A Song of
Ice an

d Fire",1,fantasy

0553579908,book,A Clash of Kings,7.99,true,George R.R. Martin,"A Song of Ice
and

 Fire",2,fantasy

055357342X,book,A Storm of Swords,7.99,true,George R.R. Martin,"A Song of
Ice an

d Fire",3,fantasy

0553293354,book,Foundation,7.99,true,Isaac Asimov,Foundation Novels,1,scifi

0812521390,book,The Black Company,6.99,false,Glen Cook,The Chronicles of The
Bla

ck Company,1,fantasy

0812550706,book,Ender's Game,6.99,true,Orson Scott Card,Ender,1,scifi

0441385532,book,Jhereg,7.95,false,Steven Brust,Vlad Taltos,1,fantasy

0380014300,book,Nine Princes In Amber,6.99,true,Roger Zelazny,the Chronicles
of

Amber,1,fantasy

0805080481,book,The Book of Three,5.99,true,Lloyd Alexander,The Chronicles
of Pr

ydain,1,fantasy

080508049X,book,The Black Cauldron,5.99,true,Lloyd Alexander,The Chronicles
of P

rydain,2,fantasy

= 0 15

*Your reply will be highly appreciated.
*
Thanks,
Ricky.


On Sat, May 10, 2008 at 2:04 PM, Chris Hostetter <[EMAIL PROTECTED]>
wrote:

>
> 1) Posting the exact same question twice because you didn't get a reply in
> the first 8 hours isn't going to encourage people to reply faster. best
> case scenerio: you waste people's time they could be spending reading
> another email; worst case scnerio: you irk people and put them in a bad
> mood so they don't feel like being helpful.
>
> 2) In both instances of your question, the curl command you listed didn't
> include a space between the URL and the --data-binary option, perhaps
> that's your problem?
>
> 3) what *exactly* do you see in your shell when you run hte command?  you
> said the lines from books.csv get dumped to your console, but what appears
> above it? what appears below it? ... books.csv is only 10 lines, just
> paste it all from the line where you run the command to the next prompt
> you see.
>
> 4) FYI...
>
> : Changed the following in solrconfig.xml,
> : <requestParsers enableRemoteStreaming="true"
> multipartUploadLimitInKB="2048"
> : />
> : <requestHandler name="/update/csv" class="solr.CSVRequestHandler"
> : startup="lazy" />
>
> a) You don't need to enableRemoteStreaming if you plan on posting your CSV
> files, that's only neccessary if you want to be able to use the
> stream.file or stream.url options.
>
> b) the /update/csv handler should have already been in the example
> solrconfig.xml exactly as you list it there ... what do you mean you
> changed it?
>
>
> -Hoss
>
>

Reply via email to