<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: unable to create Solr collection / index in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/56204#M19622</link>
    <description>&lt;P&gt;Hi &amp;nbsp;Nick,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Then I've increased the heap size from CM &amp;gt; Solr &amp;gt; Configuration and then Java Heap Size of Solr Server in Bytes, it was set to 256, I set it to 500MB.&lt;/P&gt;&lt;P&gt;I've also increased the Java Direct Memory Size of Solr Server in Bytes from 256 to 500MB.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Below is the output from running the commands&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[cloudera@quickstart ~]$ sudo service solr-server start
Starting Solr server daemon:                               [  OK  ]
Using CATALINA_BASE:   /var/lib/solr/tomcat-deployment
Using CATALINA_HOME:   /usr/lib/solr/../bigtop-tomcat
Using CATALINA_TMPDIR: /var/lib/solr/
Using JRE_HOME:        /usr/java/jdk1.7.0_67-cloudera
Using CLASSPATH:       /usr/lib/solr/../bigtop-tomcat/bin/bootstrap.jar
Using CATALINA_PID:    /var/run/solr/solr.pid
[cloudera@quickstart ~]$ sudo service solr-server status
Solr server daemon is dead and pid file exists             [FAILED]
[cloudera@quickstart ~]$ ps -ef | grep solr
solr      6118  5308  2 13:31 ?        00:00:10 /usr/java/jdk1.7.0_67-cloudera/bin/java -Djava.util.logging.config.file=/var/lib/solr/tomcat-deployment/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.net.preferIPv4Stack=true -Dsolr.hdfs.blockcache.enabled=true -Dsolr.hdfs.blockcache.direct.memory.allocation=true -Dsolr.hdfs.blockcache.blocksperbank=16384 -Dsolr.hdfs.blockcache.slab.count=1 -DzkClientTimeout=15000 -Xms524288000 -Xmx524288000 -XX:MaxDirectMemorySize=524288000 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=70 -XX:+CMSParallelRemarkEnabled -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/solr_solr-SOLR_SERVER_pid6118.hprof -XX:OnOutOfMemoryError=/usr/lib64/cmf/service/common/killparent.sh -DzkHost=quickstart.cloudera:2181/solr -Dsolr.solrxml.location=zookeeper -Dsolr.hdfs.home=hdfs://quickstart.cloudera:8020/solr -Dsolr.hdfs.confdir=/var/run/cloudera-scm-agent/process/101-solr-SOLR_SERVER/hadoop-conf -Dsolr.authentication.simple.anonymous.allowed=true -Dsolr.security.proxyuser.hue.hosts=* -Dsolr.security.proxyuser.hue.groups=* -Dhost=quickstart.cloudera -Djetty.port=8983 -Dsolr.host=quickstart.cloudera -Dsolr.port=8983 -DuseCachedStatsBetweenGetMBeanInfoCalls=true -DdisableSolrFieldCacheMBeanEntryListJmx=true -Dlog4j.configuration=file:///var/run/cloudera-scm-agent/process/101-solr-SOLR_SERVER/log4j.properties -Dsolr.log=/var/log/solr -Dsolr.admin.port=8984 -Dsolr.tomcat.backlog=4096 -Dsolr.tomcat.connectionTimeout=180000 -Dsolr.tomcat.keepAliveTimeout=600000 -Dsolr.tomcat.maxKeepAliveRequests=-1 -Dsolr.max.connector.thread=10000 -Dsolr.tomcat.connectionLinger=300 -Dsolr.tomcat.bufferSize=131072 -Dsolr.solr.home=/var/lib/solr -Djava.endorsed.dirs=/usr/lib/bigtop-tomcat/endorsed -classpath /usr/lib/bigtop-tomcat/bin/bootstrap.jar -Dcatalina.base=/var/lib/solr/tomcat-deployment -Dcatalina.home=/usr/lib/bigtop-tomcat -Djava.io.tmpdir=/var/lib/solr/ org.apache.catalina.startup.Bootstrap start
solr      6125  6118  0 13:31 ?        00:00:00 python2.6 /usr/lib64/cmf/agent/build/env/bin/cmf-redactor /usr/lib64/cmf/service/solr/solr.sh
solr      6302     1  0 13:31 ?        00:00:00 bash /usr/lib/bigtop-utils/bigtop-monitor-service 70 6118
hbase     6572  5308  1 13:32 ?        00:00:05 /usr/java/jdk1.7.0_67-cloudera/bin/java -Dproc_server -XX:OnOutOfMemoryError=kill -9 %p -Xmx1000m -Djava.net.preferIPv4Stack=true -Xms52428800 -Xmx52428800 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=70 -XX:+CMSParallelRemarkEnabled -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/ks_indexer_ks_indexer-HBASE_INDEXER_pid6572.hprof -XX:OnOutOfMemoryError=/usr/lib64/cmf/service/common/killparent.sh -Dhbaseindexer.log.dir=/usr/lib/hbase-solr/bin/../logs -Dhbaseindexer.log.file=hbase-indexer.log -Dhbaseindexer.home.dir=/usr/lib/hbase-solr/bin/.. -Dhbaseindexer.id.str= -Dhbaseindexer.root.logger=INFO,console -Djava.library.path=/usr/lib/hadoop/lib/native com.ngdata.hbaseindexer.Main
solr     11366  6302  0 13:39 ?        00:00:00 sleep 70
cloudera 11630 31453  0 13:40 pts/0    00:00:00 grep solr
spark    20887  5308  0 13:05 ?        00:00:11 /usr/java/jdk1.7.0_67-cloudera/bin/java -cp /var/run/cloudera-scm-agent/process/92-spark_on_yarn-SPARK_YARN_HISTORY_SERVER/spark-conf/:/usr/lib/spark/lib/spark-assembly-1.6.0-cdh5.10.0-hadoop2.6.0-cdh5.10.0.jar:/var/run/cloudera-scm-agent/process/92-spark_on_yarn-SPARK_YARN_HISTORY_SERVER/yarn-conf/:/etc/hive/conf/:/usr/lib/avro/avro-1.7.6-cdh5.10.0.jar:/usr/lib/avro/avro-compiler-1.7.6-cdh5.10.0.jar:/usr/lib/avro/avro-ipc-1.7.6-cdh5.10.0.jar:/usr/lib/avro/avro-ipc-1.7.6-cdh5.10.0-tests.jar:/usr/lib/avro/avro-mapred-1.7.6-cdh5.10.0-hadoop2.jar:/usr/lib/avro/avro-maven-plugin-1.7.6-cdh5.10.0.jar:/usr/lib/avro/avro-protobuf-1.7.6-cdh5.10.0.jar:/usr/lib/avro/avro-service-archetype-1.7.6-cdh5.10.0.jar:/usr/lib/avro/avro-thrift-1.7.6-cdh5.10.0.jar:/usr/lib/avro/trevni-avro-1.7.6-cdh5.10.0-hadoop2.jar:/usr/lib/avro/trevni-avro-1.7.6-cdh5.10.0.jar:/usr/lib/avro/trevni-core-1.7.6-cdh5.10.0.jar:/usr/lib/flume-ng/lib/apache-log4j-extras-1.1.jar:/usr/lib/flume-ng/lib/async-1.4.0.jar:/usr/lib/flume-ng/lib/asynchbase-1.7.0.jar:/usr/lib/flume-ng/lib/commons-codec-1.8.jar:/usr/lib/flume-ng/lib/commons-jexl-2.1.1.jar:/usr/lib/flume-ng/lib/fastutil-6.3.jar:/usr/lib/flume-ng/lib/flume-avro-source-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-dataset-sink-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-file-channel-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-hdfs-sink-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-hive-sink-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-irc-sink-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-jdbc-channel-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-jms-source-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-kafka-channel-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-kafka-source-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-auth-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-configuration-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-core-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-elasticsearch-sink-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-embedded-agent-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-hbase-sink-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-kafka-sink-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-log4jappender-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-morphline-solr-sink-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-node-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-sdk-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-scribe-source-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-spillable-memory-channel-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-taildir-source-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-thrift-source-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-tools-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-twitter-source-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/irclib-1.10.jar:/usr/lib/flume-ng/lib/joda-time-2.1.jar:/usr/lib/flume-ng/lib/jopt-simple-4.9.jar:/usr/lib/flume-ng/lib/jsr305-1.3.9.jar:/usr/lib/flume-ng/lib/kafka_2.10-0.9.0-kafka-2.0.2.jar:/usr/lib/flume-ng/lib/kafka-clients-0.9.0-kafka-2.0.2.jar:/usr/lib/flume-ng/lib/lz4-1.3.0.jar:/usr/lib/flume-ng/lib/mapdb-0.9.9.jar:/usr/lib/flume-ng/lib/metrics-core-2.2.0.jar:/usr/lib/flume-ng/lib/mina-core-2.0.4.jar:/usr/lib/flume-ng/lib/netty-3.9.4.Final.jar:/usr/lib/flume-ng/lib/scala-library-2.10.5.jar:/usr/lib/flume-ng/lib/serializer-2.7.2.jar:/usr/lib/flume-ng/lib/servlet-api-2.5-20110124.jar:/usr/lib/flume-ng/lib/spark-streaming-flume-sink_2.10-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/twitter4j-core-3.0.3.jar:/usr/lib/flume-ng/lib/twitter4j-media-support-3.0.3.jar:/usr/lib/flume-ng/lib/twitter4j-stream-3.0.3.jar:/usr/lib/flume-ng/lib/unused-1.0.0.jar:/usr/lib/flume-ng/lib/velocity-1.7.jar:/usr/lib/flume-ng/lib/xalan-2.7.2.jar:/usr/lib/flume-ng/lib/zkclient-0.7.jar:/usr/lib/hadoop/hadoop-annotations-2.6.0-cdh5.10.0.jar:/usr/lib/hadoop/hadoop-auth-2.6.0-cdh5.10.0.jar:/usr/lib/hadoop/hadoop-aws-2.6.0-cdh5.10.0.jar:/usr/lib/hadoop/hadoop-common-2.6.0-cdh5.10.0.jar:/usr/lib/hadoop/hadoop-common-2.6.0-cdh5.10.0-tests.jar:/usr/lib/hadoop/hadoop-n
[cloudera@quickstart ~]$ sudo service solr-server status
Solr server daemon is dead and pid file exists             [FAILED]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I've noticed there are some HBase outofmemory errors, not sure if this is related to Solr or it's different eror, are you please able to shed some light.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your continous support.&lt;/P&gt;&lt;P&gt;Osama&lt;/P&gt;</description>
    <pubDate>Tue, 20 Jun 2017 22:00:40 GMT</pubDate>
    <dc:creator>osamabg</dc:creator>
    <dc:date>2017-06-20T22:00:40Z</dc:date>
    <item>
      <title>unable to create Solr collection / index</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/56075#M19616</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I've downloaded CDH quickstart vm and started to play with HUE - single node.&lt;/P&gt;&lt;P&gt;When I tried to create a Solr collection by running&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;solrctl --zk quickstart.cloudera:2181/solr collection --create hue_solr -s 1 &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;but i got an error that i want to use &lt;STRONG&gt;--solr&lt;/STRONG&gt; 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 &lt;STRONG&gt;solrctl --zk quickstart.cloudera:2181/solr --solr quickstart.cloudera:8983/solr collection --create hue_solr -s 1&lt;/STRONG&gt;&amp;nbsp;and this time I got another error &lt;STRONG&gt;"curl: option --negotiate: the installed libcurl version doesn't support this&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;curl: try 'curl --help' or 'curl --manual' for more information&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: A call to SolrCloud WEB APIs failed:"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;found this kb article &lt;A href="https://www.cloudera.com/documentation/enterprise/5-7-x/topics/search_solrctl_examples.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/5-7-x/topics/search_solrctl_examples.html&lt;/A&gt;&amp;nbsp;talking about disabling proxy so I run it and the command became &lt;STRONG&gt;NO_PROXY='*' solrctl --zk quickstart.cloudera:2181/solr --solr quickstart.cloudera:8983/solr collection --create hue_solr -s 1&lt;/STRONG&gt; but still getting same error as above.&lt;/P&gt;&lt;P&gt;I came from Windows background so my Linux knowledge is a bit&amp;nbsp;limited.&lt;/P&gt;&lt;P&gt;I &amp;nbsp;tried to restart Solr service but this didn't help.&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:46:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/56075#M19616</guid>
      <dc:creator>osamabg</dc:creator>
      <dc:date>2022-09-16T11:46:58Z</dc:date>
    </item>
    <item>
      <title>Re: unable to create Solr collection / index</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/56135#M19617</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;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). &amp;nbsp;With that client configuration available you should&amp;nbsp;not need to specify the --zk or --solr parameters.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just did a quick test on the Quickstart VM and here's how I created my collection (collection1):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; $ solrctl collection --create collection1 -c predefinedTemplate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Note that I'm taking advantage of the "predefinedTemplate instancedir that is already loaded to ZK. &amp;nbsp;If you want to use your own instancedir you can create one locally and then upload to ZK:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; $ solrctl instancedir --generate &amp;lt;collection&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; # Edit the &amp;lt;collection&amp;gt;/conf/... files as needed&lt;/P&gt;&lt;P&gt;&amp;nbsp; $ solrctl instancdir --create &amp;lt;collection&amp;gt; &amp;lt;path_to_local_instancedir&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp; $ solrctl instancedir --generate collection1&lt;/P&gt;&lt;P&gt;&amp;nbsp; $ solrctl instancedir --create collection1 collection1&lt;/P&gt;&lt;P&gt;&amp;nbsp; $ solrctl instancedir --list&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 16:35:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/56135#M19617</guid>
      <dc:creator>nwhite</dc:creator>
      <dc:date>2017-06-19T16:35:13Z</dc:date>
    </item>
    <item>
      <title>Re: unable to create Solr collection / index</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/56145#M19618</link>
      <description>&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I run the command&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;solrctl collection --create collection1 -c predefinedTemplate&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;but got the below error&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Error: can't discover Solr URI. Please specify it explicitly via --solr.&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I've checked the Solr service and it's running.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Is there anything else I need to check before running the command.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Osama&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 20:05:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/56145#M19618</guid>
      <dc:creator>osamabg</dc:creator>
      <dc:date>2017-06-19T20:05:49Z</dc:date>
    </item>
    <item>
      <title>Re: unable to create Solr collection / index</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/56146#M19619</link>
      <description>&lt;P&gt;Hi Osama,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems like your Solr service may not be running. &amp;nbsp;What is the output of:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; $ sudo service solr-server status&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it is not running, start it with:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; $ sudo service solr-server start&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If started, ensure that it stays running.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also, can you verify&amp;nbsp;the files in /etc/solr/conf:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; $ ls -l /etc/solr/conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 22:54:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/56146#M19619</guid>
      <dc:creator>nwhite</dc:creator>
      <dc:date>2017-06-19T22:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: unable to create Solr collection / index</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/56149#M19620</link>
      <description>&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I run the command to check the service status and it was found Failed, however from the Cloudera manager dashboard I see it's gree and no failure events are recorded.&lt;/P&gt;&lt;P&gt;I run the command to start the service and got the below outcome:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[cloudera@quickstart ~]$ sudo service solr-server start
