Created on 06-17-2017 01:34 PM - edited 09-16-2022 04:46 AM
Hi Team,
I've downloaded CDH quickstart vm and started to play with HUE - single node.
When I tried to create a Solr collection by running
solrctl --zk quickstart.cloudera:2181/solr collection --create hue_solr -s 1
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 this
curl: try 'curl --help' or 'curl --manual' for more information
Error: A call to SolrCloud WEB APIs failed:"
found this kb article https://www.cloudera.com/documentation/enterprise/5-7-x/topics/search_solrctl_examples.html talking about disabling proxy so I run it and the command became NO_PROXY='*' solrctl --zk quickstart.cloudera:2181/solr --solr quickstart.cloudera:8983/solr collection --create hue_solr -s 1 but still getting same error as above.
I came from Windows background so my Linux knowledge is a bit limited.
I tried to restart Solr service but this didn't help.
Any help would be appreciated.
Thanks in advance
Created 06-20-2017 07:30 AM
Created 11-05-2018 01:15 PM
Did not work.
[centos@ip-172-31-81-167 ~]$ curl -i --retry 5 -s -L -k --negotiate -u : http://ip-172-31-82-140.ec2.internal:8983/solr
curl: option --negotiate: the installed libcurl version doesn't support this
curl: try 'curl --help' or 'curl --manual' for more information
Created 11-05-2018 04:16 PM
Created 11-06-2018 07:01 AM
I am not using Kerberos on this cluster, it is a CDH 5.15 install.
Created 11-08-2018 01:08 PM
Created 11-15-2018 09:56 AM
@AKB,
solrctl will use the --negotiate option regardless of whether the cluster enabled. It will only be useful if kerberos is enabled in the cluster, though.
The problem is that your OS's version of curl does not support the "--negotiate" option which means, as Patrick said, that you have a non-standard version of curl or curl libraries installed on that host.
You can find out from where the files originate something like this:
# which curl
# rpm -qf `which curl`
# curl -V
Basically, you need to install a version of curl that leverages --negotiate on the host where you are running solrctl.
Created 01-21-2019 10:29 PM
Problem is due to python version you have in your node.
incompatibility between the Python 3 version and the Python 2 version. The default Solr commands use the python2 version, so here we need to remove the Python global environment variables, not the python3 global environment variables.
Thanks & Regards,
J.Ganesh Kumar.