On 5/12/2017 3:12 AM, Thomas Porschberg wrote: > I want to setup a solrcloud. I want to test sharding with one node, no > replication. > I have some experience with the non-cloud solr and I also run the cloud > examples. > I also have to use the DIH for importing. I think I can live with the > internal zookeeper. > > I did my first steps with solr-6.5.1. > > My first question is: Is it possible to setup a new solrcloud with the web-ui > only?
>From what I can tell, something you cannot do with the admin UI is upload a configuration to zookeeper. If you don't already have one uploaded, then that must be accomplished separately, which you should be able to do at the commandline with the "bin/solr zk" commands. Because the DIH setup is in the configuration that you will be uploading, you also cannot set up DIH from within the UI. > When I start solr with: 'bin/solr start -c' > > I get a menu on the left side where I can create new collections and cores. > I think when I have only one node with no replication a collection maps to > one core, right? What you are describing is one replica, or replicationFactor=1. The leader is also a replica. A one-shard one-replica collection will consist of a single core, but you do not need to worry about that core. > Should I create first the core or the collection? You are only concerned with collections when running in cloud mode. Let Solr worry about the cores. > What should I fill in as instanceDir? Nothing. You won't be using the part of the UI that asks about instanceDir and dataDir. That is only for non-cloud mode, and the configuration must already exist in the core directory that you wish to create. > This is another problem I see: With my non-cloud core I have a conf-directory > where I have dataimport.xml, schema.xml and solrconfig.xml. > I think these 3 files are enough to import my data from my relational > database. > Under example/cloud I could not find one of them. How to setup DIH for the > solrcould? The entire configuration (what would normally be in the conf directory) is in zookeeper when you're in cloud mode, not in the core directories. You must upload a directory containing the same files that would normally be in a conf directory as a named configset to zookeeper before you try to create your collection. This is something that the "bin/solr create" command does for you in cloud mode, typically using one of the configsets included on the disk as a source. https://cwiki.apache.org/confluence/display/solr/Using+ZooKeeper+to+Manage+Configuration+Files Thanks, Shawn