but i got an error that i want to use --solr as the cluster can't detect the solr automatically, I've googled this error and found people talking abut specifying the solr url as well as the zookeeper url, when I run the command as solrctl --zk quickstart.cloudera:2181/solr --solr quickstart.cloudera:8983/solr collection --create hue_solr -s 1 and this time I got another error "curl: option --negotiate: the installed libcurl version doesn't support thiscurl: try 'curl --help' or 'curl --manual' for more informationError: A call to SolrCloud WEB APIs failed:"

Re: unable to create Solr collection / index

CDH always stores Solr configuration in /etc/solr/conf on nodes that are defined as Solr gateways (the Quickstart VM can be considered a Solr gateway node). With that client configuration available you should not need to specify the --zk or --solr parameters.

I just did a quick test on the Quickstart VM and here's how I created my collection (collection1):

$ solrctl collection --create collection1 -c predefinedTemplate

Note that I'm taking advantage of the "predefinedTemplate instancedir that is already loaded to ZK. If you want to use your own instancedir you can create one locally and then upload to ZK:

Re: unable to create Solr collection / index

Sorry, didn't realize you were managing using Cloudera Manager (CM). Inthat case you should be using CM to start and stop the Solr services. Iwould try to get thing reset by stopping Solr via CM, make sure it'sstopped on the system, and then start it with CM. If it doesn't stop viaCM control then you may have to manually stop it this time. I am notfamiliar with how the manual init scripts interact w/ the CM methods forservice control so you may be in an odd state.

* Stop Solr from CM* Check from the command line "ps -ef | grep solr"* If needed, stop Solr from the command line "service solr-server stop"* Check from the command line "ps -ef | grep solr"* Start Solr from CM* Check from the command line "ps -ef | grep solr"

One you're satisfied that Solr is actually up and running test yourcollection creation step. If it fails, check to see that Solr is stillrunning. I think you're just having some sort of stability problem withSolr. You may need to increase the heap for Solr a little.

Re: unable to create Solr collection / index

I tried to restart the service from CM and it's restarted successfully and I can see the status is green from the dashboard, then tried to create the collection and it failed again, then did the same using the command line and unfortunately got the same results.

Then I've increased the heap size from CM > Solr > Configuration and then Java Heap Size of Solr Server in Bytes, it was set to 256, I set it to 500MB.

I've also increased the Java Direct Memory Size of Solr Server in Bytes from 256 to 500MB.

then I restarted the Solr service and tried again and still getting the same failure message, checking the service staus agin and still reporting failed from the command like while it's green from CM.