Skip to content

Commit cee0e14

Browse files
authored
Merge pull request #49 from sunsingerus/master
move shell scripts to examples/ folder
2 parents 366450d + b5146b6 commit cee0e14

5 files changed

+6
-6
lines changed

run_airline_ontime_data_download.sh renamed to examples/run_airline_ontime_data_download.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
#!/bin/bash
22
# download airline.ontime test dataset
33

4-
ZIP_FILES_DIR="zip"
5-
CSV_FILES_DIR="csv"
4+
ZIP_FILES_DIR=$(pwd)"/zip"
5+
CSV_FILES_DIR=$(pwd)"/csv"
66

77
echo "Check required commands availability"
88
if command -v wget && command -v unzip && command -v clickhouse-client && command -v wc && command -v awk; then
@@ -15,7 +15,7 @@ fi
1515
echo "Download dataset"
1616

1717
echo "Create dir $ZIP_FILES_DIR for downloading zip files"
18-
mkdir "$ZIP_FILES_DIR"
18+
mkdir -p "$ZIP_FILES_DIR"
1919

2020
if [ ! -d "$ZIP_FILES_DIR" ]; then
2121
"Can' use dir: $ZIP_FILES_DIR - not available"
@@ -32,7 +32,7 @@ done
3232

3333
echo "Unzip dataset"
3434

35-
mkdir "$CSV_FILES_DIR"
35+
mkdir -p "$CSV_FILES_DIR"
3636

3737
if [ ! -d "$CSV_FILES_DIR" ]; then
3838
"Can' use dir: $CSV_FILES_DIR - not available"

run_airline_ontime_data_mysql_to_ch_reader.sh renamed to examples/run_airline_ontime_data_mysql_to_ch_reader.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ sudo bash -c "echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse"
99
PYTHON=python3.6
1010
PYTHON=/home/user/pypy3.5-5.9-beta-linux_x86_64-portable/bin/pypy
1111

12-
$PYTHON clickhouse-mysql ${*:1} \
12+
$PYTHON ../clickhouse-mysql ${*:1} \
1313
--src-resume \
1414
--src-wait \
1515
--nice-pause=1 \

run_datatypes.sh renamed to examples/run_datatypes.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
sudo bash -c "echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse"
44

5-
python3 clickhouse-mysql ${*:1} \
5+
python3 ../clickhouse-mysql ${*:1} \
66
--src-resume \
77
--src-wait \
88
--src-host=127.0.0.1 \

0 commit comments

Comments
 (0)