无法访问' path.scripts'

时间:2018-02-23 17:09:20

标签: elasticsearch

运行弹性搜索时,我在管理命令提示符下遇到错误。

Exception in thread "main" java.lang.IllegalStateException: Unable to access 'path.scripts' (C:\elasticsearch-2.3.1\config\scripts)    
Likely root cause: java.nio.file.NotDirectoryException: C:\elasticsearch-2.3.1\config\scripts
at org.elasticsearch.bootstrap.Security.ensureDirectoryExists(Security.java:340)    
at org.elasticsearch.bootstrap.Security.addPath(Security.java:314)    
at org.elasticsearch.bootstrap.Security.addFilePermissions(Security.java:248)    
at org.elasticsearch.bootstrap.Security.createPermissions(Security.java:212)    
at org.elasticsearch.bootstrap.Security.configure(Security.java:118)    
at org.elasticsearch.bootstrap.Bootstrap.setupSecurity(Bootstrap.java:196)    
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:167)    
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270)    
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)    
Refer to the log for complete error details.

同样存在C:\elasticsearch-2.3.1\config\scripts。但我仍然得到错误

directory image

1 个答案:

答案 0 :(得分:0)

问题是脚本是文件而不是目录。删除该文件并创建一个具有该名称的目录。