- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
我正在尝试创建一个管道以在 python 客户端中使用摄取附件处理器插件,如下所示:
from elasticsearch import Elasticsearch
es = Elasticsearch()
body = {
"description" : "Extract attachment information",
"processors" : [
{
"attachment" : {
"field" : "data"
}
}
]
}
es.index(index='_ingest', doc_type='pipeline', id='attachment', body=body)
执行此操作时,我收到以下错误:
---------------------------------------------------------------------------
RequestError Traceback (most recent call last)
<ipython-input-32-dcd3f26dc39d> in <module>()
----> 1 es.index(index='_ingest', doc_type='pipeline', id='attachment', body=body)
C:\Users\ananda\AppData\Local\Continuum\Anaconda3\lib\site- packages\elasticsearch\client\utils.py in _wrapped(*args, **kwargs)
71 if p in kwargs:
72 params[p] = kwargs.pop(p)
---> 73 return func(*args, params=params, **kwargs)
74 return _wrapped
75 return _wrapper
C:\Users\ananda\AppData\Local\Continuum\Anaconda3\lib\site- packages\elasticsearch\client\__init__.py in index(self, index, doc_type, body, id, params)
298 raise ValueError("Empty value passed for a required argument.")
299 return self.transport.perform_request('POST' if id in SKIP_IN_PATH else 'PUT',
--> 300 _make_path(index, doc_type, id), params=params, body=body)
301
302 @query_params('parent', 'preference', 'realtime', 'refresh', 'routing')
C:\Users\ananda\AppData\Local\Continuum\Anaconda3\lib\site-packages\elasticsearch\transport.py in perform_request(self, method, url, params, body)
316
317 try:
--> 318 status, headers, data = connection.perform_request(method, url, params, body, ignore=ignore, timeout=timeout)
319
320 except TransportError as e:
C:\Users\ananda\AppData\Local\Continuum\Anaconda3\lib\site-packages\elasticsearch\connection\http_urllib3.py in perform_request(self, method, url, params, body, timeout, ignore)
126 if not (200 <= response.status < 300) and response.status not in ignore:
127 self.log_request_fail(method, full_url, url, body, duration, response.status, raw_data)
--> 128 self._raise_error(response.status, raw_data)
129
130 self.log_request_success(method, full_url, url, body, response.status,
C:\Users\ananda\AppData\Local\Continuum\Anaconda3\lib\site-packages\elasticsearch\connection\base.py in _raise_error(self, status_code, raw_data)
120 logger.warning('Undecodable raw error response from server: %s', err)
121
--> 122 raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, error_message, additional_info)
123
124
RequestError: TransportError(400, 'parse_exception', 'No processor type exists with name [attachment]')
我的 ES 已启动并正在运行:
es.cat.health()
'1490674396 09:43:16 elasticsearch green 1 1 0 0 0 0 0 0 - 100.0%\n'
奇怪的是,我在 ES 日志中看不到任何内容:
[2017-03-28T09:49:01,960][INFO ][o.e.n.Node ] version[5.2.0], pid[12692], build[24e05b9/2017-01-24T19:52:35.800Z], OS[Windows 10/10.0/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_111/25.111-b14]
[2017-03-28T09:49:03,132][INFO ][o.e.p.PluginsService ] [R8e0KZa] loaded module [aggs-matrix-stats]
[2017-03-28T09:49:03,132][INFO ][o.e.p.PluginsService ] [R8e0KZa] loaded module [ingest-common]
[2017-03-28T09:49:03,132][INFO ][o.e.p.PluginsService ] [R8e0KZa] loaded module [lang-expression]
[2017-03-28T09:49:03,132][INFO ][o.e.p.PluginsService ] [R8e0KZa] loaded module [lang-groovy]
[2017-03-28T09:49:03,132][INFO ][o.e.p.PluginsService ] [R8e0KZa] loaded module [lang-mustache]
[2017-03-28T09:49:03,132][INFO ][o.e.p.PluginsService ] [R8e0KZa] loaded module [lang-painless]
[2017-03-28T09:49:03,132][INFO ][o.e.p.PluginsService ] [R8e0KZa] loaded module [percolator]
[2017-03-28T09:49:03,132][INFO ][o.e.p.PluginsService ] [R8e0KZa] loaded module [reindex]
[2017-03-28T09:49:03,132][INFO ][o.e.p.PluginsService ] [R8e0KZa] loaded module [transport-netty3]
[2017-03-28T09:49:03,147][INFO ][o.e.p.PluginsService ] [R8e0KZa] loaded module [transport-netty4]
[2017-03-28T09:49:03,147][INFO ][o.e.p.PluginsService ] [R8e0KZa] no plugins loaded
[2017-03-28T09:49:06,768][INFO ][o.e.n.Node ] initialized
[2017-03-28T09:49:06,768][INFO ][o.e.n.Node ] [R8e0KZa] starting ...
[2017-03-28T09:49:08,294][INFO ][o.e.t.TransportService ] [R8e0KZa] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}, {[::1]:9300}
[2017-03-28T09:49:11,391][INFO ][o.e.c.s.ClusterService ] [R8e0KZa] new_master {R8e0KZa}{R8e0KZacS_WD0BsOnVTK8Q}{AiE29E1xRBasGeaqmONqvQ}{127.0.0.1} {127.0.0.1:9300}, reason: zen-disco-elected-as-master ([0] nodes joined)
[2017-03-28T09:49:11,459][INFO ][o.e.g.GatewayService ] [R8e0KZa] recovered [0] indices into cluster_state
[2017-03-28T09:49:12,745][INFO ][o.e.h.HttpServer ] [R8e0KZa] publish_address {127.0.0.1:9200}, bound_addresses {127.0.0.1:9200}, {[::1]:9200}
[2017-03-28T09:49:12,745][INFO ][o.e.n.Node ] [R8e0KZa] started
请帮我指出这里出了什么问题......
最佳答案
你得到的错误在最后一行
No processor type exists with name [attachment]
您需要install the attachment
plugin首先要使用它
sudo bin/elasticsearch-plugin install ingest-attachment
然后重启ES就可以了。
关于python - 请求错误: TransportError(400, 'parse_exception', 'No processor type exists with name[attachment]'),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43060641/
我在 SQL 查询中使用了一个简单的 IF NOT EXISTS/WHERE NOT EXISTS 语句(我都尝试过),但我总是收到 mysql 错误,不知道为什么。尝试使用不同的引号,检查我的 My
我有 2 个表:tbl1 和 tbl2。我想从 tbl1 返回一行,其中包含以下列:col1、col2、col3、can_be_deleted 、有重要项目。这个想法是,can_be_deleted
如果您是 "t1".persona_1_id = 2,则预期结果应返回 persona_id = 4。 like --- id persona_1_id persona_2_id liked 1 2
我遇到了这个用于执行幂等插入的 github SQL 代码示例。完全按照我想要的方式工作。我不想使用 EXISTS,因为我觉得它有点困惑。可以使用联接对相同的操作进行编码吗? 下面是我在 github
public bool CheckTblExist(string TblName) { try { string cmTxt = "s
表1 Id Name DemoID 1 a 33 2 b 44 3 c 33 4 d 33 5 e 44 表2 Id DemoID IsT
我对 SQL 非常陌生。我想知道当我使用“IF EXISTS”或“IF NOT EXISTS”时会发生什么。例如:以下两个语句有什么区别: 语句 1:(存在) IF EXISTS( SELECT OR
我正在更新 exist-db 集合中的 XML 文件,我必须检查是否存在 id 以决定是否必须在我的文档中替换或插入某些内容。 我注意到随着文件的增长,查询执行时间显着恶化,我决定为我的文件添加一个索
我有一个正在尝试更新的数据库,但我不明白为什么会收到有关不存在的列的奇怪错误。当我使用“heroku pg:psql”访问数据库时,我完全可以看到该列。我找到了couple其他questions遇到类
我有一个这样的查询 SELECT ... FROM ... WHERE (SELECT EXISTS (SELECT...)) which did not return anything th
我有一个可以对数据库执行插入和更新的程序,我从 API 获取数据。这是我得到的示例数据: $uname = $get['userName']; $oname = $get['offerNa
我的批处理文件中有这个脚本 -- if not exist "%JAVA_HOME%" ( echo JAVA_HOME '%JAVA_HOME%' path doesn't exist) -
有没有办法让 Directory.Exists/File.Existssince 区分大小写 Directory.Exists(folderPath) 和 Directory.Exists(folde
考虑使用这两个表和以下查询: SELECT Product. * FROM Product WHERE EXISTS ( SELECT * FROM Codes
我正在使用 Subclipse 1.6.18 使用 Eclipse 3.72 (Indigo) 来处理 SVN 1.6 存储库。这一切都在 Ubuntu 下运行。 我有一个项目,在我更新我的 Ecli
我正在尝试使用 Terraform 配置 Azure 存储帐户和文件共享: resource "random_pet" "prefix" {} provider "azurerm" { versi
我有兴趣为需要使用 NOT EXISTS 的应用程序编写查询。子句来检查一行是否存在。 我正在使用 Sybase,但我想知道一般 SQL 中是否有一个示例,您可以在其中编写具有 NOT EXISTS
我正在尝试使用 Terraform 配置 Azure 存储帐户和文件共享: resource "random_pet" "prefix" {} provider "azurerm" { versi
下面是代码示例: CREATE TABLE #titles( title_id varchar(20), title varchar(80)
我曾经这样编写 EXISTS 检查: IF EXISTS (SELECT * FROM TABLE WHERE Columns=@Filters) BEGIN UPDATE TABLE SET
我是一名优秀的程序员,十分优秀!