Starting Solr server daemon:                               [  OK  ]
Using CATALINA_BASE:   /var/lib/solr/tomcat-deployment
Using CATALINA_HOME:   /usr/lib/solr/../bigtop-tomcat
Using CATALINA_TMPDIR: /var/lib/solr/
Using JRE_HOME:        /usr/java/jdk1.7.0_67-cloudera
Using CLASSPATH:       /usr/lib/solr/../bigtop-tomcat/bin/bootstrap.jar
Using CATALINA_PID:    /var/run/solr/solr.pid
Existing PID file found during start.
Removing/clearing stale PID file.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;then run the check command again and got the below outcome&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[cloudera@quickstart ~]$ sudo service solr-server status
Solr server daemon is dead and pid file exists             [FAILED]&lt;/PRE&gt;&lt;P&gt;then I run the&amp;nbsp;&lt;SPAN&gt;&amp;nbsp; $ ls -l /etc/solr/conf and below is the outcome&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;cloudera@quickstart ~]$ ls -l /etc/solr/conf
lrwxrwxrwx 1 root root 27 Jun 19 16:10 /etc/solr/conf -&amp;gt; /etc/alternatives/solr-conf&lt;/PRE&gt;&lt;P&gt;and below the same command without -l&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[cloudera@quickstart ~]$ ls /etc/solr/conf
__cloudera_generation__  __cloudera_metadata__  log4j.properties  solr-env.sh&lt;/PRE&gt;&lt;P&gt;From the Cloudera Manager dashboar I can see the service status is green, I refreshed the page several times and still green and I can browse to Solr web site via&amp;nbsp;&lt;A href="http://quickstart.cloudera:8983/solr/" target="_blank"&gt;http://quickstart.cloudera:8983/solr/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've a single VM, 2 core and 8GB ram.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any recommendations please.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Osama&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jun 2017 23:58:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/56149#M19620</guid>
      <dc:creator>osamabg</dc:creator>
      <dc:date>2017-06-19T23:58:19Z</dc:date>
    </item>
    <item>
      <title>Re: unable to create Solr collection / index</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/56168#M19621</link>
      <description>Hi Osama,&lt;BR /&gt;&lt;BR /&gt;Sorry, didn't realize you were managing using Cloudera Manager (CM). In&lt;BR /&gt;that case you should be using CM to start and stop the Solr services. I&lt;BR /&gt;would try to get thing reset by stopping Solr via CM, make sure it's&lt;BR /&gt;stopped on the system, and then start it with CM. If it doesn't stop via&lt;BR /&gt;CM control then you may have to manually stop it this time. I am not&lt;BR /&gt;familiar with how the manual init scripts interact w/ the CM methods for&lt;BR /&gt;service control so you may be in an odd state.&lt;BR /&gt;&lt;BR /&gt;* Stop Solr from CM&lt;BR /&gt;* Check from the command line "ps -ef | grep solr"&lt;BR /&gt;* If needed, stop Solr from the command line "service solr-server stop"&lt;BR /&gt;* Check from the command line "ps -ef | grep solr"&lt;BR /&gt;* Start Solr from CM&lt;BR /&gt;* Check from the command line "ps -ef | grep solr"&lt;BR /&gt;&lt;BR /&gt;One you're satisfied that Solr is actually up and running test your&lt;BR /&gt;collection creation step. If it fails, check to see that Solr is still&lt;BR /&gt;running. I think you're just having some sort of stability problem with&lt;BR /&gt;Solr. You may need to increase the heap for Solr a little.&lt;BR /&gt;&lt;BR /&gt;Nick&lt;BR /&gt;</description>
      <pubDate>Tue, 20 Jun 2017 14:30:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/56168#M19621</guid>
      <dc:creator>nwhite</dc:creator>
      <dc:date>2017-06-20T14:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: unable to create Solr collection / index</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/56204#M19622</link>
      <description>&lt;P&gt;Hi &amp;nbsp;Nick,&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Then I've increased the heap size from CM &amp;gt; Solr &amp;gt; Configuration and then Java Heap Size of Solr Server in Bytes, it was set to 256, I set it to 500MB.&lt;/P&gt;&lt;P&gt;I've also increased the Java Direct Memory Size of Solr Server in Bytes from 256 to 500MB.&lt;/P&gt;&lt;P&gt;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.&lt;/P&gt;&lt;P&gt;Below is the output from running the commands&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[cloudera@quickstart ~]$ sudo service solr-server start
