YARN-4622. TestDistributedShell fails for v2 test cases after modifications for 1.5. (Naganarasimha G R via Varun Saxena)
This commit is contained in:
parent
34f02f07d5
commit
f5380d850e
|
@ -70,6 +70,7 @@ import org.apache.hadoop.yarn.exceptions.YarnException;
|
||||||
import org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier;
|
import org.apache.hadoop.yarn.security.client.TimelineDelegationTokenIdentifier;
|
||||||
import org.apache.hadoop.yarn.webapp.YarnJacksonJaxbJsonProvider;
|
import org.apache.hadoop.yarn.webapp.YarnJacksonJaxbJsonProvider;
|
||||||
import org.codehaus.jackson.map.ObjectMapper;
|
import org.codehaus.jackson.map.ObjectMapper;
|
||||||
|
|
||||||
import com.google.common.annotations.VisibleForTesting;
|
import com.google.common.annotations.VisibleForTesting;
|
||||||
import com.google.common.base.Joiner;
|
import com.google.common.base.Joiner;
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
|
@ -334,9 +335,10 @@ public class TimelineClientImpl extends TimelineClient {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void serviceStart() throws Exception {
|
protected void serviceStart() throws Exception {
|
||||||
timelineWriter = createTimelineWriter(
|
if (!timelineServiceV2) {
|
||||||
configuration, authUgi, client,
|
timelineWriter = createTimelineWriter(configuration, authUgi, client,
|
||||||
constructResURI(getConfig(), timelineServiceAddress, false));
|
constructResURI(getConfig(), timelineServiceAddress, false));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
protected TimelineWriter createTimelineWriter(Configuration conf,
|
protected TimelineWriter createTimelineWriter(Configuration conf,
|
||||||
|
|
Loading…
Reference in New Issue