Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-3882

Errors in sample Java code for the Elasticsearch 2.x sink

    XMLWordPrintableJSON

Details

    Description

      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.

        public IndexRequest createIndexRequest(String element): IndexRequest = {
          Map<String,String> json = new HashMap<>()
          json.put("data", element)
      

      [1] https://ci.apache.org/projects/flink/flink-docs-master/apis/streaming/connectors/elasticsearch2.html

      Attachments

        Activity

          People

            MarkReddy Mark Reddy
            MarkReddy Mark Reddy
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified