ClickHouse/tests/docker_scripts/setup_hdfs_minicluster.sh

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

22 lines
361 B
Bash
Raw Normal View History

#!/bin/bash
2022-08-26 11:09:42 +00:00
# shellcheck disable=SC2024
set -e -x -a -u
ls -lha
2024-08-09 14:22:33 +00:00
cd /hadoop-3.3.1
export JAVA_HOME=/usr
mkdir -p target/test/data
chown clickhouse ./target/test/data
2024-07-15 11:14:29 +00:00
sudo -E -u clickhouse bin/mapred minicluster -format -nomr -nnport 12222 >> /test_output/hdfs_minicluster.log 2>&1 &
while ! nc -z localhost 12222; do
sleep 1
done
lsof -i :12222
sleep 5