Starting Solr server daemon:                               [  OK  ]
Using CATALINA_BASE:   /var/lib/solr/tomcat-deployment
Using CATALINA_HOME:   /usr/lib/solr/../bigtop-tomcat
Using CATALINA_TMPDIR: /var/lib/solr/
Using JRE_HOME:        /usr/java/jdk1.7.0_67-cloudera
Using CLASSPATH:       /usr/lib/solr/../bigtop-tomcat/bin/bootstrap.jar
Using CATALINA_PID:    /var/run/solr/solr.pid
[cloudera@quickstart ~]$ sudo service solr-server status
Solr server daemon is dead and pid file exists             [FAILED]
[cloudera@quickstart ~]$ ps -ef | grep solr
solr      6118  5308  2 13:31 ?        00:00:10 /usr/java/jdk1.7.0_67-cloudera/bin/java -Djava.util.logging.config.file=/var/lib/solr/tomcat-deployment/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.net.preferIPv4Stack=true -Dsolr.hdfs.blockcache.enabled=true -Dsolr.hdfs.blockcache.direct.memory.allocation=true -Dsolr.hdfs.blockcache.blocksperbank=16384 -Dsolr.hdfs.blockcache.slab.count=1 -DzkClientTimeout=15000 -Xms524288000 -Xmx524288000 -XX:MaxDirectMemorySize=524288000 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=70 -XX:+CMSParallelRemarkEnabled -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/solr_solr-SOLR_SERVER_pid6118.hprof -XX:OnOutOfMemoryError=/usr/lib64/cmf/service/common/killparent.sh -DzkHost=quickstart.cloudera:2181/solr -Dsolr.solrxml.location=zookeeper -Dsolr.hdfs.home=hdfs://quickstart.cloudera:8020/solr -Dsolr.hdfs.confdir=/var/run/cloudera-scm-agent/process/101-solr-SOLR_SERVER/hadoop-conf -Dsolr.authentication.simple.anonymous.allowed=true -Dsolr.security.proxyuser.hue.hosts=* -Dsolr.security.proxyuser.hue.groups=* -Dhost=quickstart.cloudera -Djetty.port=8983 -Dsolr.host=quickstart.cloudera -Dsolr.port=8983 -DuseCachedStatsBetweenGetMBeanInfoCalls=true -DdisableSolrFieldCacheMBeanEntryListJmx=true -Dlog4j.configuration=file:///var/run/cloudera-scm-agent/process/101-solr-SOLR_SERVER/log4j.properties -Dsolr.log=/var/log/solr -Dsolr.admin.port=8984 -Dsolr.tomcat.backlog=4096 -Dsolr.tomcat.connectionTimeout=180000 -Dsolr.tomcat.keepAliveTimeout=600000 -Dsolr.tomcat.maxKeepAliveRequests=-1 -Dsolr.max.connector.thread=10000 -Dsolr.tomcat.connectionLinger=300 -Dsolr.tomcat.bufferSize=131072 -Dsolr.solr.home=/var/lib/solr -Djava.endorsed.dirs=/usr/lib/bigtop-tomcat/endorsed -classpath /usr/lib/bigtop-tomcat/bin/bootstrap.jar -Dcatalina.base=/var/lib/solr/tomcat-deployment -Dcatalina.home=/usr/lib/bigtop-tomcat -Djava.io.tmpdir=/var/lib/solr/ org.apache.catalina.startup.Bootstrap start
solr      6125  6118  0 13:31 ?        00:00:00 python2.6 /usr/lib64/cmf/agent/build/env/bin/cmf-redactor /usr/lib64/cmf/service/solr/solr.sh
solr      6302     1  0 13:31 ?        00:00:00 bash /usr/lib/bigtop-utils/bigtop-monitor-service 70 6118
hbase     6572  5308  1 13:32 ?        00:00:05 /usr/java/jdk1.7.0_67-cloudera/bin/java -Dproc_server -XX:OnOutOfMemoryError=kill -9 %p -Xmx1000m -Djava.net.preferIPv4Stack=true -Xms52428800 -Xmx52428800 -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=70 -XX:+CMSParallelRemarkEnabled -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/tmp/ks_indexer_ks_indexer-HBASE_INDEXER_pid6572.hprof -XX:OnOutOfMemoryError=/usr/lib64/cmf/service/common/killparent.sh -Dhbaseindexer.log.dir=/usr/lib/hbase-solr/bin/../logs -Dhbaseindexer.log.file=hbase-indexer.log -Dhbaseindexer.home.dir=/usr/lib/hbase-solr/bin/.. -Dhbaseindexer.id.str= -Dhbaseindexer.root.logger=INFO,console -Djava.library.path=/usr/lib/hadoop/lib/native com.ngdata.hbaseindexer.Main
solr     11366  6302  0 13:39 ?        00:00:00 sleep 70
cloudera 11630 31453  0 13:40 pts/0    00:00:00 grep solr
spark    20887  5308  0 13:05 ?        00:00:11 /usr/java/jdk1.7.0_67-cloudera/bin/java -cp /var/run/cloudera-scm-agent/process/92-spark_on_yarn-SPARK_YARN_HISTORY_SERVER/spark-conf/:/usr/lib/spark/lib/spark-assembly-1.6.0-cdh5.10.0-hadoop2.6.0-cdh5.10.0.jar:/var/run/cloudera-scm-agent/process/92-spark_on_yarn-SPARK_YARN_HISTORY_SERVER/yarn-conf/:/etc/hive/conf/:/usr/lib/avro/avro-1.7.6-cdh5.10.0.jar:/usr/lib/avro/avro-compiler-1.7.6-cdh5.10.0.jar:/usr/lib/avro/avro-ipc-1.7.6-cdh5.10.0.jar:/usr/lib/avro/avro-ipc-1.7.6-cdh5.10.0-tests.jar:/usr/lib/avro/avro-mapred-1.7.6-cdh5.10.0-hadoop2.jar:/usr/lib/avro/avro-maven-plugin-1.7.6-cdh5.10.0.jar:/usr/lib/avro/avro-protobuf-1.7.6-cdh5.10.0.jar:/usr/lib/avro/avro-service-archetype-1.7.6-cdh5.10.0.jar:/usr/lib/avro/avro-thrift-1.7.6-cdh5.10.0.jar:/usr/lib/avro/trevni-avro-1.7.6-cdh5.10.0-hadoop2.jar:/usr/lib/avro/trevni-avro-1.7.6-cdh5.10.0.jar:/usr/lib/avro/trevni-core-1.7.6-cdh5.10.0.jar:/usr/lib/flume-ng/lib/apache-log4j-extras-1.1.jar:/usr/lib/flume-ng/lib/async-1.4.0.jar:/usr/lib/flume-ng/lib/asynchbase-1.7.0.jar:/usr/lib/flume-ng/lib/commons-codec-1.8.jar:/usr/lib/flume-ng/lib/commons-jexl-2.1.1.jar:/usr/lib/flume-ng/lib/fastutil-6.3.jar:/usr/lib/flume-ng/lib/flume-avro-source-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-dataset-sink-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-file-channel-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-hdfs-sink-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-hive-sink-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-irc-sink-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-jdbc-channel-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-jms-source-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-kafka-channel-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-kafka-source-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-auth-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-configuration-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-core-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-elasticsearch-sink-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-embedded-agent-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-hbase-sink-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-kafka-sink-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-log4jappender-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-morphline-solr-sink-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-node-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-ng-sdk-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-scribe-source-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-spillable-memory-channel-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-taildir-source-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-thrift-source-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-tools-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/flume-twitter-source-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/irclib-1.10.jar:/usr/lib/flume-ng/lib/joda-time-2.1.jar:/usr/lib/flume-ng/lib/jopt-simple-4.9.jar:/usr/lib/flume-ng/lib/jsr305-1.3.9.jar:/usr/lib/flume-ng/lib/kafka_2.10-0.9.0-kafka-2.0.2.jar:/usr/lib/flume-ng/lib/kafka-clients-0.9.0-kafka-2.0.2.jar:/usr/lib/flume-ng/lib/lz4-1.3.0.jar:/usr/lib/flume-ng/lib/mapdb-0.9.9.jar:/usr/lib/flume-ng/lib/metrics-core-2.2.0.jar:/usr/lib/flume-ng/lib/mina-core-2.0.4.jar:/usr/lib/flume-ng/lib/netty-3.9.4.Final.jar:/usr/lib/flume-ng/lib/scala-library-2.10.5.jar:/usr/lib/flume-ng/lib/serializer-2.7.2.jar:/usr/lib/flume-ng/lib/servlet-api-2.5-20110124.jar:/usr/lib/flume-ng/lib/spark-streaming-flume-sink_2.10-1.6.0-cdh5.10.0.jar:/usr/lib/flume-ng/lib/twitter4j-core-3.0.3.jar:/usr/lib/flume-ng/lib/twitter4j-media-support-3.0.3.jar:/usr/lib/flume-ng/lib/twitter4j-stream-3.0.3.jar:/usr/lib/flume-ng/lib/unused-1.0.0.jar:/usr/lib/flume-ng/lib/velocity-1.7.jar:/usr/lib/flume-ng/lib/xalan-2.7.2.jar:/usr/lib/flume-ng/lib/zkclient-0.7.jar:/usr/lib/hadoop/hadoop-annotations-2.6.0-cdh5.10.0.jar:/usr/lib/hadoop/hadoop-auth-2.6.0-cdh5.10.0.jar:/usr/lib/hadoop/hadoop-aws-2.6.0-cdh5.10.0.jar:/usr/lib/hadoop/hadoop-common-2.6.0-cdh5.10.0.jar:/usr/lib/hadoop/hadoop-common-2.6.0-cdh5.10.0-tests.jar:/usr/lib/hadoop/hadoop-n
[cloudera@quickstart ~]$ sudo service solr-server status
Solr server daemon is dead and pid file exists             [FAILED]&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I've noticed there are some HBase outofmemory errors, not sure if this is related to Solr or it's different eror, are you please able to shed some light.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your continous support.&lt;/P&gt;&lt;P&gt;Osama&lt;/P&gt;</description>
      <pubDate>Tue, 20 Jun 2017 22:00:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/56204#M19622</guid>
      <dc:creator>osamabg</dc:creator>
      <dc:date>2017-06-20T22:00:40Z</dc:date>
    </item>
    <item>
      <title>Re: unable to create Solr collection / index</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/56860#M19623</link>
      <description>&lt;P&gt;Hi Nick,&lt;/P&gt;&lt;P&gt;Sorry for my late replt, after so many trials, I kept adding more memory to the vm until it works.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;Osama&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 05:25:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/56860#M19623</guid>
      <dc:creator>osamabg</dc:creator>
      <dc:date>2017-07-04T05:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: unable to create Solr collection / index</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/56917#M19624</link>
      <description>&lt;P&gt;Hi Osama,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Glad you finally got to the solution!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Nick&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jul 2017 19:32:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/56917#M19624</guid>
      <dc:creator>nwhite</dc:creator>
      <dc:date>2017-07-04T19:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: unable to create Solr collection / index</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/61719#M19625</link>
      <description>&lt;P&gt;Hello Osama,&lt;/P&gt;&lt;P&gt;I am facing the same issue. Can you please send me the code or the process how did you tried to resolve this issue. It will be really great if you can help me out with this..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying with solrctl collection --create &amp;lt;collection name&amp;gt;..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I did&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;solrctl instancedir --generate &amp;lt;name of directory&amp;gt;&lt;/P&gt;&lt;P&gt;solrctl instancedir --create &amp;lt;name of directory&amp;gt;&lt;/P&gt;&lt;P&gt;but when trying to create a collection facing the same error.&amp;nbsp;&lt;/P&gt;&lt;P&gt;"Error: can't discover Solr URI. Please specify it explicitly via --solr."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Nov 2017 03:10:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/61719#M19625</guid>
      <dc:creator>Sunny1212</dc:creator>
      <dc:date>2017-11-11T03:10:04Z</dc:date>
    </item>
    <item>
      <title>Re: unable to create Solr collection / index</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/63850#M19626</link>
      <description>&lt;P&gt;I am facing the same issue when creating SOLR collection in my quickstart VM (error below) -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;solrctl collection --create findrcoll -s 1&lt;BR /&gt;Error: can't discover Solr URI. Please specify it explicitly via --solr.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also verified that solr server daemon is running. I am not using Cloudera Manager in my VM.&lt;BR /&gt;[cloudera@quickstart findrcoll]$ sudo service solr-server status&lt;BR /&gt;Solr server daemon is running&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [&amp;nbsp; OK&amp;nbsp; ]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is appreciated. Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jan 2018 21:54:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/63850#M19626</guid>
      <dc:creator>MBFRBSF</dc:creator>
      <dc:date>2018-01-19T21:54:51Z</dc:date>
    </item>
    <item>
      <title>Re: unable to create Solr collection / index</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/81679#M19627</link>
      <description>&lt;P&gt;Is this a bug in CDH 5.15?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The same happens for me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works&lt;/P&gt;&lt;PRE&gt;solrctl --zk ip-172-31-90-165.ec2.internal:2181,ip-172-31-81-167.ec2.internal:2181,ip-172-31-92-169.ec2.internal:2181/solr instancedir --create ds-collection /tmp/ds-collection&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; This gives me Solr url not found error:&lt;/P&gt;&lt;PRE&gt;solrctl --zk ip-172-31-90-165.ec2.internal:2181,ip-172-31-81-167.ec2.internal:2181,ip-172-31-92-169.ec2.internal:2181/solr collection --create ds-collection -s 2 -r 2&lt;/PRE&gt;&lt;P&gt;The above command used to work in older 5.1x versions. Please advise.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 15:32:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/81679#M19627</guid>
      <dc:creator>AKB</dc:creator>
      <dc:date>2018-10-30T15:32:56Z</dc:date>
    </item>
    <item>
      <title>Re: unable to create Solr collection / index</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/81680#M19628</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/4054"&gt;@bgooley&lt;/a&gt;&amp;nbsp; Please see my post above. Thanks.&lt;/P&gt;</description>
      <pubDate>Tue, 30 Oct 2018 15:42:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/81680#M19628</guid>
      <dc:creator>AKB</dc:creator>
      <dc:date>2018-10-30T15:42:59Z</dc:date>
    </item>
    <item>
      <title>Re: unable to create Solr collection / index</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/81775#M19629</link>
      <description>&lt;P&gt;Anyone?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 14:37:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/81775#M19629</guid>
      <dc:creator>AKB</dc:creator>
      <dc:date>2018-11-01T14:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: unable to create Solr collection / index</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/81781#M19630</link>
      <description>Can you run with the --trace option and see if theres any indication of why the ZK_ENSEMBLE is not being used?&lt;BR /&gt;&lt;BR /&gt;-pd</description>
      <pubDate>Thu, 01 Nov 2018 15:37:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/81781#M19630</guid>
      <dc:creator>pdvorak</dc:creator>
      <dc:date>2018-11-01T15:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: unable to create Solr collection / index</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/81782#M19631</link>
      <description>solrctl --zk&lt;BR /&gt;ip-172-31-90-165.ec2.internal:2181,ip-172-31-81-167.ec2.internal:2181,ip-172-31-92-169.ec2.internal:2181/solr&lt;BR /&gt;collection --delete ds-collection --trace&lt;BR /&gt;Error: can't discover Solr URI. Please specify it explicitly via --solr.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 01 Nov 2018 16:34:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/81782#M19631</guid>
      <dc:creator>AKB</dc:creator>
      <dc:date>2018-11-01T16:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: unable to create Solr collection / index</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/81783#M19632</link>
      <description>&lt;P&gt;[centos@ip-172-31-81-167 data]$ solrctl --trace --zk ip-172-31-90-165.ec2.internal:2181,ip-172-31-81-167.ec2.internal:2181,ip-172-31-92-169.ec2.internal:2181/solr collection --delete ds-collection&lt;BR /&gt;+ shift 1&lt;BR /&gt;+ test 5 '!=' 0&lt;BR /&gt;+ case "$1" in&lt;BR /&gt;+ '[' 5 -gt 1 ']'&lt;BR /&gt;+ SOLR_ZK_ENSEMBLE=ip-172-31-90-165.ec2.internal:2181,ip-172-31-81-167.ec2.internal:2181,ip-172-31-92-169.ec2.internal:2181/solr&lt;BR /&gt;+ shift 2&lt;BR /&gt;+ test 3 '!=' 0&lt;BR /&gt;+ case "$1" in&lt;BR /&gt;+ break&lt;BR /&gt;+ '[' -n '' ']'&lt;BR /&gt;+ '[' -n '' ']'&lt;BR /&gt;+ '[' -n '' ']'&lt;BR /&gt;+ '[' -z ip-172-31-90-165.ec2.internal:2181,ip-172-31-81-167.ec2.internal:2181,ip-172-31-92-169.ec2.internal:2181/solr ']'&lt;BR /&gt;+ SOLR_ADMIN_ZK_CMD='ZKCLI_JVM_FLAGS=${ZKCLI_JVM_FLAGS} LOG4J_PROPS=${SOLR_CONF_DIR}/log4j.properties ${SOLR_HOME}/bin/zkcli.sh -zkhost $SOLR_ZK_ENSEMBLE 2&amp;gt;&amp;amp;3'&lt;BR /&gt;+ '[' 3 -gt 0 ']'&lt;BR /&gt;+ test 3 '!=' 0&lt;BR /&gt;+ case "$1" in&lt;BR /&gt;+ '[' --delete = --list ']'&lt;BR /&gt;+ '[' --delete = --list-snapshots ']'&lt;BR /&gt;+ '[' 3 -gt 2 ']'&lt;BR /&gt;+ case "$2" in&lt;BR /&gt;++ echo --delete&lt;BR /&gt;++ tr '[a-z]-' '[A-Z] '&lt;BR /&gt;+ COL_ACTION=' DELETE'&lt;BR /&gt;++ echo DELETE&lt;BR /&gt;+ eval solr_webapi ''\''/admin/collections?action=DELETE&amp;amp;name=ds-collection'\'''&lt;BR /&gt;++ solr_webapi '/admin/collections?action=DELETE&amp;amp;name=ds-collection'&lt;BR /&gt;++ '[' -z '' ']'&lt;BR /&gt;+++ get_solr_protocol&lt;BR /&gt;++++ eval 'ZKCLI_JVM_FLAGS=${ZKCLI_JVM_FLAGS}' 'LOG4J_PROPS=${SOLR_CONF_DIR}/log4j.properties' '${SOLR_HOME}/bin/zkcli.sh' -zkhost '$SOLR_ZK_ENSEMBLE' '2&amp;gt;&amp;amp;3' -cmd get /clusterprops.json&lt;BR /&gt;+++++ ZKCLI_JVM_FLAGS=&lt;BR /&gt;+++++ LOG4J_PROPS=/etc/solr/conf/log4j.properties&lt;BR /&gt;+++++ /opt/cloudera/parcels/CDH-5.15.1-1.cdh5.15.1.p0.4/bin/../lib/solr//bin/zkcli.sh -zkhost ip-172-31-90-165.ec2.internal:2181,ip-172-31-81-167.ec2.internal:2181,ip-172-31-92-169.ec2.internal:2181/solr -cmd get /clusterprops.json&lt;BR /&gt;+++ SOLR_STATE='{"urlScheme":"http"}'&lt;BR /&gt;+++ echo '{"urlScheme":"http"}'&lt;BR /&gt;+++ grep -i urlScheme&lt;BR /&gt;+++ grep -q -i https&lt;BR /&gt;+++ echo http&lt;BR /&gt;++ local SOLR_PROTOCOL=http&lt;BR /&gt;+++ get_solr_state /live_nodes&lt;BR /&gt;+++ sed -ne 's#/live_nodes/\(.*:[0-9][0-9]*\).*$#\1#p'&lt;BR /&gt;++++ eval 'ZKCLI_JVM_FLAGS=${ZKCLI_JVM_FLAGS}' 'LOG4J_PROPS=${SOLR_CONF_DIR}/log4j.properties' '${SOLR_HOME}/bin/zkcli.sh' -zkhost '$SOLR_ZK_ENSEMBLE' '2&amp;gt;&amp;amp;3' -cmd ls /live_nodes&lt;BR /&gt;+++++ ZKCLI_JVM_FLAGS=&lt;BR /&gt;+++++ LOG4J_PROPS=/etc/solr/conf/log4j.properties&lt;BR /&gt;+++++ /opt/cloudera/parcels/CDH-5.15.1-1.cdh5.15.1.p0.4/bin/../lib/solr//bin/zkcli.sh -zkhost ip-172-31-90-165.ec2.internal:2181,ip-172-31-81-167.ec2.internal:2181,ip-172-31-92-169.ec2.internal:2181/solr -cmd ls /live_nodes&lt;BR /&gt;+++ SOLR_STATE='/live_nodes (5)&lt;BR /&gt;/live_nodes/ip-172-31-81-167.ec2.internal:8983_solr (0)&lt;BR /&gt;/live_nodes/ip-172-31-90-165.ec2.internal:8983_solr (0)&lt;BR /&gt;/live_nodes/ip-172-31-82-140.ec2.internal:8983_solr (0)&lt;BR /&gt;/live_nodes/ip-172-31-92-169.ec2.internal:8983_solr (0)&lt;BR /&gt;/live_nodes/ip-172-31-93-54.ec2.internal:8983_solr (0)'&lt;BR /&gt;+++ echo '/live_nodes (5)&lt;BR /&gt;/live_nodes/ip-172-31-81-167.ec2.internal:8983_solr (0)&lt;BR /&gt;/live_nodes/ip-172-31-90-165.ec2.internal:8983_solr (0)&lt;BR /&gt;/live_nodes/ip-172-31-82-140.ec2.internal:8983_solr (0)&lt;BR /&gt;/live_nodes/ip-172-31-92-169.ec2.internal:8983_solr (0)&lt;BR /&gt;/live_nodes/ip-172-31-93-54.ec2.internal:8983_solr (0)'&lt;BR /&gt;+++ grep -v '^/ '&lt;BR /&gt;++ for node in '`get_solr_state '\''/live_nodes'\'' | sed -ne '\''s#/live_nodes/\(.*:[0-9][0-9]*\).*$#\1#p'\''`' 'localhost:$SOLR_PORT'&lt;BR /&gt;++ curl -i --retry 5 -s -L -k --negotiate -u : &lt;A href="http://ip-172-31-81-167.ec2.internal:8983/solr" target="_blank"&gt;http://ip-172-31-81-167.ec2.internal:8983/solr&lt;/A&gt;&lt;BR /&gt;++ for node in '`get_solr_state '\''/live_nodes'\'' | sed -ne '\''s#/live_nodes/\(.*:[0-9][0-9]*\).*$#\1#p'\''`' 'localhost:$SOLR_PORT'&lt;BR /&gt;++ curl -i --retry 5 -s -L -k --negotiate -u : &lt;A href="http://ip-172-31-90-165.ec2.internal:8983/solr" target="_blank"&gt;http://ip-172-31-90-165.ec2.internal:8983/solr&lt;/A&gt;&lt;BR /&gt;++ for node in '`get_solr_state '\''/live_nodes'\'' | sed -ne '\''s#/live_nodes/\(.*:[0-9][0-9]*\).*$#\1#p'\''`' 'localhost:$SOLR_PORT'&lt;BR /&gt;++ curl -i --retry 5 -s -L -k --negotiate -u : &lt;A href="http://ip-172-31-82-140.ec2.internal:8983/solr" target="_blank"&gt;http://ip-172-31-82-140.ec2.internal:8983/solr&lt;/A&gt;&lt;BR /&gt;++ for node in '`get_solr_state '\''/live_nodes'\'' | sed -ne '\''s#/live_nodes/\(.*:[0-9][0-9]*\).*$#\1#p'\''`' 'localhost:$SOLR_PORT'&lt;BR /&gt;++ curl -i --retry 5 -s -L -k --negotiate -u : &lt;A href="http://ip-172-31-92-169.ec2.internal:8983/solr" target="_blank"&gt;http://ip-172-31-92-169.ec2.internal:8983/solr&lt;/A&gt;&lt;BR /&gt;++ for node in '`get_solr_state '\''/live_nodes'\'' | sed -ne '\''s#/live_nodes/\(.*:[0-9][0-9]*\).*$#\1#p'\''`' 'localhost:$SOLR_PORT'&lt;BR /&gt;++ curl -i --retry 5 -s -L -k --negotiate -u : &lt;A href="http://ip-172-31-93-54.ec2.internal:8983/solr" target="_blank"&gt;http://ip-172-31-93-54.ec2.internal:8983/solr&lt;/A&gt;&lt;BR /&gt;++ for node in '`get_solr_state '\''/live_nodes'\'' | sed -ne '\''s#/live_nodes/\(.*:[0-9][0-9]*\).*$#\1#p'\''`' 'localhost:$SOLR_PORT'&lt;BR /&gt;++ curl -i --retry 5 -s -L -k --negotiate -u : http://localhost:/solr&lt;BR /&gt;++ '[' -n '' ']'&lt;BR /&gt;++ die 'Error: can'\''t discover Solr URI. Please specify it explicitly via --solr.'&lt;BR /&gt;++ '[' '!' -z 'Error: can'\''t discover Solr URI. Please specify it explicitly via --solr.' ']'&lt;BR /&gt;++ echo Error: 'can'\''t' discover Solr URI. Please specify it explicitly via --solr.&lt;BR /&gt;Error: can't discover Solr URI. Please specify it explicitly via --solr.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;## Seems like the collection command is not working in CDH 5.15. Instancedir works fine with zk quoram.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 16:36:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/81783#M19632</guid>
      <dc:creator>AKB</dc:creator>
      <dc:date>2018-11-01T16:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: unable to create Solr collection / index</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/81784#M19633</link>
      <description>It looks like its failing contacting the solr nodes. are you able to run this successfully from the host where the solrctl command is running?&lt;BR /&gt;&lt;BR /&gt;curl -i --retry 5 -s -L -k --negotiate -u : &lt;A href="http://ip-172-31-82-140.ec2.internal:8983/solr" target="_blank"&gt;http://ip-172-31-82-140.ec2.internal:8983/solr&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;-pd</description>
      <pubDate>Thu, 01 Nov 2018 16:58:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/81784#M19633</guid>
      <dc:creator>pdvorak</dc:creator>
      <dc:date>2018-11-01T16:58:13Z</dc:date>
    </item>
    <item>
      <title>Re: unable to create Solr collection / index</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/81785#M19634</link>
      <description>&lt;P&gt;Yes, running all commands on NN2 which happens to be a Solr node also. I was able to create the collections using the collections api, but solrctl works for some commands and just not the collections command. Maybe some bug, please check the code. Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 01 Nov 2018 17:05:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/81785#M19634</guid>
      <dc:creator>AKB</dc:creator>
      <dc:date>2018-11-01T17:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: unable to create Solr collection / index</title>
      <link>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/81844#M19635</link>
      <description>Does the curl command I noted return an actual web page? From the output, it is possible there is something wrong with the curl binaries that you are using...&lt;BR /&gt;&lt;BR /&gt;-pd</description>
      <pubDate>Fri, 02 Nov 2018 19:53:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/unable-to-create-Solr-collection-index/m-p/81844#M19635</guid>
      <dc:creator>pdvorak</dc:creator>
      <dc:date>2018-11-02T19:53:54Z</dc:date>
    </item>
  </channel>
</rss>

