Git Product home page Git Product logo

Comments (3)

lionsoul2014 avatar lionsoul2014 commented on May 24, 2024

ES有自己的security规则,单纯的给相关文件权限还不够,需要设置es的权限:
1,增加security.policy增加对jcseg需要访问的文件的授权,例如:https://gitee.com/lionsoul/elasticsearch-jcseg/blob/master/security.policy
2,然后在config/jvm.options中增加对新增加的security.policy的导入:

# Define the security policy
-Djava.security.policy=security.policy

具体例子可以参考下:https://gitee.com/lionsoul/elasticsearch-jcseg

from jcseg.

lionsoul2014 avatar lionsoul2014 commented on May 24, 2024

这边得到的之前的一些用户的反馈是,集群情况下,这样配置偶尔也会抛个异常,具体和版本有关,你可以试下。
最终解决方案就是把相关的资源全部打包到jar里面去,这样就完全没有权限问题了。

from jcseg.

lionsoul2014 avatar lionsoul2014 commented on May 24, 2024

最新的master分之,通过es的安全的path方式访问资源了,无需再设置security.policy也不会存在权限问题了。

from jcseg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.