On 7/3/2018 6:49 AM, Zahra Aminolroaya wrote: > I want to transfer my jar files to my ".system" collection in "Solrcloud". > One of my solr port is 1111 > > My jar file name is "norm", and the following is my command for this > transfer: > / > curl -X POST -H 'Content-Type:application/octet-stream' --data-binary > @norm.jar http://localhost:1111/solr/.system/blob/norm/ > > *However, I get the following error:*
Comparing your command with what's in the documentation, I see two differences. Try adding a space to the header, so you have this option: -H 'Content-Type: application/octet-stream' Without the space, Solr may not be interpreting the input as the correct type. Also, you probably should remove the trailing slash from the URL: http://localhost:1111/solr/.system/blob/norm The error you get with the Lucene jar happens because the file is larger than 2MB, which is Solr's default limit on the size of a POST request entity. I think the error with the slf4j jar may be essentially the same as the error with your custom jar -- the Content-Type header might be badly formed, so when it tries to interpret the data according to whatever type it defaults to, it fails. The contents of the slf4j jar are different than the contents of your custom jar, so it has a slightly different complaint. If fixing the header and the URL don't help, then please share any errors found in solr.log after that change is made. There may be better information there than you receive in the response. Thanks, Shawn