Class ElasticsearchIOITCommon
java.lang.Object
org.apache.beam.sdk.io.elasticsearch.ElasticsearchIOITCommon
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.)
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
Pipeline options for elasticsearch tests. -
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
ElasticsearchIOITCommon
public ElasticsearchIOITCommon()
-
-
Method Details
-
main
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
-