hbase-setup: Adjust config
This commit is contained in:
parent
3e5fe8e9cb
commit
f9b1926a74
3 changed files with 7 additions and 25 deletions
|
@ -1,22 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
setup() {
|
||||
cd ../
|
||||
./hbase-exporter --zookeeper-server ${ZK_SERVER:-"127.0.0.1:2181"} 2>&1 > /dev/null &
|
||||
PID=$!
|
||||
sleep 5
|
||||
}
|
||||
|
||||
test_hbase_exporter_up() {
|
||||
nc -znu -w1 ${1:-"127.0.0.1"} ${2:-"9010"}
|
||||
curl -s http://127.0.0.1:9010
|
||||
}
|
||||
|
||||
test_hbase_exporter_zk_connection() {
|
||||
r=$(curl -s http://127.0.0.1:9010 | grep '^zookeeper_num_live' | cut -d " " -f2)
|
||||
assert_not_equals "0.0" "$r" "Zookeeper not live"
|
||||
}
|
||||
|
||||
teardown() {
|
||||
kill "$PID"
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue