@Test void metaStoreClientSupplier() { CloseableMetaStoreClientFactory metaStoreClientFactory = commonBeans.metaStoreClientFactory(); HiveConf hiveConf = commonBeans.hiveConf(metastoreUri); Supplier<CloseableMetaStoreClient> closeableMetaStoreClientSupplier = commonBeans.metaStoreClientSupplier( metaStoreClientFactory, hiveConf); HiveMetaStoreClientSupplier hiveMetaStoreClientSupplier = new HiveMetaStoreClientSupplier(metaStoreClientFactory, hiveConf, "beekeeper-vacuum-tool"); assertThat(closeableMetaStoreClientSupplier).isEqualToComparingFieldByField(hiveMetaStoreClientSupplier); }
@Bean Supplier<CloseableMetaStoreClient> metaStoreClientSupplier( CloseableMetaStoreClientFactory metaStoreClientFactory, HiveConf hiveConf) { String name = "beekeeper-vacuum-tool"; return new HiveMetaStoreClientSupplier(metaStoreClientFactory, hiveConf, name); }
CommonBeans { @Bean Supplier<CloseableMetaStoreClient> metaStoreClientSupplier( CloseableMetaStoreClientFactory metaStoreClientFactory, HiveConf hiveConf) { String name = "beekeeper-vacuum-tool"; return new HiveMetaStoreClientSupplier(metaStoreClientFactory, hiveConf, name); } }
CommonBeans { @Bean Supplier<CloseableMetaStoreClient> metaStoreClientSupplier( CloseableMetaStoreClientFactory metaStoreClientFactory, HiveConf hiveConf) { String name = "beekeeper-vacuum-tool"; return new HiveMetaStoreClientSupplier(metaStoreClientFactory, hiveConf, name); }  }
CommonBeans { @Bean Supplier<CloseableMetaStoreClient> metaStoreClientSupplier( CloseableMetaStoreClientFactory metaStoreClientFactory, HiveConf hiveConf) { String name = "beekeeper-vacuum-tool"; return new HiveMetaStoreClientSupplier(metaStoreClientFactory, hiveConf, name); }  @Bean EC2ContainerCredentialsProviderWrapper ec2ContainerCredentialsProviderWrapper(); @Bean HiveConf hiveConf(@Value("${metastore-uri}") String metastoreUri); @Bean CloseableMetaStoreClientFactory metaStoreClientFactory(); @Bean SchedulerService schedulerService(BeekeeperRepository beekeeperRepository); }
CommonBeans { @Bean Supplier<CloseableMetaStoreClient> metaStoreClientSupplier( CloseableMetaStoreClientFactory metaStoreClientFactory, HiveConf hiveConf) { String name = "beekeeper-vacuum-tool"; return new HiveMetaStoreClientSupplier(metaStoreClientFactory, hiveConf, name); }  @Bean EC2ContainerCredentialsProviderWrapper ec2ContainerCredentialsProviderWrapper(); @Bean HiveConf hiveConf(@Value("${metastore-uri}") String metastoreUri); @Bean CloseableMetaStoreClientFactory metaStoreClientFactory(); @Bean SchedulerService schedulerService(BeekeeperRepository beekeeperRepository);  }