3 # Push data from Cassandra ".dat" files
4 # These are obtained from "gzipped" files, or pre-placed (i.e. initialization)
5 # in the "dats" directory
7 DIR=/opt/app/aaf/cass_init
10 if [ -e dat.gz ]; then
13 echo "No Data to push for Cassandra"
18 for T in $(ls *.dat); do
20 cqlsh -e "use authz; COPY ${T%.dat} FROM '$T' WITH DELIMITER='|';"