From d1161ae0ec3aa241fc8bb5912b5c7c5c5832d7af Mon Sep 17 00:00:00 2001 From: Eric Tschetter Date: Fri, 8 Mar 2013 12:41:46 -0600 Subject: [PATCH] 1) Master should create the config table if it's not there. --- server/src/main/java/com/metamx/druid/http/MasterMain.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/src/main/java/com/metamx/druid/http/MasterMain.java b/server/src/main/java/com/metamx/druid/http/MasterMain.java index 32e03e7ba63..5750cc3560a 100644 --- a/server/src/main/java/com/metamx/druid/http/MasterMain.java +++ b/server/src/main/java/com/metamx/druid/http/MasterMain.java @@ -185,8 +185,10 @@ public class MasterMain masterYp ); + final ConfigManagerConfig configManagerConfig = configFactory.build(ConfigManagerConfig.class); + DbConnector.createConfigTable(dbi, configManagerConfig.getConfigTable()); JacksonConfigManager configManager = new JacksonConfigManager( - new ConfigManager(dbi, configFactory.build(ConfigManagerConfig.class)), jsonMapper + new ConfigManager(dbi, configManagerConfig), jsonMapper ); final DruidMaster master = new DruidMaster(