mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-15 10:52:30 +00:00
21 lines
290 B
Bash
21 lines
290 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
set -e -x -a -u
|
||
|
|
||
|
ls -lha
|
||
|
|
||
|
cd hadoop-3.3.1
|
||
|
|
||
|
export JAVA_HOME=/usr
|
||
|
mkdir -p target/test/data
|
||
|
chown clickhouse ./target/test/data
|
||
|
sudo -E -u clickhouse bin/mapred minicluster -format -nomr -nnport 12222 &
|
||
|
|
||
|
while ! nc -z localhost 12222; do
|
||
|
sleep 1
|
||
|
done
|
||
|
|
||
|
lsof -i :12222
|
||
|
|
||
|
sleep 5
|