git clone https://github.com/taosdata/subscribeDemo-java.git
cd subscribeDemo-java
./package
tar -xvf subscribeDemo-java-20230307.tar
cd subscribeDemo-java
bin/start.sh
edit the config/application.yml
and consumer.properties
to change the configuration
- add parameter
subscriber.concurrency
: int, the number of threads to consume data, default is 1 #TD-4684
- deserializer parameter
deserializer.calculate.latency
: boolean, whether to calculate latency, default is false#TS-3783
- deserializer parameter
deserializer.binary.as.string
: boolean, whether to output binary data as string, default is true
- parameter
record-formatter.with-partition-offset
: boolean, output 'dbName, topic, vGroupId, offset' when this parameter is true - parameter
subscriber.print-data-in-log
: boolean, print the data consumed in log when this parameter is true - parameter
subscriber.print-offset-in-log
: boolean, print the offset consumed in log when this parameter is true - parameter
subscriber.commit-after-poll
: boolean, commit the offset after poll when this parameter is true - parameter
subscriber.seek-to.offsets
: seek to the specified offset after consumer.subscribe() called - print all configurations on when log level is debug
- fix: no test cases run, use junit5 instead of junit4
- use fastjson-2.0.34 instead of fastjson-2.0.33
- use taos-jdbcdriver-3.2.4 instead of taos-jdbcdriver-3.1.0
- remove byte-buddy library
- Deprecated schema.txt, deprecated Class generation using bytebuddy library
- parameter
record-formatter.type
: Support json, csv, kv (key value) three formats, output format, default is kv - parameter
record-formatter.csv.delimiter
: char, the csv separator, default is '\t' - parameter
record-formatter.csv.with-title
: boolean, whether to output a title, default is false