-
Notifications
You must be signed in to change notification settings - Fork 5
ODVS Generator Driver
Ashrith Mekala edited this page May 9, 2015
·
4 revisions
ODVS Generator Driver command line interface
bin/generator odvs --help
OnDemand Video Service Analytics
Usage: generator [options]
-e <value> | --eventsPerSec <value>
number of events to generate per sec, use this to throttle the generator
-o <value> | --outputFormat <value>
format of the string to write to the file defaults to: 'tsv'
where,
tsv - string formatted by tabs in between columns
csv - string formatted by commas in between columns
avro - string formatted using avro serialization
-r <value> | --fileRollSize <value>
size of the file to rollin bytes, defaults to: Int.MaxValue (~2GB)
-p <value> | --filePath <value>
path of the file where the data should be generated, defaults to: '/tmp'
-t <value> | --totalEvents <value>
total number of events to generate, default: 1000
-c <value> | --customersDataSetSize <value>
total number of customers data set to build, default: 100000L
-m | --multiTable
generate data as multi tables format, default: false
-d | --dumpCustomers
whether to dump customers to a file
-b <value> | --flushBatch <value>
number of events to flush to file at a single time, defaults to: 10000
--threadsCount <value>
number of threads to use for write and read operations, defaults to: 1
--threadPoolSize <value>
size of the thread pool, defaults to: 10
--loggingLevel <value>
Logging level to set, defaults to: INFO
--help
prints this usage text
Examples:
-
To generate
100000
events to/tmp
bin/generator odvs --totalEvents 100000 --filePath /tmp
-
To generate
100000
events to/tmp
in multi table mode (generates to multiple tables/files)bin/generator odvs --totalEvents 100000 --filePath /tmp --multiTable
-
To generate
100M
events to/tmp
and roll file every 64 MBbin/generator odvs --totalEvents 100000000 --filePath /tmp --fileRollSize 67108864
-
To generate
100M
events to/tmp/
concurrently using 5 threadsbin/generator odvs --totalEvents 100000000 --filePath /tmp --fileRollSize 67108864 --threadCount 5
-
To generate
100M
events to/tmp/
concurrently using 5 threads and customer data set size of 100Mbin/generator odvs --totalEvents 100000000 --filePath /tmp --fileRollSize 67108864 --threadCount 5 --customersDataSetSize 100000000
-
To generate
100M
events to/tmp/
concurrently using 5 threads in 'csv' formatbin/generator odvs --totalEvents 100000000 --filePath /tmp --fileRollSize 67108864 --threadCount 5 --outputFormat csv
-
To generate
100M
events to/tmp/
concurrently using 5 threads in 'avro' formatbin/generator odvs --totalEvents 100000000 --filePath /tmp --fileRollSize 67108864 --threadCount 5 --outputFormat avro