简体   繁体   English

添加核心:Solr错误

[英]Adding Core: Solr Error

When I attempt to run the following command to add a core, I get an error. 当我尝试运行以下命令添加内核时,出现错误。

sudo ./solr create -c myapp -s 2 -rf 2 -force

I get this error message: 我收到此错误消息:

ERROR: Error CREATEing SolrCore 'myapp': Couldn't persist core properties to /var/solr/data/myapp/core.properties : /var/solr/data/myapp/core.properties

Any insight on how to solve this would be greatly appreciated. 任何有关如何解决此问题的见解将不胜感激。

Try removing the sudo and run it with normal user. 尝试删除sudo并以普通用户身份运行它。 There might be a problem when trying to do create with escalated privileges. 尝试使用提升的权限进行创建时可能会出现问题。

Did you install solr using root or with an unprivileged user. 您是否使用root或非特权用户安装solr。

Also is there a specific reason you are trying to run this as root ? 另外,您尝试以root用户身份运行它是否有特定原因? It is not advisable to run or install anything using root privileges. 建议不要使用root特权运行或安装任何东西。

Check this jira also to get some more info:Check this jira for more details 还要检查此jira,以获得更多信息:检查此jira,以获取更多详细信息

https://issues.apache.org/jira/browse/SOLR-7826 https://issues.apache.org/jira/browse/SOLR-7826

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM