|
@@ -33,6 +33,7 @@ import java.util.concurrent.locks.ReentrantReadWriteLock;
|
|
|
import java.util.concurrent.locks.ReentrantReadWriteLock.ReadLock;
|
|
|
import java.util.concurrent.locks.ReentrantReadWriteLock.WriteLock;
|
|
|
|
|
|
+import org.apache.commons.lang.StringUtils;
|
|
|
import org.apache.commons.logging.Log;
|
|
|
import org.apache.commons.logging.LogFactory;
|
|
|
import org.apache.hadoop.conf.Configuration;
|
|
@@ -399,7 +400,7 @@ public class RMAppAttemptImpl implements RMAppAttempt {
|
|
|
final String trackingUriWithoutScheme) {
|
|
|
this.readLock.lock();
|
|
|
try {
|
|
|
- URI trackingUri = trackingUriWithoutScheme == null ? null :
|
|
|
+ URI trackingUri = StringUtils.isEmpty(trackingUriWithoutScheme) ? null :
|
|
|
ProxyUriUtils.getUriFromAMUrl(trackingUriWithoutScheme);
|
|
|
String proxy = YarnConfiguration.getProxyHostAndPort(conf);
|
|
|
URI proxyUri = ProxyUriUtils.getUriFromAMUrl(proxy);
|