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} \