使用elasticsearch jetty插件在Windows上没有基本身份验证

时间:2014-03-26 10:30:50

标签: elasticsearch jetty

我在windows8上使用以下命令安装了Jetty插件     " bin / plugin -url https://s3.amazonaws.com/www.emergi.net/elasticsearch/plugins/elasticsearch-jetty-1.0.0.zip -install elasticsearch-jetty-1.0.0"

It installed successfully and add the realm.properties file in "elasticsearch-1.0.0/config" directory.
"realm.properties" file looks like 
user: pwd,readwrite

我在" elasticsearch.yml"中添加了以下行。文件

 http.type: com.sonian.elasticsearch.http.jetty.JettyHttpServerTransportModule
  sonian.elasticsearch.http.jetty:
   config: jetty.xml,jetty-hash-auth.xml,jetty-restrict-writes.xml

我用" elasticsearch.bat"重启了elasticsearch。命令。

When I put -XPUT,-XPOST or -XDELETE command, it doesnt provide any authentication.

任何人都能告诉我我错过了什么吗? 我在linux中遵循了相同的程序。它可以工作。

提前致谢。

0 个答案:

没有答案