MAPREDUCE-4938. Merging change 1433227 from trunk to branch-2.
git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-2@1433230 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
d7079f1429
commit
1b410df23f
|
@ -7,6 +7,9 @@ Release 2.0.3-alpha - Unreleased
|
||||||
MAPREDUCE-4123. Remove the 'mapred groups' command, which is no longer
|
MAPREDUCE-4123. Remove the 'mapred groups' command, which is no longer
|
||||||
supported. (Devaraj K via sseth)
|
supported. (Devaraj K via sseth)
|
||||||
|
|
||||||
|
MAPREDUCE-4938. Use token request messages defined in hadoop common.
|
||||||
|
(suresh)
|
||||||
|
|
||||||
NEW FEATURES
|
NEW FEATURES
|
||||||
|
|
||||||
MAPREDUCE-4520. Added support for MapReduce applications to request for
|
MAPREDUCE-4520. Added support for MapReduce applications to request for
|
||||||
|
|
|
@ -82,10 +82,8 @@ import org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb.KillTaskReques
|
||||||
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb.KillTaskResponsePBImpl;
|
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb.KillTaskResponsePBImpl;
|
||||||
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb.RenewDelegationTokenRequestPBImpl;
|
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb.RenewDelegationTokenRequestPBImpl;
|
||||||
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb.RenewDelegationTokenResponsePBImpl;
|
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb.RenewDelegationTokenResponsePBImpl;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.CancelDelegationTokenRequestProto;
|
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.FailTaskAttemptRequestProto;
|
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.FailTaskAttemptRequestProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetCountersRequestProto;
|
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetCountersRequestProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetDelegationTokenRequestProto;
|
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetDiagnosticsRequestProto;
|
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetDiagnosticsRequestProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetJobReportRequestProto;
|
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetJobReportRequestProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetTaskAttemptCompletionEventsRequestProto;
|
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetTaskAttemptCompletionEventsRequestProto;
|
||||||
|
@ -95,7 +93,9 @@ import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetTaskReportsReques
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.KillJobRequestProto;
|
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.KillJobRequestProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.KillTaskAttemptRequestProto;
|
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.KillTaskAttemptRequestProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.KillTaskRequestProto;
|
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.KillTaskRequestProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.RenewDelegationTokenRequestProto;
|
import org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto;
|
||||||
|
import org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto;
|
||||||
|
import org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto;
|
||||||
import org.apache.hadoop.yarn.exceptions.YarnRemoteException;
|
import org.apache.hadoop.yarn.exceptions.YarnRemoteException;
|
||||||
import org.apache.hadoop.yarn.exceptions.impl.pb.YarnRemoteExceptionPBImpl;
|
import org.apache.hadoop.yarn.exceptions.impl.pb.YarnRemoteExceptionPBImpl;
|
||||||
|
|
||||||
|
@ -109,8 +109,7 @@ public class MRClientProtocolPBClientImpl implements MRClientProtocol {
|
||||||
|
|
||||||
public MRClientProtocolPBClientImpl(long clientVersion, InetSocketAddress addr, Configuration conf) throws IOException {
|
public MRClientProtocolPBClientImpl(long clientVersion, InetSocketAddress addr, Configuration conf) throws IOException {
|
||||||
RPC.setProtocolEngine(conf, MRClientProtocolPB.class, ProtobufRpcEngine.class);
|
RPC.setProtocolEngine(conf, MRClientProtocolPB.class, ProtobufRpcEngine.class);
|
||||||
proxy = (MRClientProtocolPB)RPC.getProxy(
|
proxy = RPC.getProxy(MRClientProtocolPB.class, clientVersion, addr, conf);
|
||||||
MRClientProtocolPB.class, clientVersion, addr, conf);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -73,14 +73,10 @@ import org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb.KillTaskReques
|
||||||
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb.KillTaskResponsePBImpl;
|
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb.KillTaskResponsePBImpl;
|
||||||
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb.RenewDelegationTokenRequestPBImpl;
|
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb.RenewDelegationTokenRequestPBImpl;
|
||||||
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb.RenewDelegationTokenResponsePBImpl;
|
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb.RenewDelegationTokenResponsePBImpl;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.CancelDelegationTokenRequestProto;
|
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.CancelDelegationTokenResponseProto;
|
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.FailTaskAttemptRequestProto;
|
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.FailTaskAttemptRequestProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.FailTaskAttemptResponseProto;
|
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.FailTaskAttemptResponseProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetCountersRequestProto;
|
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetCountersRequestProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetCountersResponseProto;
|
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetCountersResponseProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetDelegationTokenRequestProto;
|
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetDelegationTokenResponseProto;
|
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetDiagnosticsRequestProto;
|
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetDiagnosticsRequestProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetDiagnosticsResponseProto;
|
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetDiagnosticsResponseProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetJobReportRequestProto;
|
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetJobReportRequestProto;
|
||||||
|
@ -99,8 +95,12 @@ import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.KillTaskAttemptReque
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.KillTaskAttemptResponseProto;
|
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.KillTaskAttemptResponseProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.KillTaskRequestProto;
|
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.KillTaskRequestProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.KillTaskResponseProto;
|
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.KillTaskResponseProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.RenewDelegationTokenRequestProto;
|
import org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.RenewDelegationTokenResponseProto;
|
import org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto;
|
||||||
|
import org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto;
|
||||||
|
import org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto;
|
||||||
|
import org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto;
|
||||||
|
import org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto;
|
||||||
import org.apache.hadoop.yarn.exceptions.YarnRemoteException;
|
import org.apache.hadoop.yarn.exceptions.YarnRemoteException;
|
||||||
|
|
||||||
import com.google.protobuf.RpcController;
|
import com.google.protobuf.RpcController;
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
package org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb;
|
package org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb;
|
||||||
|
|
||||||
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.CancelDelegationTokenRequest;
|
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.CancelDelegationTokenRequest;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.CancelDelegationTokenRequestProto;
|
import org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.CancelDelegationTokenRequestProtoOrBuilder;
|
import org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenRequestProtoOrBuilder;
|
||||||
import org.apache.hadoop.security.proto.SecurityProtos.TokenProto;
|
import org.apache.hadoop.security.proto.SecurityProtos.TokenProto;
|
||||||
import org.apache.hadoop.yarn.api.records.DelegationToken;
|
import org.apache.hadoop.yarn.api.records.DelegationToken;
|
||||||
import org.apache.hadoop.yarn.api.records.ProtoBase;
|
import org.apache.hadoop.yarn.api.records.ProtoBase;
|
||||||
|
@ -52,10 +52,7 @@ public class CancelDelegationTokenRequestPBImpl extends
|
||||||
if (this.token != null) {
|
if (this.token != null) {
|
||||||
return this.token;
|
return this.token;
|
||||||
}
|
}
|
||||||
if (!p.hasDelegationToken()) {
|
this.token = convertFromProtoFormat(p.getToken());
|
||||||
return null;
|
|
||||||
}
|
|
||||||
this.token = convertFromProtoFormat(p.getDelegationToken());
|
|
||||||
return this.token;
|
return this.token;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,7 +60,7 @@ public class CancelDelegationTokenRequestPBImpl extends
|
||||||
public void setDelegationToken(DelegationToken token) {
|
public void setDelegationToken(DelegationToken token) {
|
||||||
maybeInitBuilder();
|
maybeInitBuilder();
|
||||||
if (token == null)
|
if (token == null)
|
||||||
builder.clearDelegationToken();
|
builder.clearToken();
|
||||||
this.token = token;
|
this.token = token;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -78,7 +75,7 @@ public class CancelDelegationTokenRequestPBImpl extends
|
||||||
|
|
||||||
private void mergeLocalToBuilder() {
|
private void mergeLocalToBuilder() {
|
||||||
if (token != null) {
|
if (token != null) {
|
||||||
builder.setDelegationToken(convertToProtoFormat(this.token));
|
builder.setToken(convertToProtoFormat(this.token));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
package org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb;
|
package org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb;
|
||||||
|
|
||||||
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.CancelDelegationTokenResponse;
|
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.CancelDelegationTokenResponse;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.CancelDelegationTokenResponseProto;
|
import org.apache.hadoop.security.proto.SecurityProtos.CancelDelegationTokenResponseProto;
|
||||||
import org.apache.hadoop.yarn.api.records.ProtoBase;
|
import org.apache.hadoop.yarn.api.records.ProtoBase;
|
||||||
|
|
||||||
public class CancelDelegationTokenResponsePBImpl extends
|
public class CancelDelegationTokenResponsePBImpl extends
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
package org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb;
|
package org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb;
|
||||||
|
|
||||||
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.GetDelegationTokenRequest;
|
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.GetDelegationTokenRequest;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetDelegationTokenRequestProto;
|
import org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetDelegationTokenRequestProtoOrBuilder;
|
import org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenRequestProtoOrBuilder;
|
||||||
import org.apache.hadoop.yarn.api.records.ProtoBase;
|
import org.apache.hadoop.yarn.api.records.ProtoBase;
|
||||||
|
|
||||||
|
|
||||||
|
@ -50,9 +50,6 @@ public class GetDelegationTokenRequestPBImpl extends
|
||||||
if (this.renewer != null) {
|
if (this.renewer != null) {
|
||||||
return this.renewer;
|
return this.renewer;
|
||||||
}
|
}
|
||||||
if (!p.hasRenewer()) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
this.renewer = p.getRenewer();
|
this.renewer = p.getRenewer();
|
||||||
return this.renewer;
|
return this.renewer;
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
package org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb;
|
package org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb;
|
||||||
|
|
||||||
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.GetDelegationTokenResponse;
|
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.GetDelegationTokenResponse;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetDelegationTokenResponseProto;
|
import org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.GetDelegationTokenResponseProtoOrBuilder;
|
import org.apache.hadoop.security.proto.SecurityProtos.GetDelegationTokenResponseProtoOrBuilder;
|
||||||
import org.apache.hadoop.security.proto.SecurityProtos.TokenProto;
|
import org.apache.hadoop.security.proto.SecurityProtos.TokenProto;
|
||||||
import org.apache.hadoop.yarn.api.records.DelegationToken;
|
import org.apache.hadoop.yarn.api.records.DelegationToken;
|
||||||
import org.apache.hadoop.yarn.api.records.ProtoBase;
|
import org.apache.hadoop.yarn.api.records.ProtoBase;
|
||||||
|
@ -53,10 +53,10 @@ public class GetDelegationTokenResponsePBImpl extends
|
||||||
if (this.mrToken != null) {
|
if (this.mrToken != null) {
|
||||||
return this.mrToken;
|
return this.mrToken;
|
||||||
}
|
}
|
||||||
if (!p.hasMRDelegationToken()) {
|
if (!p.hasToken()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
this.mrToken = convertFromProtoFormat(p.getMRDelegationToken());
|
this.mrToken = convertFromProtoFormat(p.getToken());
|
||||||
return this.mrToken;
|
return this.mrToken;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ public class GetDelegationTokenResponsePBImpl extends
|
||||||
public void setDelegationToken(DelegationToken mrToken) {
|
public void setDelegationToken(DelegationToken mrToken) {
|
||||||
maybeInitBuilder();
|
maybeInitBuilder();
|
||||||
if (mrToken == null)
|
if (mrToken == null)
|
||||||
builder.clearMRDelegationToken();
|
builder.getToken();
|
||||||
this.mrToken = mrToken;
|
this.mrToken = mrToken;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ public class GetDelegationTokenResponsePBImpl extends
|
||||||
|
|
||||||
private void mergeLocalToBuilder() {
|
private void mergeLocalToBuilder() {
|
||||||
if (mrToken != null) {
|
if (mrToken != null) {
|
||||||
builder.setMRDelegationToken(convertToProtoFormat(this.mrToken));
|
builder.setToken(convertToProtoFormat(this.mrToken));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,8 +18,8 @@
|
||||||
package org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb;
|
package org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb;
|
||||||
|
|
||||||
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.RenewDelegationTokenRequest;
|
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.RenewDelegationTokenRequest;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.RenewDelegationTokenRequestProto;
|
import org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.RenewDelegationTokenRequestProtoOrBuilder;
|
import org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenRequestProtoOrBuilder;
|
||||||
import org.apache.hadoop.security.proto.SecurityProtos.TokenProto;
|
import org.apache.hadoop.security.proto.SecurityProtos.TokenProto;
|
||||||
import org.apache.hadoop.yarn.api.records.DelegationToken;
|
import org.apache.hadoop.yarn.api.records.DelegationToken;
|
||||||
import org.apache.hadoop.yarn.api.records.ProtoBase;
|
import org.apache.hadoop.yarn.api.records.ProtoBase;
|
||||||
|
@ -52,10 +52,7 @@ public class RenewDelegationTokenRequestPBImpl extends
|
||||||
if (this.token != null) {
|
if (this.token != null) {
|
||||||
return this.token;
|
return this.token;
|
||||||
}
|
}
|
||||||
if (!p.hasDelegationToken()) {
|
this.token = convertFromProtoFormat(p.getToken());
|
||||||
return null;
|
|
||||||
}
|
|
||||||
this.token = convertFromProtoFormat(p.getDelegationToken());
|
|
||||||
return this.token;
|
return this.token;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -63,7 +60,7 @@ public class RenewDelegationTokenRequestPBImpl extends
|
||||||
public void setDelegationToken(DelegationToken token) {
|
public void setDelegationToken(DelegationToken token) {
|
||||||
maybeInitBuilder();
|
maybeInitBuilder();
|
||||||
if (token == null)
|
if (token == null)
|
||||||
builder.clearDelegationToken();
|
builder.clearToken();
|
||||||
this.token = token;
|
this.token = token;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,7 +74,7 @@ public class RenewDelegationTokenRequestPBImpl extends
|
||||||
|
|
||||||
private void mergeLocalToBuilder() {
|
private void mergeLocalToBuilder() {
|
||||||
if (token != null) {
|
if (token != null) {
|
||||||
builder.setDelegationToken(convertToProtoFormat(this.token));
|
builder.setToken(convertToProtoFormat(this.token));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,8 @@ package org.apache.hadoop.mapreduce.v2.api.protocolrecords.impl.pb;
|
||||||
|
|
||||||
|
|
||||||
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.RenewDelegationTokenResponse;
|
import org.apache.hadoop.mapreduce.v2.api.protocolrecords.RenewDelegationTokenResponse;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.RenewDelegationTokenResponseProto;
|
import org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProto;
|
||||||
import org.apache.hadoop.mapreduce.v2.proto.MRServiceProtos.RenewDelegationTokenResponseProtoOrBuilder;
|
import org.apache.hadoop.security.proto.SecurityProtos.RenewDelegationTokenResponseProtoOrBuilder;
|
||||||
import org.apache.hadoop.yarn.api.records.ProtoBase;
|
import org.apache.hadoop.yarn.api.records.ProtoBase;
|
||||||
|
|
||||||
public class RenewDelegationTokenResponsePBImpl extends
|
public class RenewDelegationTokenResponsePBImpl extends
|
||||||
|
@ -59,12 +59,12 @@ public class RenewDelegationTokenResponsePBImpl extends
|
||||||
@Override
|
@Override
|
||||||
public long getNextExpirationTime() {
|
public long getNextExpirationTime() {
|
||||||
RenewDelegationTokenResponseProtoOrBuilder p = viaProto ? proto : builder;
|
RenewDelegationTokenResponseProtoOrBuilder p = viaProto ? proto : builder;
|
||||||
return p.getNextExpiryTs();
|
return p.getNewExpiryTime();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void setNextExpirationTime(long expTime) {
|
public void setNextExpirationTime(long expTime) {
|
||||||
maybeInitBuilder();
|
maybeInitBuilder();
|
||||||
builder.setNextExpiryTs(expTime);
|
builder.setNewExpiryTime(expTime);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,7 @@ option java_package = "org.apache.hadoop.yarn.proto";
|
||||||
option java_outer_classname = "MRClientProtocol";
|
option java_outer_classname = "MRClientProtocol";
|
||||||
option java_generic_services = true;
|
option java_generic_services = true;
|
||||||
|
|
||||||
|
import "Security.proto";
|
||||||
import "mr_service_protos.proto";
|
import "mr_service_protos.proto";
|
||||||
|
|
||||||
/* If making changes to this, please edit HSClientProtocolService */
|
/* If making changes to this, please edit HSClientProtocolService */
|
||||||
|
@ -31,11 +32,11 @@ service MRClientProtocolService {
|
||||||
rpc getTaskAttemptCompletionEvents (GetTaskAttemptCompletionEventsRequestProto) returns (GetTaskAttemptCompletionEventsResponseProto);
|
rpc getTaskAttemptCompletionEvents (GetTaskAttemptCompletionEventsRequestProto) returns (GetTaskAttemptCompletionEventsResponseProto);
|
||||||
rpc getTaskReports (GetTaskReportsRequestProto) returns (GetTaskReportsResponseProto);
|
rpc getTaskReports (GetTaskReportsRequestProto) returns (GetTaskReportsResponseProto);
|
||||||
rpc getDiagnostics (GetDiagnosticsRequestProto) returns (GetDiagnosticsResponseProto);
|
rpc getDiagnostics (GetDiagnosticsRequestProto) returns (GetDiagnosticsResponseProto);
|
||||||
rpc getDelegationToken (GetDelegationTokenRequestProto) returns (GetDelegationTokenResponseProto);
|
rpc getDelegationToken (hadoop.common.GetDelegationTokenRequestProto) returns (hadoop.common.GetDelegationTokenResponseProto);
|
||||||
rpc killJob (KillJobRequestProto) returns (KillJobResponseProto);
|
rpc killJob (KillJobRequestProto) returns (KillJobResponseProto);
|
||||||
rpc killTask (KillTaskRequestProto) returns (KillTaskResponseProto);
|
rpc killTask (KillTaskRequestProto) returns (KillTaskResponseProto);
|
||||||
rpc killTaskAttempt (KillTaskAttemptRequestProto) returns (KillTaskAttemptResponseProto);
|
rpc killTaskAttempt (KillTaskAttemptRequestProto) returns (KillTaskAttemptResponseProto);
|
||||||
rpc failTaskAttempt (FailTaskAttemptRequestProto) returns (FailTaskAttemptResponseProto);
|
rpc failTaskAttempt (FailTaskAttemptRequestProto) returns (FailTaskAttemptResponseProto);
|
||||||
rpc renewDelegationToken(RenewDelegationTokenRequestProto) returns (RenewDelegationTokenResponseProto);
|
rpc renewDelegationToken(hadoop.common.RenewDelegationTokenRequestProto) returns (hadoop.common.RenewDelegationTokenResponseProto);
|
||||||
rpc cancelDelegationToken(CancelDelegationTokenRequestProto) returns (CancelDelegationTokenResponseProto);
|
rpc cancelDelegationToken(hadoop.common.CancelDelegationTokenRequestProto) returns (hadoop.common.CancelDelegationTokenResponseProto);
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,14 +77,6 @@ message GetDiagnosticsResponseProto {
|
||||||
repeated string diagnostics = 1;
|
repeated string diagnostics = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
message GetDelegationTokenRequestProto {
|
|
||||||
optional string renewer = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message GetDelegationTokenResponseProto {
|
|
||||||
optional hadoop.common.TokenProto m_r_delegation_token = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message KillJobRequestProto {
|
message KillJobRequestProto {
|
||||||
optional JobIdProto job_id = 1;
|
optional JobIdProto job_id = 1;
|
||||||
}
|
}
|
||||||
|
@ -109,17 +101,3 @@ message FailTaskAttemptRequestProto {
|
||||||
message FailTaskAttemptResponseProto {
|
message FailTaskAttemptResponseProto {
|
||||||
}
|
}
|
||||||
|
|
||||||
message RenewDelegationTokenRequestProto {
|
|
||||||
required hadoop.common.TokenProto delegation_token = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message RenewDelegationTokenResponseProto {
|
|
||||||
required int64 next_expiry_ts = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message CancelDelegationTokenRequestProto {
|
|
||||||
required hadoop.common.TokenProto delegation_token = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
message CancelDelegationTokenResponseProto {
|
|
||||||
}
|
|
||||||
|
|
Loading…
Reference in New Issue