Skip to content

move shell scripts to examples/ folder #49

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 4, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/bash
# download airline.ontime test dataset

ZIP_FILES_DIR="zip"
CSV_FILES_DIR="csv"
ZIP_FILES_DIR=$(pwd)"/zip"
CSV_FILES_DIR=$(pwd)"/csv"

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

echo "Create dir $ZIP_FILES_DIR for downloading zip files"
mkdir "$ZIP_FILES_DIR"
mkdir -p "$ZIP_FILES_DIR"

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

echo "Unzip dataset"

mkdir "$CSV_FILES_DIR"
mkdir -p "$CSV_FILES_DIR"

if [ ! -d "$CSV_FILES_DIR" ]; then
"Can' use dir: $CSV_FILES_DIR - not available"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ sudo bash -c "echo 1 > /proc/sys/net/ipv4/tcp_tw_reuse"
PYTHON=python3.6
PYTHON=/home/user/pypy3.5-5.9-beta-linux_x86_64-portable/bin/pypy

$PYTHON clickhouse-mysql ${*:1} \
$PYTHON ../clickhouse-mysql ${*:1} \
--src-resume \
--src-wait \
--nice-pause=1 \
Expand Down
2 changes: 1 addition & 1 deletion run_datatypes.sh → examples/run_datatypes.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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

python3 clickhouse-mysql ${*:1} \
python3 ../clickhouse-mysql ${*:1} \
--src-resume \
--src-wait \
--src-host=127.0.0.1 \
Expand Down