private static ResourceManager resourceManager;
private static Configuration conf;
@BeforeClass
public static void setUpResourceManager()
throws IOException, InterruptedException {
<BUG>conf = new YarnConfiguration();
resourceManager = new ResourceManager() {</BUG>
@Override
protected void doSecureLogin() throws IOException {
}

private static ResourceManager resourceManager;
private static Configuration conf;
@BeforeClass
public static void setUpResourceManager()
throws IOException, InterruptedException {
conf = new YarnConfiguration();
YarnAPIStorageFactory.setConfiguration(conf);
RMStorageFactory.setConfiguration(conf);
RMUtilities.InitializeDB();
resourceManager = new ResourceManager() {
@Override
protected void doSecureLogin() throws IOException {
}
