简体   繁体   中英

Location of driver.conf used for DSBULK to load data into Cassandra

I am using a configuration file as below to load data in Cassandra using DSBULK

include classpath("driver.conf")
dsbulk.connector.name="csv"
dsbulk.connector.csv.url="/my/datafile/"
dsbulk.connector.csv.delimiter=","
dsbulk.schema.keyspace="rajibks"
dsbulk.schema.table="rajibtable"

I wrote a python program to execute DSBULK using the above configuration. I noticed that i need to keep the dsbulk.conf in the DSBULK conf folder for the program to work. How do I specify a different location for the driver.conf file?

You can use -f command-line switch to specify location of the configuration file (see doc ). Location of driver.conf will be relative to this file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM