OpenTSDB should create its schema on start up

This commit is contained in:
Oliver Charles 2014-11-20 15:27:06 +00:00
parent 5c670c81d5
commit ced9e83732

View File

@ -74,6 +74,11 @@ in {
environment.JAVA_HOME = "${pkgs.jre}";
path = [ pkgs.gnuplot ];
preStart =
''
COMPRESSION=NONE HBASE_HOME=${config.services.hbase.package} ${cfg.package}/share/opentsdb/tools/create_table.sh
'';
serviceConfig = {
PermissionsStartOnly = true;
User = cfg.user;