【发布时间】:2013-11-27 04:08:08
【问题描述】:
我已经安装了 couchdb 和弹性搜索,并让它们都启动并运行。
第一期
我现在正在尝试为 elasticsearch 安装 couchdb River 插件。
按照此处的说明:https://github.com/elasticsearch/elasticsearch-river-couchdb 我打开 Windows 7 命令提示符并执行此操作:
bin/plugin -install elasticsearch/elasticsearch-river-couchdb/1.2.0
我明白了:
'bin' is not recognized as an internal or external command, operable program or batch file.
我知道这一定很简单......
第二期
我也尝试运行 curl 命令来设置新索引,但我得到了这个错误(我相信不管插件尚未安装,它都会发生):
我删除了单引号,因为 windows 不喜欢它们...
curl -XPUT localhost:9200/_river/my_db/_meta -d {
"type" : "couchdb",
"couchdb" : {
"host" : "localhost",
"port" : 5984,
"db" : "my_db",
"filter" : null
},
"index" : {
"index" : "my_db",
"type" : "my_db",
"bulk_size" : "100",
"bulk_timeout" : "10ms"
}
}
我明白了:
{"error":"MapperParsingException[failed to parse]; nested: JsonParseException[Un
expected end-of-input: expected close marker for OBJECT (from [Source: [B@38ec57
4c; line: 1, column: 0])\n at [Source: [B@38ec574c; line: 1, column: 3]]; ","sta
tus":400}curl: (6) Could not resolve host: type
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Method not allowed!</title>
<link rev="made" href="mailto:postmaster@localhost" />
<style type="text/css"><!--/*--><![CDATA[/*><!--*/
body { color: #000000; background-color: #FFFFFF; }
a:link { color: #0000CC; }
p, address {margin-left: 3em;}
span {font-size: smaller;}
/*]]>*/--></style>
</head>
<body>
<h1>Method not allowed!</h1>
<p>
The PUT
method is not allowed for the requested URL.
</p>
<p>
If you think this is a server error, please contact
the <a href="mailto:postmaster@localhost">webmaster</a>.
</p>
<h2>Error 405</h2>
<address>
<a href="/"></a><br />
<span>Apache/2.4.4 (Win32) OpenSSL/1.0.1e PHP/5.5.1</span>
</address>
</body>
</html>
【问题讨论】:
标签: curl installation elasticsearch couchdb