hiveConnectionFactory.init(); hmsFollower = new HMSFollower(conf, sentryStore, leaderMonitor, hiveConnectionFactory); long initDelay = conf.getLong(ServerConfig.SENTRY_HMSFOLLOWER_INIT_DELAY_MILLS,
@BeforeClass public static void setup() throws IOException, LoginException { configuration.set(ServerConfig.PRINCIPAL, "sentry/_HOST@TEST.COM"); hiveConnectionFactory = new HiveSimpleConnectionFactory(configuration, new HiveConf()); hiveConnectionFactory.init(); configuration.set("sentry.hive.sync.create", "true"); configuration.set(SENTRY_SERVICE_FULL_UPDATE_PUBSUB, "true"); enableHdfsSyncInSentry(configuration); }