Updated Branches: refs/heads/trunk 82dad0a17 -> ba8ea976b
GIRAPH-797 Project: http://git-wip-us.apache.org/repos/asf/giraph/repo Commit: http://git-wip-us.apache.org/repos/asf/giraph/commit/ba8ea976 Tree: http://git-wip-us.apache.org/repos/asf/giraph/tree/ba8ea976 Diff: http://git-wip-us.apache.org/repos/asf/giraph/diff/ba8ea976 Branch: refs/heads/trunk Commit: ba8ea976bec6fcfee1630acd2cb238a688e33b71 Parents: 82dad0a Author: Claudio Martella <[email protected]> Authored: Fri Nov 22 11:56:40 2013 +0100 Committer: Claudio Martella <[email protected]> Committed: Fri Nov 22 11:56:40 2013 +0100 ---------------------------------------------------------------------- CHANGELOG | 5 ++++- .../org/apache/giraph/utils/ConfigurationUtils.java | 12 ++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/giraph/blob/ba8ea976/CHANGELOG ---------------------------------------------------------------------- diff --git a/CHANGELOG b/CHANGELOG index 5c9a733..db7f295 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,8 +1,11 @@ Giraph Change Log Release 1.1.0 - unreleased + GIRAPH-797: If the vertex input data path is incorrect Giraph job hangs indefinitely + until killed by JobTracker for exceeding timeout (jaeyu via claudio) + GIRAPH-793: Create necessary documentation for Giraph-Gora integration - (enato2099 via claudio) + (renato2099 via claudio) GIRAPH-760: Create EdgeOutputFormat to Apache Gora (renato2099 via claudio) http://git-wip-us.apache.org/repos/asf/giraph/blob/ba8ea976/giraph-core/src/main/java/org/apache/giraph/utils/ConfigurationUtils.java ---------------------------------------------------------------------- diff --git a/giraph-core/src/main/java/org/apache/giraph/utils/ConfigurationUtils.java b/giraph-core/src/main/java/org/apache/giraph/utils/ConfigurationUtils.java index e441f03..da4b98e 100644 --- a/giraph-core/src/main/java/org/apache/giraph/utils/ConfigurationUtils.java +++ b/giraph-core/src/main/java/org/apache/giraph/utils/ConfigurationUtils.java @@ -401,6 +401,12 @@ public final class ConfigurationUtils { // Now, we parse options that are specific to Hadoop MR Job if (cmd.hasOption("vif")) { if (cmd.hasOption("vip")) { + if (FileSystem.get(new Configuration()).listStatus( + new Path(cmd.getOptionValue("vip"))) == null) { + throw new IllegalArgumentException( + "Invalid vertex input path (-vip): " + + cmd.getOptionValue("vip")); + } GiraphFileInputFormat.addVertexInputPath(conf, new Path(cmd.getOptionValue("vip"))); } else { @@ -412,6 +418,12 @@ public final class ConfigurationUtils { } if (cmd.hasOption("eif")) { if (cmd.hasOption("eip")) { + if (FileSystem.get(new Configuration()).listStatus( + new Path(cmd.getOptionValue("eip"))) == null) { + throw new IllegalArgumentException( + "Invalid edge input path (-eip): " + + cmd.getOptionValue("eip")); + } GiraphFileInputFormat.addEdgeInputPath(conf, new Path(cmd.getOptionValue("eip"))); } else {
