微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

org.apache.hadoop.mapreduce.QueueAclsInfo的实例源码

项目:pentaho-hadoop-shims    文件ConfigurationProxyV2Test.java   
@Test(expected = YarnQueueAclsException.class)
public void testSubmitWhenUserHasnopermissionsToSubmitJobInQueueShouldRaiseYarnQueueAclsException() throws IOException,InterruptedException,ClassNotFoundException{
  Mockito.spy( YarnQueueAclsverifier.class );
  ConfigurationProxyV2 configurationProxyV2 = Mockito.mock( ConfigurationProxyV2.class );
  Cluster cluster = Mockito.mock( Cluster.class );
  Job job = Mockito.mock( Job.class );

  Mockito.when( configurationProxyV2.getJob() ).thenReturn( job );
  Mockito.when( configurationProxyV2.createClusterDescription( Mockito.any( Configuration.class ) ) ).thenReturn( cluster );
  Mockito.when( configurationProxyV2.submit() ).thenCallRealMethod();
  Mockito.when( cluster.getQueueAclsForCurrentUser() ).thenReturn( new QueueAclsInfo[]{
    new QueueAclsInfo( StringUtils.EMPTY,new String[]{
      "ANOTHER_RIGHTS"
    } ),new QueueAclsInfo( StringUtils.EMPTY,new String[]{})
  });

  configurationProxyV2.submit();
}
项目:pentaho-hadoop-shims    文件ConfigurationProxyV2Test.java   
@Test
public void testSubmitWhenUserHasPermissionsToSubmitJobInQueueShouldExecuteSuccessfully() throws IOException,new String[]{
      "SUBMIT_APPLICATIONS"
    } ),new String[]{})
  });

  Assert.assertNotNull( configurationProxyV2.submit() );
}
项目:hadoop    文件ResourceMGrdelegate.java   
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  try {
    return TypeConverter.fromYarnQueueUserAclsInfo(client
      .getQueueAclsInfo());
  } catch (YarnException e) {
    throw new IOException(e);
  }
}
项目:aliyun-oss-hadoop-fs    文件ResourceMGrdelegate.java   
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  try {
    return TypeConverter.fromYarnQueueUserAclsInfo(client
      .getQueueAclsInfo());
  } catch (YarnException e) {
    throw new IOException(e);
  }
}
项目:big-c    文件ResourceMGrdelegate.java   
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  try {
    return TypeConverter.fromYarnQueueUserAclsInfo(client
      .getQueueAclsInfo());
  } catch (YarnException e) {
    throw new IOException(e);
  }
}
项目:hadoop-2.6.0-cdh5.4.3    文件ResourceMGrdelegate.java   
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  try {
    return TypeConverter.fromYarnQueueUserAclsInfo(client
      .getQueueAclsInfo());
  } catch (YarnException e) {
    throw new IOException(e);
  }
}
项目:hadoop-plus    文件ResourceMGrdelegate.java   
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  try {
    return TypeConverter.fromYarnQueueUserAclsInfo(client
      .getQueueAclsInfo());
  } catch (YarnException e) {
    throw new IOException(e);
  }
}
项目:FlexMap    文件ResourceMGrdelegate.java   
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  try {
    return TypeConverter.fromYarnQueueUserAclsInfo(client
      .getQueueAclsInfo());
  } catch (YarnException e) {
    throw new IOException(e);
  }
}
项目:hops    文件ResourceMGrdelegate.java   
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  try {
    return TypeConverter.fromYarnQueueUserAclsInfo(client
      .getQueueAclsInfo());
  } catch (YarnException e) {
    throw new IOException(e);
  }
}
项目:hadoop-TCP    文件ResourceMGrdelegate.java   
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  try {
    return TypeConverter.fromYarnQueueUserAclsInfo(client
      .getQueueAclsInfo());
  } catch (YarnException e) {
    throw new IOException(e);
  }
}
项目:hardfs    文件ResourceMGrdelegate.java   
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  try {
    return TypeConverter.fromYarnQueueUserAclsInfo(client
      .getQueueAclsInfo());
  } catch (YarnException e) {
    throw new IOException(e);
  }
}
项目:hadoop-on-lustre2    文件ResourceMGrdelegate.java   
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  try {
    return TypeConverter.fromYarnQueueUserAclsInfo(client
      .getQueueAclsInfo());
  } catch (YarnException e) {
    throw new IOException(e);
  }
}
项目:pentaho-hadoop-shims    文件YarnQueueAclsverifierTest.java   
@Test
public void testVerifyWhenUserHasnopermissionsForSubmitInAnyQueueShouldReturnFalse() throws Exception {
  assertFalse( YarnQueueAclsverifier.verify( new QueueAclsInfo[] {
    new QueueAclsInfo( StringUtils.EMPTY,new String[] {
      "ANOTHER_RIGHTS"
    } ),new String[] {} )
  } ) );
}
项目:pentaho-hadoop-shims    文件YarnQueueAclsverifierTest.java   
@Test
public void testVerifyWhenUserHasPermissionsForSubmitInAnyQueueShouldReturnTrue() throws Exception {
  assertTrue( YarnQueueAclsverifier.verify( new QueueAclsInfo[] {
    new QueueAclsInfo( StringUtils.EMPTY,new String[] {
      "SUBMIT_APPLICATIONS"
    } ),new String[] {} )
  } ) );
}
项目:incubator-tez    文件ResourceMGrdelegate.java   
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  try {
    return TypeConverter.fromYarnQueueUserAclsInfo(
        client.getQueueAclsInfo());
  } catch (YarnException e) {
    throw new IOException(e);
  }
}
项目:tez    文件ResourceMGrdelegate.java   
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  try {
    return TypeConverter.fromYarnQueueUserAclsInfo(
        client.getQueueAclsInfo());
  } catch (YarnException e) {
    throw new IOException(e);
  }
}
项目:big_data    文件YARNRunner.java   
@Override
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
    return resMGrdelegate.getQueueAclsForCurrentUser();
}
项目:hadoop    文件YARNRunner.java   
@Override
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  return resMGrdelegate.getQueueAclsForCurrentUser();
}
项目:aliyun-oss-hadoop-fs    文件YARNRunner.java   
@Override
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  return resMGrdelegate.getQueueAclsForCurrentUser();
}
项目:big-c    文件YARNRunner.java   
@Override
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  return resMGrdelegate.getQueueAclsForCurrentUser();
}
项目:hadoop-2.6.0-cdh5.4.3    文件YARNRunner.java   
@Override
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  return resMGrdelegate.getQueueAclsForCurrentUser();
}
项目:hadoop-EAR    文件MockSimulatorJobTracker.java   
@Override
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  throw new UnsupportedOperationException();

}
项目:hadoop-plus    文件YARNRunner.java   
@Override
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  return resMGrdelegate.getQueueAclsForCurrentUser();
}
项目:FlexMap    文件YARNRunner.java   
@Override
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  return resMGrdelegate.getQueueAclsForCurrentUser();
}
项目:ignite    文件HadoopClientProtocol.java   
/** {@inheritDoc} */
@Override public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
    return new QueueAclsInfo[0];
}
项目:hops    文件YARNRunner.java   
@Override
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  return resMGrdelegate.getQueueAclsForCurrentUser();
}
项目:hadoop-TCP    文件YARNRunner.java   
@Override
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  return resMGrdelegate.getQueueAclsForCurrentUser();
}
项目:hardfs    文件YARNRunner.java   
@Override
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  return resMGrdelegate.getQueueAclsForCurrentUser();
}
项目:hadoop-on-lustre2    文件YARNRunner.java   
@Override
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  return resMGrdelegate.getQueueAclsForCurrentUser();
}
项目:RDFS    文件MockSimulatorJobTracker.java   
@Override
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  throw new UnsupportedOperationException();

}
项目:pentaho-hadoop-shims    文件YarnQueueAclsverifier.java   
public static boolean verify( QueueAclsInfo[] queueAclsInfos ) throws IOException,InterruptedException {
  return queueAclsInfos != null && Arrays.stream( queueAclsInfos ).map( QueueAclsInfo::getoperations )
    .flatMap( Arrays::stream ).anyMatch( Predicate.isEqual( QueueACL.SUBMIT_APPLICATIONS.toString() ) );
}
项目:incubator-tez    文件YARNRunner.java   
@Override
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  return resMGrdelegate.getQueueAclsForCurrentUser();
}
项目:mapreduce-fork    文件MockSimulatorJobTracker.java   
@Override
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  throw new UnsupportedOperationException();

}
项目:tez    文件YARNRunner.java   
@Override
public QueueAclsInfo[] getQueueAclsForCurrentUser() throws IOException,InterruptedException {
  return resMGrdelegate.getQueueAclsForCurrentUser();
}
项目:hadoop    文件ClientProtocol.java   
/**
 * Gets the Queue ACLs for current user
 * @return array of QueueAclsInfo object for current user.
 * @throws IOException
 */
