Skip to content

Commit 587aa89

Browse files
committed
docs: add command line run to examples/README.md
1 parent 748ad64 commit 587aa89

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

examples/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,20 @@ The underlying write (HTTP/REST) and query (Apache arrow Flight/GRPC) transports
4040
- [DurableExample](src/main/java/com/influxdb/v3/durable/DurableExample.java)
4141
- [InfluxClientPool](src/main/java/com/influxdb/v3/durable/InfluxClientPool.java)
4242

43+
### Command line run
44+
45+
- Set environment variables
46+
47+
```bash
48+
49+
export INFLUX_HOST=<INFLUX_HOST_URL>
50+
export INFLUX_TOKEN=<ORGANIZATION_TOKEN>
51+
export INFLUX_DATABASE=<TARGET_DATABASE>
52+
53+
```
54+
55+
- Run with maven
56+
57+
```bash
58+
$ MAVEN_OPTS="--add-opens=java.base/java.nio=org.apache.arrow.memory.core,ALL-UNNAMED" mvn compile exec:java -Dexec.main="com.influxdb.v3.durable.DurableExample"
59+
```

0 commit comments

Comments
 (0)