public class ElasticsearchIOITCommon
extends java.lang.Object
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.)
Modifier and Type | Class and Description |
---|---|
static interface |
ElasticsearchIOITCommon.ElasticsearchPipelineOptions
Pipeline options for elasticsearch tests.
|
Constructor and Description |
---|
ElasticsearchIOITCommon() |
Modifier and Type | Method and Description |
---|---|
static void |
main(java.lang.String[] args)
Use this to create the index for reading before IT read tests.
|
public static void main(java.lang.String[] args) throws java.lang.Exception
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
args
- Please pass options from ElasticsearchTestOptions used for connection to
Elasticsearch as shown above.java.lang.Exception