Skip to content

Commit 4e13df7

Browse files
committed
Move some code around (minor changes)
1 parent 8d7d54e commit 4e13df7

3 files changed

Lines changed: 5 additions & 12 deletions

File tree

starrocks/drop_table.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,4 @@ DB_NAME="$1"
1212
TABLE_NAME="$2"
1313

1414
echo "Dropping table: $DB_NAME.$TABLE_NAME"
15-
1615
mysql -P "$DB_MYSQL_PORT" -h "$DB_HOST" -u "$DB_USER" "$DB_NAME" -e "DROP TABLE IF EXISTS $TABLE_NAME"

starrocks/env.sh

Lines changed: 0 additions & 10 deletions
This file was deleted.

starrocks/main.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ ERROR_LOG="${4:-error.log}"
1818
# Define prefix for output files
1919
OUTPUT_PREFIX="${5:-_m6i.8xlarge}"
2020

21+
export DB_HOST="127.0.0.1"
22+
export DB_USER="root"
23+
export DB_MYSQL_PORT="9030"
24+
export DB_HTTP_PORT="8030" # HTTP endpoint for stream load
25+
2126
# Check if the directory exists
2227
if [[ ! -d "$DATA_DIRECTORY" ]]; then
2328
echo "Error: Data directory '$DATA_DIRECTORY' does not exist."
@@ -34,7 +39,6 @@ if [ "$CHOICE" = "ask" ]; then
3439
read -p "Enter the number corresponding to your choice: " CHOICE
3540
fi;
3641

37-
./env.sh
3842
./install.sh
3943

4044
benchmark() {

0 commit comments

Comments
 (0)