Member since
08-23-2017
5
Posts
0
Kudos Received
0
Solutions
08-28-2017
03:05 PM
Thanks @Venkata Sudheer Kumar M Was able to resolve this by upgrading solr to 6.5.1.
... View more
08-24-2017
06:55 AM
PFA @Venkata Sudheer Kumar M solrconfig.xml solrlogs.txt Thanks
... View more
08-23-2017
01:26 PM
@Venkata Sudheer Kumar M Well, I see both my nodes listed in /live_nodes in admin console. Sorry my bad for not pasting the complete logs earlier. I am getting the same error for all replicas. Error CREATEing SolrCore 'tests_shard2_replica1': Unable to create core [tests_shard2_replica1] Caused by: mynameservice Error CREATEing SolrCore 'tests_shard2_replica2': Unable to create core [tests_shard2_replica2] Caused by: mynameservice Error CREATEing SolrCore 'tests_shard1_replica1': Unable to create core [tests_shard1_replica1] Caused by: mynameservice Error CREATEing SolrCore 'tests_shard1_replica2': Unable to create core [tests_shard1_replica2] Caused by: mynameservice for the same reason Caused by: java.lang.IllegalArgumentException: java.net.UnknownHostException: mynameserviceAnd it works when i change the service "mynameservice" to the active name node host name. Thanks,
... View more
08-23-2017
12:09 PM
Thanks for the reply @Venkata Sudheer Kumar M I tried putting the nameservice instead of the individual server, It doesnt work either. I get an error when i try to create a collection using the command /opt/lucidworks-hdpsearch/solr/bin/solr create -c tests -d /opt/lucidworks-hdpsearch/solr/server/solr/configsets/data_driven_schema_configs_hdfs -n testconfig -s 2 -rf 2 The error I get is. {
"responseHeader":{
"status":0,
"QTime":7087},
"failure": : Error CREATEing SolrCore 'tests_shard1_replica2': Unable to create core [tests_shard1_replica2] Caused by: mynameservice"}} So i guess the config expects only a host name as the documentation also says Hostname: full name of your name node on the cluster. Eg. Namenode01.company.com Thanks,
... View more
08-23-2017
08:38 AM
I have setup a solr cluster using the steps provided in the links - 1. https://community.hortonworks.com/articles/30482/how-to-deploy-apache-solr-as-solrcloud-on-hdfs-in.html 2. https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.5.0/bk_solr-search-installation/content/ch_hdp-search-install-ambari.html I have setup a two nodes lucidworks solr cluster and using zookeeper which comes with HDP. I am configuring solr to store indexes on HDFS. There are two problems i am facing - 1. I am providing a name node to store indexes on HDFS in the configset using(as mentioned in the link) <strname="solr.hdfs.home">hdfs://<namenode1:port>/user/solr</str> But when my primary namenode goes down and switch over takes place.The solr starts giving error as it doesnt switch over by itself to the new active name node. 2. When ever I ingest data into solr using solrJ, It doesn't show up in solr. But, when i restart the solr it shows the data into solr. Answer : I was able to resolve this by changing the <openSearcher>false</openSearcher> setting to true in hard commit settings. Thanks,
... View more