예제 #1
0
func CreateAMRMClient(conf yarn_conf.YarnConfiguration, applicationAttemptId *hadoop_yarn.ApplicationAttemptIdProto) (*AMRMClient, error) {
	c, err := hadoop_yarn.DialApplicationMasterProtocolService(conf)
	return &AMRMClient{applicationAttemptId: applicationAttemptId, client: c}, err
}
예제 #2
0
func CreateAMRMClient(conf yarn_conf.YarnConfiguration) (*AMRMClient, error) {
	c, err := hadoop_yarn.DialApplicationMasterProtocolService(conf)
	return &AMRMClient{client: c, conf: conf}, err
}