Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 93D11200C21 for ; Mon, 6 Feb 2017 04:52:50 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 92607160B65; Mon, 6 Feb 2017 03:52:50 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id DB4CA160B59 for ; Mon, 6 Feb 2017 04:52:49 +0100 (CET) Received: (qmail 18614 invoked by uid 500); 6 Feb 2017 03:52:49 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 18605 invoked by uid 99); 6 Feb 2017 03:52:49 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Feb 2017 03:52:49 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 928EAC0027 for ; Mon, 6 Feb 2017 03:52:48 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.002 X-Spam-Level: X-Spam-Status: No, score=0.002 tagged_above=-999 required=6.31 tests=[KAM_BADIPHTTP=2, KAM_LAZY_DOMAIN_SECURITY=1, RP_MATCHES_RCVD=-2.999, WEIRD_PORT=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id SB8woy_AZ6_Z for ; Mon, 6 Feb 2017 03:52:47 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTP id 3B0045FB5B for ; Mon, 6 Feb 2017 03:52:47 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 5EB13E044B for ; Mon, 6 Feb 2017 03:52:43 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 682A72528B for ; Mon, 6 Feb 2017 03:52:42 +0000 (UTC) Date: Mon, 6 Feb 2017 03:52:42 +0000 (UTC) From: "Reza Nouri (JIRA)" To: commits@beam.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BEAM-425) Create Elasticsearch IO MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Mon, 06 Feb 2017 03:52:50 -0000 [ https://issues.apache.org/jira/browse/BEAM-425?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D158534= 77#comment-15853477 ]=20 Reza Nouri commented on BEAM-425: --------------------------------- Hi [~echauchot], I am trying to use elasticIO, but I am getting the following error while wr= iting data to elastic: threw exception [org.apache.beam.sdk.Pipeline$PipelineExecutionException: o= rg.elasticsearch.client.ResponseException: POST http://127.0.0.1:9200/named= entities/keyword/_bulk: HTTP/1.1 400 Bad Request {"error":{"root_cause":[{"type":"parse_exception","reason":"Failed to deriv= e xcontent"}],"type":"parse_exception","reason":"Failed to derive xcontent"= },"status":400}] with root cause org.elasticsearch.client.ResponseException: POST http://127.0.0.1:9200/name= dentities/keyword/_bulk: HTTP/1.1 400 Bad Request {"error":{"root_cause":[{"type":"parse_exception","reason":"Failed to deriv= e xcontent"}],"type":"parse_exception","reason":"Failed to derive xcontent"= },"status":400} =09at org.elasticsearch.client.RestClient$1.completed(RestClient.java:310) =09at org.elasticsearch.client.RestClient$1.completed(RestClient.java:299) =09at org.apache.http.concurrent.BasicFuture.completed(BasicFuture.java:119= ) =09at org.apache.http.impl.nio.client.DefaultClientExchangeHandlerImpl.resp= onseCompleted(DefaultClientExchangeHandlerImpl.java:177) =09at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.processResponse= (HttpAsyncRequestExecutor.java:436) =09at org.apache.http.nio.protocol.HttpAsyncRequestExecutor.inputReady(Http= AsyncRequestExecutor.java:326) =09at org.apache.http.impl.nio.DefaultNHttpClientConnection.consumeInput(De= faultNHttpClientConnection.java:265) =09at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(Inter= nalIODispatch.java:81) =09at org.apache.http.impl.nio.client.InternalIODispatch.onInputReady(Inter= nalIODispatch.java:39) =09at org.apache.http.impl.nio.reactor.AbstractIODispatch.inputReady(Abstra= ctIODispatch.java:114) =09at org.apache.http.impl.nio.reactor.BaseIOReactor.readable(BaseIOReactor= .java:162) =09at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvent(Abstr= actIOReactor.java:337) =09at org.apache.http.impl.nio.reactor.AbstractIOReactor.processEvents(Abst= ractIOReactor.java:315) =09at org.apache.http.impl.nio.reactor.AbstractIOReactor.execute(AbstractIO= Reactor.java:276) =09at org.apache.http.impl.nio.reactor.BaseIOReactor.execute(BaseIOReactor.= java:104) =09at org.apache.http.impl.nio.reactor.AbstractMultiworkerIOReactor$Worker.= run(AbstractMultiworkerIOReactor.java:588) I wrote something similar to ElasticsearchIOTest test case and the data is = JSON format exactly same as the test file: data.add(String.format("{\"scientist\":\"%s\", \"id\":%d}", scientists[inde= x], i)); Also, I am using elastic 5.2 running on a single node. Any idea? Thanks,=20 Reza > Create Elasticsearch IO > ----------------------- > > Key: BEAM-425 > URL: https://issues.apache.org/jira/browse/BEAM-425 > Project: Beam > Issue Type: New Feature > Components: sdk-java-extensions > Reporter: Jean-Baptiste Onofr=C3=A9 > Assignee: Etienne Chauchot > Fix For: 0.5.0 > > > I'm working on a new ElasticsearchIO providing both bounded source and si= nk. -- This message was sent by Atlassian JIRA (v6.3.15#6346)