@Test void hiveConf() { HiveConf hiveConf = commonBeans.hiveConf(metastoreUri); assertThat(hiveConf.get(HiveConf.ConfVars.METASTOREURIS.varname)).isEqualTo(metastoreUri); assertThat(hiveConf.get("fs.s3.impl")).isEqualTo(S3AFileSystem.class.getName()); assertThat(hiveConf.get("fs.s3.aws.credentials.provider")).isEqualTo( EC2ContainerCredentialsProviderWrapper.class.getName()); }
@Bean public HiveConf hiveConf(@Value("${metastore-uri}") String metastoreUri) { HiveConf conf = new HiveConf(); conf.setVar(HiveConf.ConfVars.METASTOREURIS, metastoreUri); conf.set("fs.s3.impl", S3AFileSystem.class.getName()); conf.set("fs.s3a.impl", S3AFileSystem.class.getName()); conf.set("fs.s3n.impl", S3AFileSystem.class.getName()); conf.set("fs.s3.aws.credentials.provider", EC2ContainerCredentialsProviderWrapper.class.getName()); conf.set("fs.s3a.aws.credentials.provider", EC2ContainerCredentialsProviderWrapper.class.getName()); conf.set("fs.s3n.aws.credentials.provider", EC2ContainerCredentialsProviderWrapper.class.getName()); return conf; }
CommonBeans { @Bean public HiveConf hiveConf(@Value("${metastore-uri}") String metastoreUri) { HiveConf conf = new HiveConf(); conf.setVar(HiveConf.ConfVars.METASTOREURIS, metastoreUri); conf.set("fs.s3.impl", S3AFileSystem.class.getName()); conf.set("fs.s3a.impl", S3AFileSystem.class.getName()); conf.set("fs.s3n.impl", S3AFileSystem.class.getName()); conf.set("fs.s3.aws.credentials.provider", EC2ContainerCredentialsProviderWrapper.class.getName()); conf.set("fs.s3a.aws.credentials.provider", EC2ContainerCredentialsProviderWrapper.class.getName()); conf.set("fs.s3n.aws.credentials.provider", EC2ContainerCredentialsProviderWrapper.class.getName()); return conf; } }
CommonBeans { @Bean public HiveConf hiveConf(@Value("${metastore-uri}") String metastoreUri) { HiveConf conf = new HiveConf(); conf.setVar(HiveConf.ConfVars.METASTOREURIS, metastoreUri); conf.set("fs.s3.impl", S3AFileSystem.class.getName()); conf.set("fs.s3a.impl", S3AFileSystem.class.getName()); conf.set("fs.s3n.impl", S3AFileSystem.class.getName()); conf.set("fs.s3.aws.credentials.provider", EC2ContainerCredentialsProviderWrapper.class.getName()); conf.set("fs.s3a.aws.credentials.provider", EC2ContainerCredentialsProviderWrapper.class.getName()); conf.set("fs.s3n.aws.credentials.provider", EC2ContainerCredentialsProviderWrapper.class.getName()); return conf; }  }
CommonBeans { @Bean public HiveConf hiveConf(@Value("${metastore-uri}") String metastoreUri) { HiveConf conf = new HiveConf(); conf.setVar(HiveConf.ConfVars.METASTOREURIS, metastoreUri); conf.set("fs.s3.impl", S3AFileSystem.class.getName()); conf.set("fs.s3a.impl", S3AFileSystem.class.getName()); conf.set("fs.s3n.impl", S3AFileSystem.class.getName()); conf.set("fs.s3.aws.credentials.provider", EC2ContainerCredentialsProviderWrapper.class.getName()); conf.set("fs.s3a.aws.credentials.provider", EC2ContainerCredentialsProviderWrapper.class.getName()); conf.set("fs.s3n.aws.credentials.provider", EC2ContainerCredentialsProviderWrapper.class.getName()); return conf; }  @Bean EC2ContainerCredentialsProviderWrapper ec2ContainerCredentialsProviderWrapper(); @Bean HiveConf hiveConf(@Value("${metastore-uri}") String metastoreUri); @Bean CloseableMetaStoreClientFactory metaStoreClientFactory(); @Bean SchedulerService schedulerService(BeekeeperRepository beekeeperRepository); }
CommonBeans { @Bean public HiveConf hiveConf(@Value("${metastore-uri}") String metastoreUri) { HiveConf conf = new HiveConf(); conf.setVar(HiveConf.ConfVars.METASTOREURIS, metastoreUri); conf.set("fs.s3.impl", S3AFileSystem.class.getName()); conf.set("fs.s3a.impl", S3AFileSystem.class.getName()); conf.set("fs.s3n.impl", S3AFileSystem.class.getName()); conf.set("fs.s3.aws.credentials.provider", EC2ContainerCredentialsProviderWrapper.class.getName()); conf.set("fs.s3a.aws.credentials.provider", EC2ContainerCredentialsProviderWrapper.class.getName()); conf.set("fs.s3n.aws.credentials.provider", EC2ContainerCredentialsProviderWrapper.class.getName()); return conf; }  @Bean EC2ContainerCredentialsProviderWrapper ec2ContainerCredentialsProviderWrapper(); @Bean HiveConf hiveConf(@Value("${metastore-uri}") String metastoreUri); @Bean CloseableMetaStoreClientFactory metaStoreClientFactory(); @Bean SchedulerService schedulerService(BeekeeperRepository beekeeperRepository);  }