[
https://issues.apache.org/jira/browse/SOLR-6762?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Timothy Potter reassigned SOLR-6762:
------------------------------------
Assignee: Timothy Potter
> bin/solr create_collection not working due to not finding configName but the
> configSet exists
> ---------------------------------------------------------------------------------------------
>
> Key: SOLR-6762
> URL: https://issues.apache.org/jira/browse/SOLR-6762
> Project: Solr
> Issue Type: Bug
> Reporter: Timothy Potter
> Assignee: Timothy Potter
>
> On trunk, when doing:
> bin/solr create_collection -n foo2 -c sample_techproducts_configs
> The collection cannot be created because of:
> Connecting to ZooKeeper at localhost:9983
> Uploading
> /Users/timpotter/dev/lw/projects/solr_trunk_co/solr/server/solr/configsets/sample_techproducts_configs/conf
> for config sample_techproducts_configs to ZooKeeper at localhost:9983
> Creating new collection 'foo2' using command:
> http://192.168.1.2:7574/solr/admin/collections?action=CREATE&name=foo2&numShards=1&replicationFactor=1&maxShardsPerNode=1&configSet=sample_techproducts_configs
> {
> "responseHeader":{
> "status":0,
> "QTime":16121},
>
> "failure":{"":"org.apache.solr.client.solrj.impl.HttpSolrServer$RemoteSolrException:Error
> CREATEing SolrCore 'foo2_shard1_replica1': Unable to create core
> [foo2_shard1_replica1] Caused by: Could not find configName for collection
> foo2 found:[data_driven_schema_configs, sample_techproducts_configs]"}}
> The bin/solr create_collection command uploads the
> sample_techproducts_configs configset but the create collection seems to
> require the configName instead.
> Logs:
> INFO - 2014-11-19 16:14:38.001;
> org.apache.solr.cloud.OverseerCollectionProcessor; Overseer Collection
> Processor: Get the message id:/overseer/collection-queue-work/qn-0000000014
> message:{
> "operation":"create",
> "fromApi":"true",
> "name":"foo2",
> "replicationFactor":"1",
> "numShards":"1",
> "maxShardsPerNode":"1"}
> WARN - 2014-11-19 16:14:38.002;
> org.apache.solr.cloud.OverseerCollectionProcessor;
> OverseerCollectionProcessor.processMessage : create , {
> "operation":"create",
> "fromApi":"true",
> "name":"foo2",
> "replicationFactor":"1",
> "numShards":"1",
> "maxShardsPerNode":"1"}
> WARN - 2014-11-19 16:14:38.002;
> org.apache.solr.cloud.OverseerCollectionProcessor; Could not obtain config
> name
> INFO - 2014-11-19 16:14:38.003;
> org.apache.solr.cloud.DistributedQueue$LatchWatcher; NodeChildrenChanged
> fired on path /overseer/queue state SyncConnected
> INFO - 2014-11-19 16:14:38.004;
> org.apache.solr.cloud.Overseer$ClusterStateUpdater; building a new
> collection: foo2
> INFO - 2014-11-19 16:14:38.004;
> org.apache.solr.cloud.Overseer$ClusterStateUpdater; Create collection foo2
> with shards [shard1]
> INFO - 2014-11-19 16:14:38.004;
> org.apache.solr.cloud.Overseer$ClusterStateUpdater; state version foo2 1
> INFO - 2014-11-19 16:14:38.006;
> org.apache.solr.common.cloud.ZkStateReader$2; A cluster state change:
> WatchedEvent state:SyncConnected type:NodeDataChanged
> path:/clusterstate.json, has occurred - updating... (live nodes size: 2)
> INFO - 2014-11-19 16:14:38.103;
> org.apache.solr.cloud.OverseerCollectionProcessor; Creating SolrCores for new
> collection foo2, shardNames [shard1] , replicationFactor : 1
> INFO - 2014-11-19 16:14:38.103;
> org.apache.solr.cloud.OverseerCollectionProcessor; Creating shard
> foo2_shard1_replica1 as part of slice shard1 of collection foo2 on
> 192.168.1.2:8983_solr
> INFO - 2014-11-19 16:14:38.106;
> org.apache.solr.handler.admin.CoreAdminHandler; core create command
> numShards=1&shard=shard1&name=foo2_shard1_replica1&action=CREATE&collection=foo2&wt=javabin&qt=/admin/cores&version=2
> INFO - 2014-11-19 16:14:38.107; org.apache.solr.cloud.ZkController;
> publishing core=foo2_shard1_replica1 state=down collection=foo2
> INFO - 2014-11-19 16:14:38.108; org.apache.solr.cloud.ZkController; look for
> our core node name
> INFO - 2014-11-19 16:14:38.108;
> org.apache.solr.cloud.DistributedQueue$LatchWatcher; NodeChildrenChanged
> fired on path /overseer/queue state SyncConnected
> INFO - 2014-11-19 16:14:38.109;
> org.apache.solr.cloud.Overseer$ClusterStateUpdater; Update state numShards=1
> message={
> "operation":"state",
> "numShards":"1",
> "shard":"shard1",
> "roles":null,
> "state":"down",
> "core":"foo2_shard1_replica1",
> "collection":"foo2",
> "node_name":"192.168.1.2:8983_solr",
> "base_url":"http://192.168.1.2:8983/solr"}
> INFO - 2014-11-19 16:14:38.211;
> org.apache.solr.common.cloud.ZkStateReader$2; A cluster state change:
> WatchedEvent state:SyncConnected type:NodeDataChanged
> path:/clusterstate.json, has occurred - updating... (live nodes size: 2)
> INFO - 2014-11-19 16:14:39.108; org.apache.solr.cloud.ZkController; waiting
> to find shard id in clusterstate for foo2_shard1_replica1
> INFO - 2014-11-19 16:14:39.108; org.apache.solr.cloud.ZkController; Check
> for collection zkNode:foo2
> INFO - 2014-11-19 16:14:39.109; org.apache.solr.cloud.ZkController; Creating
> collection in ZooKeeper:foo2
> INFO - 2014-11-19 16:14:39.109; org.apache.solr.cloud.ZkController; Looking
> for collection configName
> INFO - 2014-11-19 16:14:39.109; org.apache.solr.cloud.ZkController; Could
> not find collection configName - pausing for 3 seconds and trying again -
> try: 1
> INFO - 2014-11-19 16:14:42.109; org.apache.solr.cloud.ZkController; Could
> not find collection configName - pausing for 3 seconds and trying again -
> try: 2
> INFO - 2014-11-19 16:14:45.110; org.apache.solr.cloud.ZkController; Could
> not find collection configName - pausing for 3 seconds and trying again -
> try: 3
> INFO - 2014-11-19 16:14:48.110; org.apache.solr.cloud.ZkController; Could
> not find collection configName - pausing for 3 seconds and trying again -
> try: 4
> INFO - 2014-11-19 16:14:51.111; org.apache.solr.cloud.ZkController; Could
> not find collection configName - pausing for 3 seconds and trying again -
> try: 5
> ERROR - 2014-11-19 16:14:54.111; org.apache.solr.cloud.ZkController; Could
> not find configName for collection foo2
> ERROR - 2014-11-19 16:14:54.112; org.apache.solr.core.CoreContainer; Error
> creating core [foo2_shard1_replica1]: Could not find configName for
> collection foo2 found:[data_driven_schema_configs,
> sample_techproducts_configs]
> org.apache.solr.common.cloud.ZooKeeperException: Could not find configName
> for collection foo2 found:[data_driven_schema_configs,
> sample_techproducts_configs]
> at
> org.apache.solr.cloud.ZkController.getConfName(ZkController.java:1380)
> at
> org.apache.solr.cloud.ZkController.createCollectionZkNode(ZkController.java:1283)
> at
> org.apache.solr.cloud.CloudConfigSetService.createCoreResourceLoader(CloudConfigSetService.java:36)
> at
> org.apache.solr.core.ConfigSetService.getConfig(ConfigSetService.java:58)
> at org.apache.solr.core.CoreContainer.create(CoreContainer.java:508)
> at org.apache.solr.core.CoreContainer.create(CoreContainer.java:485)
> at
> org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:575)
> at
> org.apache.solr.handler.admin.CoreAdminHandler.handleRequestInternal(CoreAdminHandler.java:199)
> at
> org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:188)
> at
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:136)
> at
> org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:736)
> at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:253)
> at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:202)
> at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
> at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
> at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
> at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
> at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
> at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
> at
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> at org.eclipse.jetty.server.Server.handle(Server.java:368)
> at
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
> at
> org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
> at
> org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:953)
> at
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1014)
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
> at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
> at
> org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
> at
> org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
> at java.lang.Thread.run(Thread.java:745)
> INFO - 2014-11-19 16:14:54.115;
> org.apache.solr.cloud.DistributedQueue$LatchWatcher; NodeChildrenChanged
> fired on path /overseer/queue state SyncConnected
> ERROR - 2014-11-19 16:14:54.115; org.apache.solr.common.SolrException;
> org.apache.solr.common.SolrException: Error CREATEing SolrCore
> 'foo2_shard1_replica1': Unable to create core [foo2_shard1_replica1] Caused
> by: Could not find configName for collection foo2
> found:[data_driven_schema_configs, sample_techproducts_configs]
> at
> org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:613)
> at
> org.apache.solr.handler.admin.CoreAdminHandler.handleRequestInternal(CoreAdminHandler.java:199)
> at
> org.apache.solr.handler.admin.CoreAdminHandler.handleRequestBody(CoreAdminHandler.java:188)
> at
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:136)
> at
> org.apache.solr.servlet.SolrDispatchFilter.handleAdminRequest(SolrDispatchFilter.java:736)
> at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:253)
> at
> org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:202)
> at
> org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1419)
> at
> org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
> at
> org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:557)
> at
> org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
> at
> org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
> at
> org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
> at
> org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
> at
> org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
> at
> org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255)
> at
> org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:154)
> at
> org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116)
> at org.eclipse.jetty.server.Server.handle(Server.java:368)
> at
> org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:489)
> at
> org.eclipse.jetty.server.BlockingHttpConnection.handleRequest(BlockingHttpConnection.java:53)
> at
> org.eclipse.jetty.server.AbstractHttpConnection.content(AbstractHttpConnection.java:953)
> at
> org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:1014)
> at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:861)
> at
> org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:240)
> at
> org.eclipse.jetty.server.BlockingHttpConnection.handle(BlockingHttpConnection.java:72)
> at
> org.eclipse.jetty.server.bio.SocketConnector$ConnectorEndPoint.run(SocketConnector.java:264)
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
> at
> org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.solr.common.SolrException: Unable to create core
> [foo2_shard1_replica1]
> at org.apache.solr.core.CoreContainer.create(CoreContainer.java:526)
> at org.apache.solr.core.CoreContainer.create(CoreContainer.java:485)
> at
> org.apache.solr.handler.admin.CoreAdminHandler.handleCreateAction(CoreAdminHandler.java:575)
> ... 31 more
> Caused by: org.apache.solr.common.cloud.ZooKeeperException: Could not find
> configName for collection foo2 found:[data_driven_schema_configs,
> sample_techproducts_configs]
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]