public QueueAclsInfo[] getQueueAclsForCurrentUser() 
throws IOException,InterruptedException;
项目:aliyun-oss-hadoop-fs    文件ClientProtocol.java   
/**
 * Gets the Queue ACLs for current user
 * @return array of QueueAclsInfo object for current user.
 * @throws IOException
 */
public QueueAclsInfo[] getQueueAclsForCurrentUser() 
throws IOException,InterruptedException;
项目:big-c    文件ClientProtocol.java   
/**
 * Gets the Queue ACLs for current user
 * @return array of QueueAclsInfo object for current user.
 * @throws IOException
 */
public QueueAclsInfo[] getQueueAclsForCurrentUser() 
throws IOException,InterruptedException;
项目:hadoop-2.6.0-cdh5.4.3    文件ClientProtocol.java   
/**
 * Gets the Queue ACLs for current user
 * @return array of QueueAclsInfo object for current user.
 * @throws IOException
 */
public QueueAclsInfo[] getQueueAclsForCurrentUser() 
throws IOException,InterruptedException;
项目:hadoop-plus    文件ClientProtocol.java   
/**
 * Gets the Queue ACLs for current user
 * @return array of QueueAclsInfo object for current user.
 * @throws IOException
 */
public QueueAclsInfo[] getQueueAclsForCurrentUser() 
throws IOException,InterruptedException;
项目:FlexMap    文件ClientProtocol.java   
/**
 * Gets the Queue ACLs for current user
 * @return array of QueueAclsInfo object for current user.
 * @throws IOException
 */
public QueueAclsInfo[] getQueueAclsForCurrentUser() 
throws IOException,InterruptedException;

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。