|
@@ -27,6 +27,7 @@ import java.util.HashMap;
|
|
|
import java.util.Iterator;
|
|
|
import java.util.Map;
|
|
|
import java.util.Map.Entry;
|
|
|
+import java.util.NoSuchElementException;
|
|
|
|
|
|
import org.apache.hadoop.classification.InterfaceAudience.Private;
|
|
|
import org.apache.hadoop.fs.Path;
|
|
@@ -190,6 +191,9 @@ public class ConverterUtils {
|
|
|
} catch (NumberFormatException n) {
|
|
|
throw new IllegalArgumentException("Invalid AppAttemptId: "
|
|
|
+ applicationAttmeptIdStr, n);
|
|
|
+ } catch (NoSuchElementException e) {
|
|
|
+ throw new IllegalArgumentException("Invalid AppAttemptId: "
|
|
|
+ + applicationAttmeptIdStr, e);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -206,6 +210,9 @@ public class ConverterUtils {
|
|
|
} catch (NumberFormatException n) {
|
|
|
throw new IllegalArgumentException("Invalid ApplicationId: "
|
|
|
+ appIdStr, n);
|
|
|
+ } catch (NoSuchElementException e) {
|
|
|
+ throw new IllegalArgumentException("Invalid ApplicationId: "
|
|
|
+ + appIdStr, e);
|
|
|
}
|
|
|
}
|
|
|
|