systemd-unit: Change env file name

This commit is contained in:
Björn Busse 2020-11-19 13:58:33 +01:00
parent 25bb24930b
commit d78e4ceffc
2 changed files with 2 additions and 2 deletions

View File

@ -599,7 +599,7 @@ class hbase_exporter():
def hbase_read_write_test(self, zk_server): def hbase_read_write_test(self, zk_server):
table = os.environ["HBASE_TABLE"] table = os.environ['HBASE_TABLE']
key = "0x42devoops".encode('utf-8') key = "0x42devoops".encode('utf-8')
pybase_client = pybase.NewClient(zk_server) pybase_client = pybase.NewClient(zk_server)
cf = "t".encode('utf-8') cf = "t".encode('utf-8')

View File

@ -4,7 +4,7 @@ After=network-online.target
[Service] [Service]
User=hdfs 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} \ ExecStart=/usr/local/bin/hbase-exporter --zookeeper-server-address=${ZOOKEEPER_SERVER_1} \
--zookeeper-server-address=${ZOOKEEPER_SERVER_2} \ --zookeeper-server-address=${ZOOKEEPER_SERVER_2} \
--zookeeper-server-address=${ZOOKEEPER_SERVER_3} \ --zookeeper-server-address=${ZOOKEEPER_SERVER_3} \