Hi,

I am relatively new to Solr and have usage query. I have a 20 GB JSON file
which I want to upload into my solr. Do I have to form smaller chunks or is
there a way to upload the whole thing in one go?

I am getting the following error with bin/post:

Entering auto mode. File endings considered are
xml,json,csv,pdf,doc,docx,ppt,pptx,xls,xlsx,odt,odp,ods,ott,otp,ots,rtf,htm,html,txt,log
POSTing file 20150401.json (application/json) to [base]

stderr: Exception in thread "main" java.lang.IllegalArgumentException:
invalid content length
        at
java.net.HttpURLConnection.setFixedLengthStreamingMode(HttpURLConnection.java:149)
        at
org.apache.solr.util.SimplePostTool.postData(SimplePostTool.java:887)
        at
org.apache.solr.util.SimplePostTool.postFile(SimplePostTool.java:794)
        at
org.apache.solr.util.SimplePostTool.postFiles(SimplePostTool.java:515)
        at
org.apache.solr.util.SimplePostTool.postFiles(SimplePostTool.java:435)
        at
org.apache.solr.util.SimplePostTool.doFilesMode(SimplePostTool.java:311)
        at
org.apache.solr.util.SimplePostTool.execute(SimplePostTool.java:177)
        at org.apache.solr.util.SimplePostTool.main(SimplePostTool.java:166)

Thank you for your help!

Regards,

Sid.

Reply via email to