creating collection with solr5 - missing config data

2015-11-02 Thread tedsolr
I'm trying to plan a migration from a standalone solr instance to the
solrcloud. I understand the basic steps but am getting tripped up just
trying to create a new collection. For simplicity, I'm testing this on a
single machine, so I was trying to use the embedded zookeeper. I can't
figure out how to upload a config set to the embedded zookeeper. (I hope to
use the embedded zookeepers on all dev environments)

1. start first node: solr start -c
2. start second node: solr start -c -p 8984 -s solr2
3. create collection using API: curl
...collections?action=CREATE=mycollection=1
ERROR - no config found
4. copy standalone core "data" folder to mycollection

So, how do I get my shared config data (I'm using configsets in my
standalone model) uploaded to zookeeper?

thanks!
Solr 5.2.1



--
View this message in context: 
http://lucene.472066.n3.nabble.com/creating-collection-with-solr5-missing-config-data-tp4237802.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: creating collection with solr5 - missing config data

2015-11-02 Thread tedsolr
Thanks Erick, that did it. I had thought the -z option was only for external
zookeepers. Using port 9983 allowed me to upload a config.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/creating-collection-with-solr5-missing-config-data-tp4237802p4237811.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: creating collection with solr5 - missing config data

2015-11-02 Thread Erick Erickson
The "new way" of doing things is to use the start
scripts, which is outlined at the start of the page I linked below.
You probably want to bite the bullet and get used to that
way of doing things, as it's likely going to be where ongoing
work is done.

If you still want to approach it the way you are, I see two issues:

The first issue is that you need to upload a configset to Zookeeper.
In SolrCloud, all configs live on the Zookeeper node, which will
eventually be a different machine so that's a necessary first step.

There's a section on this using zkcli here:
https://cwiki.apache.org/confluence/display/solr/Using+ZooKeeper+to+Manage+Configuration+Files


The second issue is that the second node you started is _also_
starting it's own embedded Zookeeper, and these don't know about
each other. You need the -z localhost:9983 option (I think the 9983 is
the default Zookeeper port when you run embedded ZK in one of
your Solr instances).

Best,
Erick

On Mon, Nov 2, 2015 at 1:30 PM, tedsolr <tsm...@sciquest.com> wrote:
> I'm trying to plan a migration from a standalone solr instance to the
> solrcloud. I understand the basic steps but am getting tripped up just
> trying to create a new collection. For simplicity, I'm testing this on a
> single machine, so I was trying to use the embedded zookeeper. I can't
> figure out how to upload a config set to the embedded zookeeper. (I hope to
> use the embedded zookeepers on all dev environments)
>
> 1. start first node: solr start -c
> 2. start second node: solr start -c -p 8984 -s solr2
> 3. create collection using API: curl
> ...collections?action=CREATE=mycollection=1
> ERROR - no config found
> 4. copy standalone core "data" folder to mycollection
>
> So, how do I get my shared config data (I'm using configsets in my
> standalone model) uploaded to zookeeper?
>
> thanks!
> Solr 5.2.1
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/creating-collection-with-solr5-missing-config-data-tp4237802.html
> Sent from the Solr - User mailing list archive at Nabble.com.