-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9305660
commit df2605e
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
targetdir=/mnt/volume_sfo3_01/dataset | ||
|
||
# loop using array | ||
array=( customer lineitem nation orders part partsupp region supplier ) | ||
for i in "${array[@]}" | ||
do | ||
echo "Compressing ${i}.tbl ..." | ||
gzip /mnt/volume_sfo3_01/dataset/${i}.tbl | ||
echo "Copying ${i}.tbl.gz ..." | ||
aws s3 cp ${targetdir}/${i}.tbl.gz s3://datasleek-datasets/tpch100/${i}.tbl.gz | ||
done | ||
|
||
# loop using array | ||
|
||
array=( customer lineitem nation orders part partsupp region supplier ) | ||
for i in "${array[@]}" | ||
do | ||
|
||
echo "Copying ${i}.tbl.gz ..." | ||
aws s3 cp s3://datasleek-datasets/tpch100/${i}.tbl.gz ${targetdir}/ | ||
echo "Unzip ${i}.tbl.gz ..." | ||
gunzip /mnt/volume_sfo3_01/dataset/${i}.tbl.gz | ||
done | ||
|
||
|
||
|
||
|