Hi Jack, What other informations do you need on SO ? I added some info in comments, but i'm limited on size.
Could you comment on SO if you need something else ? *Frédéric Esnault* CTO / CO-FOUNDER *SERENZIA* 57 Rue Maurice Bokanowski 92600 Asnières-sur-Seine Tel : +33 6 49 45 53 38 Mail : fesna...@serenzia.com 2014-06-21 1:15 GMT+02:00 Jack Krupansky <j...@basetechnology.com>: > Oops! Sorry I missed it. Please post of the rest of the info on SO as well. > > We'll get to it! > > > -- Jack Krupansky > > -----Original Message----- From: Frederic Esnault > Sent: Friday, June 20, 2014 7:03 PM > > To: solr-user@lucene.apache.org > Subject: Re: Question about sending solrconfig and schema files with java > > Hi Jack, actually i posted on OS first, but got no anwser. > Check here : > https://stackoverflow.com/questions/24296014/datastax- > dse-search-how-to-post-solrconfig-xml-and-schema-xml-using-java > > I can't see any exception in cassandra/system.log at the moment of the > error. :( > > > *Frédéric Esnault* > CTO / CO-FOUNDER > > *SERENZIA* > 57 Rue Maurice Bokanowski > 92600 Asnières-sur-Seine > > Tel : +33 6 49 45 53 38 > Mail : fesna...@serenzia.com > > > > > 2014-06-21 0:35 GMT+02:00 Jack Krupansky <j...@basetechnology.com>: > > Please post this issue on StackOverflow and one of us DataStax guys will >> deal with it there, since nobody here would know much about the >> specialized >> way that DataStax uses for dynamic schema and config loading. >> >> Check your DSE server log for the 500 exception - but post it on SO since >> it is probably not Solr-related. >> >> Sorry for the inconvenience! >> >> -- Jack Krupansky >> >> -----Original Message----- From: Frederic Esnault >> Sent: Friday, June 20, 2014 11:50 AM >> To: solr-user@lucene.apache.org >> Subject: Re: Question about sending solrconfig and schema files with java >> >> >> Hi Shawn, >> >> Actually i should say that i'm using DSE Search (ie. Datastax Enterprise >> with SolR enabled). >> With cURL, i'm doing like this : >> >> $ curl http://localhost:8983/solr/resource/nhanes_ks.nhanes/ >> solrconfig.xml >> --data-binary @solrconfig.xml -H 'Content-type:text/xml; >> charset=utf-8' >> >> $ curl http://localhost:8983/solr/resource/nhanes_ks.nhanes/schema.xml >> --data-binary @schema.xml -H 'Content-type:text/xml; charset=utf-8' >> >> $ curl "http://localhost:8983/solr/admin/cores?action=CREATE& >> name=nhanes_ks.nhanes" >> >> >> Except i'm doing this not on localhost but a remote server, and with >> files generated in my java program (which are correct once generated, >> i checked). >> >> Using HttpComponents to send them does not work, it adds weird things >> before the file (read from the cassandra blob after insert). >> >> Using SolrJ to create the core does not work (cannot upload files, so >> it's complaining about missing files). >> >> Using a ContentStream request fails with an internal server error (no >> details) >> >> HttpSolrServer server = new HttpSolrServer(solrUrl); >> >> ContentStreamUpdateRequest req = new >> ContentStreamUpdateRequest("/resources/"+solrKeyspace + "." + >> datasetName + "/"); >> >> req.addContentStream(new ContentStreamBase.FileStream(new >> File("./target/classes/solrconfig.xml"))); >> >> server.request(req); >> >> server.commit(); >> >> *returned non ok status:500, message:Internal Server Error* >> >> >> >> *Frédéric Esnault* >> CTO / CO-FOUNDER >> >> *SERENZIA* >> >> 57 Rue Maurice Bokanowski >> 92600 Asnières-sur-Seine >> >> Tel : +33 6 49 45 53 38 >> Mail : fesna...@serenzia.com >> >> >> >> >> 2014-06-20 17:34 GMT+02:00 Shawn Heisey <s...@elyograg.org>: >> >> On 6/20/2014 8:46 AM, Frederic Esnault wrote: >> >>> > First thank you for taking the time to answer me. >>> > >>> > Actually i tried looking for a way to use SolrJ to upload my files, but >>> > i >>> > cannot find anywhere informations about how to create nodes with their >>> > config files using SolrJ. >>> > All websites, blogs and docs i found seem to be based on the principle >>> that >>> > the core already exist or that the config files are already there. >>> >>> You said that you know how to send the files with curl. How are you >>> doing this? If you can do it with curl, chances are good that you can >>> duplicate the request with HttpSolrServer in some java code. >>> >>> Thanks, >>> Shawn >>> >>> >>> >>> >> >