From d78e4ceffc0c6ff000405754f10533e763c8d920 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Busse?= Date: Thu, 19 Nov 2020 13:58:33 +0100 Subject: [PATCH] systemd-unit: Change env file name --- hbase-exporter | 2 +- hbase-exporter.service | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-exporter b/hbase-exporter index 1c7c3d2..58a95f7 100755 --- a/hbase-exporter +++ b/hbase-exporter @@ -599,7 +599,7 @@ class hbase_exporter(): def hbase_read_write_test(self, zk_server): - table = os.environ["HBASE_TABLE"] + table = os.environ['HBASE_TABLE'] key = "0x42devoops".encode('utf-8') pybase_client = pybase.NewClient(zk_server) cf = "t".encode('utf-8') diff --git a/hbase-exporter.service b/hbase-exporter.service index 7f2b60e..66443a3 100644 --- a/hbase-exporter.service +++ b/hbase-exporter.service @@ -4,7 +4,7 @@ After=network-online.target [Service] User=hdfs -EnvironmentFile=/etc/env-hbase-exporter +EnvironmentFile=/etc/systemd-env-hbase-exporter ExecStart=/usr/local/bin/hbase-exporter --zookeeper-server-address=${ZOOKEEPER_SERVER_1} \ --zookeeper-server-address=${ZOOKEEPER_SERVER_2} \ --zookeeper-server-address=${ZOOKEEPER_SERVER_3} \