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

Example in the Elasticsearch doc of fault tolerance section is missing

    XMLWordPrintableJSON

Details

    Description

      The example in English doc 

      final StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
      env.enableCheckpointing(5000); // checkpoint every 5000 msecs

       

      The example in Chinese doc

      final StreamExecutionEnvironment env = StreamExecutionEnvironment.getExecutionEnvironment();
      env.enableCheckpointing(5000); // 每 5000 毫秒执行一次 checkpoint
      
      Elasticsearch6SinkBuilder sinkBuilder = new Elasticsearch6SinkBuilder<String>()
          .setDeliveryGuarantee(DeliveryGuarantee.AT_LEAST_ONCE)
          .setHosts(new HttpHost("127.0.0.1", 9200, "http"))
          .setEmitter(
          (element, context, indexer) -> 
          indexer.add(createIndexRequest(element))); 

      IMO, the example in Chinese doc is correct.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ana4 Luning Wang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: