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

Fix sample code errors in the documentation about elasticsearch connector

    XMLWordPrintableJSON

Details

    Description

      When I refer to the document for coding, I find that there is an error demonstration in scala code in the Elasticsearch connector section of the Flink document.

      esSinkBuilder.setRestClientFactory(
        restClientBuilder -> {
          restClientBuilder.setDefaultHeaders(...)
          restClientBuilder.setMaxRetryTimeoutMillis(...)
          restClientBuilder.setPathPrefix(...)
          restClientBuilder.setHttpClientConfigCallback(...)
        }
      )
      

      After modification.

      esSinkBuilder.setRestClientFactory(new RestClientFactory {
        override def configureRestClientBuilder(restClientBuilder: RestClientBuilder): Unit = {
             restClientBuilder.setDefaultHeaders(...)
             restClientBuilder.setMaxRetryTimeoutMillis(...)
             restClientBuilder.setPathPrefix(...)
             restClientBuilder.setHttpClientConfigCallback(...)
        }
      })
      

      Attachments

        Issue Links

          Activity

            People

              sev7e0 Jiaqi Li
              sev7e0 Jiaqi Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 20m
                  20m