创建SolrCore'sitecore_core_index'时出错:缺少非传统模式coreNodeName

时间:2019-03-08 13:52:11

标签: solr sitecore

我当前正在尝试设置Sitecore 9.1.0版本。带有我的Solr v.2.1.1的001564 XP1集群,由运行Zookeeper v。3.4.13的3个solr服务器组成。

当我尝试使用Install-SitecoreConfiguration powershell命令创建核心时,就会出现问题。 Install-SitecoreConfiguration -Path sitecore-solr.json -v

它给出一个错误,提示缺少coreNodeName。我已经检查了core.properties文件和coreNodeNames是否正确设置。

我还检查了solrconfig.xml并将property.update.autoCreateFields设置为false。

错误显示如下:

[--------------------------------------------------------------------------------- CreateCores [1] : ManageSolrCore ----------------------------------------------------------------------------------]
VERBOSE: Tells Solr to create the new cores.
VERBOSE: Performing the operation "Requesting" on target "https://MYHOST:8983/solr".
[CreateCores [1]]:[Requesting] https://MYHOST:8983/solr
VERBOSE: GET https://MYHOST:8983/solr with 0-byte payload
VERBOSE: received 13377-byte response of content type text/html;charset=utf-8
VERBOSE: Performing the operation "Invoke-ManageSolrCoreTask -Address https://MYHOST:8983/solr -Action Create" on target "https://MYHOST:8983/solr".
[CreateCores [1]]:[SolrCore] Performing Create on https://MYHOST:8983/solr

VERBOSE: Updating Solr: Uri => 'https://MYHOST:8983/solr/admin/cores?action=Create&name=sitecore_core_index&property.update.autoCreateFields=false&wt=json'
VERBOSE: GET https://MYHOST:8983/solr/admin/cores?action=Create&name=sitecore_core_index&property.update.autoCreateFields=false&wt=json with 0-byte payload
Install-SitecoreConfiguration : Error CREATEing SolrCore 'sitecore_core_index': non legacy mode coreNodeName missing {update.autoCreateFields=false}
At line:1 char:1
+ Install-SitecoreConfiguration -Path C:\Users\admin\Documents\ ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Install-SitecoreConfiguration

[TIME] 00:00:17
Invoke-ManageSolrCoreTask : Error CREATEing SolrCore 'sitecore_core_index': non legacy mode coreNodeName missing {update.autoCreateFields=false}
At C:\Program Files\WindowsPowerShell\Modules\SitecoreInstallFramework\2.0.0\Public\Install-SitecoreConfiguration.ps1:641 char:25
+                         & $entry.Task.Command @paramSet | Out-Default
+                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
+ FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Invoke-ManageSolrCoreTask

我也尝试过卷曲它正在发出的请求,但这给出了相同的结果:

PS C:\Windows\system32> curl 'https://MYHOST:8983/solr/admin/cores?action=Create&name=sitecore_core_index&property.update.autoCreateFields=false&wt=json'
curl : { "responseHeader":{ "status":400, "QTime":9}, "error":{ "metadata":[ "error-class","org.apache.solr.common.SolrException", "root-error-class","org.apache.solr.common.SolrException"], "msg":"Er
ror CREATEing SolrCore 'sitecore_core_index': non legacy mode coreNodeName missing {update.autoCreateFields=false}", "code":400}}
At line:1 char:1

1 个答案:

答案 0 :(得分:0)

此问题已解决。看来这仅在未启用Cloud的情况下启动Solr时有效。当我在没有云的情况下启动Solr时,我可以毫无问题地运行脚本。因此,我必须为Solr Cloud创建自己的集合才能解决此问题。