Created on 01-07-2016 09:46 AM - edited 09-16-2022 02:56 AM
Upon entering the command:
solrctl --zk quickstart:2181/solr collection --create live_logs -s 1
I get the following error:
Error: A call to SolrCloud WEB APIs failed: HTTP/1.1 200 OK
Server: Apache-Coyote/1.1
Content-Type: application/xml;charset=UTF-8
Transfer-Encoding: chunked
Date: Thu, 07 Jan 2016 17:28:35 GMT
<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader">
<int name="status">
0</int>
<int name="QTime">
16150</int>
</lst>
<lst name="failure">
<str>
org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error CREATEing SolrCore 'live_logs_shard1_replica1': Unable to create core [live_logs_shard1_replica1] Caused by: Could not find configName for collection live_logs found:[yelp_demo, twitter_demo, log_analytics_demo]</str>
</lst>
I am not sure how to resolve this issue. Any help would be appreciated.
Thanks..!!
Created 01-07-2016 11:40 AM
Created 01-07-2016 11:40 AM
Created 01-07-2016 12:54 PM
Sean,
I did not execute the previous 2 statements because the tutorial said not to (see copied text below). I will execute the other steps and try again....
Thanks..!!
Dave.
For the sake of this tutorial, you won't need to actually execute steps 1 or 2, as we have included the configuration and the schema file in your cluster already. They can be reviewed by exploring /opt/examples/flume/solr_configs.
If you were doing this on your own, you would generate the configs by executing the following command:
[cloudera@quickstart ~]$ solrctl --zk quickstart:2181/solr instancedir --generate solr_configs
As mentioned previously, we have already generated the configuration files for you. You can view the modified sample schema here.
The most common area that you would be interested in is the <fields></fields> section. From this area you can define the fields that are present and searchable in your index.
Created on 01-07-2016 01:06 PM - edited 01-07-2016 01:24 PM
Have answered my own question (below) now. My version of Hue is slightly different to the version used in the screenshots for the Tutorial exercises. I have a 'Show cores' checkbox on my version that is not shown on the Tutorial screenshot. When I check this the shard-replica entries appear. 🙂
I have managed to create the live_logs index now.
I ran all of the step again, and the command that was originally failing has now completed without error. However, I do not see a shard_replica entry as shown in the tutorial. Is this normal at this stage, or am I still missing something in my setup?
Thanks..!!
Dave.
Created 01-07-2016 02:04 PM