Class ElasticsearchIOITCommon

java.lang.Object
org.apache.beam.sdk.io.elasticsearch.ElasticsearchIOITCommon

public class ElasticsearchIOITCommon extends Object
Manipulates test data used by the ElasticsearchIO integration tests.

This is independent from the tests so that for read tests it can be run separately after data store creation rather than every time (which can be more fragile.)

  • Constructor Details

    • ElasticsearchIOITCommon

      public ElasticsearchIOITCommon()
  • Method Details

    • main

      public static void main(String[] args) throws Exception
      Use this to create the index for reading before IT read tests.

      To invoke this class, you can use this command line from elasticsearch-tests-common module directory after setting the correct server IP:

       mvn test-compile exec:java \
       -Dexec.mainClass=org.apache.beam.sdk.io.elasticsearch.ElasticsearchIOITCommon \
       -Dexec.args="--elasticsearchServer=127.0.0.1 \
       --elasticsearchHttpPort=9200" \
       -Dexec.classpathScope=test
         
      Parameters:
      args - Please pass options from ElasticsearchTestOptions used for connection to Elasticsearch as shown above.
      Throws:
      Exception