Skip to content

Latest commit

 

History

History
19 lines (17 loc) · 916 Bytes

README.md

File metadata and controls

19 lines (17 loc) · 916 Bytes

A small program to load JSON files generated by socialGen into Couchbase.

After building the project with mvn package a package (*-binary-assembly*) is available in the target directory. The binary package contains a bash script loader.sh that can be used to load the data into Couchbase. Run the script without arguments to see the parameters:

$ ./target/loader-1.0-SNAPSHOT-binary-assembly/bin/loader.sh
no arguments
Parameters: [options] <filename>
Options:
  -l <num>        (limit - number of records to load)
  -b <bucketname> (default: "default")
  -f              (flush bucket before loading)
  -h <host>       (default: "localhost")
  -k <fieldname>  (key field, can occur more than once, first match is chosen)
  -u <username>   (admin user)
  -p <password>   (admin password)