flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (FLINK-3882) Errors in sample Java code for the Elasticsearch 2.x sink
Date Sun, 08 May 2016 20:50:12 GMT

    [ https://issues.apache.org/jira/browse/FLINK-3882?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15275730#comment-15275730
] 

ASF GitHub Bot commented on FLINK-3882:
---------------------------------------

GitHub user markreddy opened a pull request:

    https://github.com/apache/flink/pull/1971

    [FLINK-3882][docs] Fix errors in sample Java code for the Elasticsearch 2 sink

    Fixes [FLINK-3882] - fixed Java code and editor removed some trailing whitespace as well
👍 

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/markreddy/flink FLINK-3882

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/flink/pull/1971.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1971
    
----
commit 8cf0ee8a963a43c47863d37a949433668896c8c1
Author: markreddy <mark.l.reddy@gmail.com>
Date:   2016-05-08T20:41:13Z

    [FLINK-3882][docs] Fix errors in sample Java code for the Elasticsearch 2 sink

----


> Errors in sample Java code for the Elasticsearch 2.x sink
> ---------------------------------------------------------
>
>                 Key: FLINK-3882
>                 URL: https://issues.apache.org/jira/browse/FLINK-3882
>             Project: Flink
>          Issue Type: Bug
>          Components: Documentation, Streaming Connectors
>    Affects Versions: 1.1.0
>            Reporter: Mark Reddy
>            Priority: Trivial
>   Original Estimate: 0.5h
>  Remaining Estimate: 0.5h
>
> The sample Java code for the Elasticsearch 2.x sink doc[1] has numerous errors in it,
which seems to be resulting from porting the Scala example to Java.
> e.g.
> {code}
>   public IndexRequest createIndexRequest(String element): IndexRequest = {
>     Map<String,String> json = new HashMap<>()
>     json.put("data", element)
> {code}
> [1] https://ci.apache.org/projects/flink/flink-docs-master/apis/streaming/connectors/elasticsearch2.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message