Error: Unknown collection - SolrCloud __init__
See original GitHub issueHi! I’m having an error when trying to create a new SolrCloud object.
File "/home/patodb/Repos/hdfs_solr_indexer/indexer.py", line 23, in __init__
self.solr = SolrCloud(zk, collection)
File "/home/patodb/Repos/hdfs_solr_indexer/pysolr.py", line 1148, in __init__
url = zookeeper.getRandomURL(collection)
File "/home/patodb/Repos/hdfs_solr_indexer/pysolr.py", line 1289, in getRandomURL
return random.choice(self.getHosts(collname, only_leader=False)) + "/" + collname
File "/home/patodb/Repos/hdfs_solr_indexer/pysolr.py", line 1255, in getHosts
raise SolrError("Unknown collection: %s", collname)
pysolr.SolrError: (u'Unknown collection: %s', 'boletines_cba')
The error is raised in the getHosts
method of the ZooKeeper
class. Debugging the program I found that self.collections
and self.aliases
are not being initialized correctly when creating the ZooKeeper object. Both variables have the default value {} at the time getRandomURL()
is executed and I don’t see a workflow where these values are overriden.
The Zookeeper object (from Kazoo) seems fine, it resolves both the urls and chroot correctly. The server is running and the collection exists. Any ideas about why is this happening?
Regards,
Issue Analytics
- State:
- Created 8 years ago
- Comments:7
Top Results From Across the Web
Solr cloud error while creating collection no config file found
If you are trying to create a collection on solr cloud with your custom configuration, you have to upload it first on to...
Read more >Solved: org.apache.solr.common.SolrException: ERROR: unkn...
The error tells that your are trying to push a field named "file_length" into Solr. And Solr doesn't know about that field. Either...
Read more >Collections API | Apache Solr Reference Guide 8.1
On any errors the command will delete any temporary and target collections and also ... Unknown properties that don't begin with ext. will...
Read more >How Do I Update the Solr Schema? - SearchStax Docs
When Solr logs start to show "unknown field" errors, it means that documents in Solr that ... The Plugin configures each collection to...
Read more >Solr Error - Error opening new searcher
It looks like your master_index is corrupted. Easiest fix is to copy the web_index (since it is working fine) and then rename the...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Are there plans to release the fix in #187 ? Solr is currently at version 6 while the pull request says it supports 5 and master only supports 4. Most of this library is great when dealing with a single instance of Solr, but it is unusable with Solr in cloud mode. I tried running #187 and it did work, but it’s 45 commits and two minor versions behind master and I don’t want to miss out on those changes. This is the only Python Solr client I could find that is aware of Zookeeper so I would much rather use it than one of the other options
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.