Skip to content

Commit f4cdfb5

Browse files
committed
updated opentsdb_list_metrics_hbase.sh
1 parent 6d51e10 commit f4cdfb5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

opentsdb_list_metrics_hbase.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ done
7373

7474
check_bin(){
7575
local bin="$1"
76-
if ! type -P $bin &>/dev/null; then
76+
if ! type -P "$bin" &>/dev/null; then
7777
echo "'$bin' command not found in \$PATH ($PATH)"
7878
exit 1
7979
fi
@@ -106,6 +106,7 @@ for line in sys.stdin:
106106
# ts = metrics[metric]
107107
print("{}\t{}\t{}".format(ts, time.strftime("%F %T", time.localtime(int(ts)/1000)), metric))
108108
EOF
109+
# shellcheck disable=SC2064
109110
trap "rm '$tmp_python_script'" EXIT
110111

111112
hbase shell <<< "scan 'tsdb-uid', { COLUMNS => 'name:$metrics', VERSIONS => 1 }" 2>/dev/null |

0 commit comments

Comments
 (0)