通过 talend 上的 REST 请求发送 json 数据
send json data via REST request on talend
我想将数据发送到我的 elasticsearch 数据库。
为此,我从 oracle 数据库中恢复了我的数据,我将它们转换为 json 并通过 talend
上的 REST 请求发送它们
我使用 elasticsearch 版本 7.0.1 和 talend 7.1.1
数据发送:
{"name": "Fabrice", "site": "Paris", "department": "North West"}
方法放在这个 url 中:“http://localhost:9200/my_index”
我有这个错误:
Exception in component tRESTClient_1 (myProject)
javax.ws.rs.WebApplicationException: HTTP 405 Method Not Allowed
如果您没有在 url 中传递 ID,那么您需要使用“POST”方法。
当我尝试 运行 您在 Kibana 中发布的查询时,我遇到了类似的错误。
您可以在此处阅读更多内容:
https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html
PS:我不知道 Talend 是如何发挥作用的,但我假设你是 运行 本地的,否则我会预料到会出现无法访问的不同错误"localhost".
我想将数据发送到我的 elasticsearch 数据库。 为此,我从 oracle 数据库中恢复了我的数据,我将它们转换为 json 并通过 talend
上的 REST 请求发送它们我使用 elasticsearch 版本 7.0.1 和 talend 7.1.1
数据发送:
{"name": "Fabrice", "site": "Paris", "department": "North West"}
方法放在这个 url 中:“http://localhost:9200/my_index”
我有这个错误:
Exception in component tRESTClient_1 (myProject) javax.ws.rs.WebApplicationException: HTTP 405 Method Not Allowed
如果您没有在 url 中传递 ID,那么您需要使用“POST”方法。
当我尝试 运行 您在 Kibana 中发布的查询时,我遇到了类似的错误。
您可以在此处阅读更多内容: https://www.elastic.co/guide/en/elasticsearch/reference/current/docs-index_.html
PS:我不知道 Talend 是如何发挥作用的,但我假设你是 运行 本地的,否则我会预料到会出现无法访问的不同错误"localhost".