创建 SolrCore 时出错 'sitecore_core_index':缺少非遗留模式 coreNodeName

Error CREATEing SolrCore 'sitecore_core_index': non legacy mode coreNodeName missing

我目前正在尝试安装 Sitecore 9.1.0 版本。 001564 XP1 与我的 Solr v. 7.2.1 集群由 3 个 Solr 服务器组成 运行 Zookeeper v. 3.4.13.

当我尝试使用 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.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

我也试过 curl 它发出的请求,但结果相同:

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

我做错了什么?

此问题已解决。似乎这仅在未启用 Cloud 的情况下启动 Solr 时才有效。当我在没有云的情况下启动 Solr 时,我可以 运行 脚本没有任何问题。所以我必须为 Solr Cloud 创建自己的集合才能解决这个问题。