Skip to content

Commit

Permalink
Compile against latest published 0.23 snapshots.
Browse files Browse the repository at this point in the history
  • Loading branch information
tomwhite committed Sep 14, 2011
1 parent c7c1d67 commit 34e9e9b
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
14 changes: 9 additions & 5 deletions hadoop-meta/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -158,27 +158,31 @@ A module which allows the Hadoop dependencies to be specified by a Maven profile
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdfs</artifactId>
<artifactId>hadoop-common</artifactId>
<version>0.23.0-SNAPSHOT</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-mapred</artifactId>
<artifactId>hadoop-hdfs</artifactId>
<version>0.23.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-common-test</artifactId>
<artifactId>hadoop-hdfs</artifactId>
<version>0.23.0-SNAPSHOT</version>
<type>test-jar</type>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-hdfs-test</artifactId>
<artifactId>hadoop-mapreduce-client-core</artifactId>
<version>0.23.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.apache.hadoop</groupId>
<artifactId>hadoop-mapred-test</artifactId>
<artifactId>hadoop-mapred-test</artifactId> <!-- MR1 -->
<version>0.23.0-SNAPSHOT</version>
</dependency>
</dependencies>
Expand Down
10 changes: 9 additions & 1 deletion snippet/src/test/java/ExamplesIT.java
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,15 @@ private String execute(String commandLine) throws ExecuteException, IOException
DefaultExecutor exec = new DefaultExecutor();
exec.setWorkingDirectory(PROJECT_BASE_DIR);
exec.setStreamHandler(psh);
exec.execute(cl, env);
try {
exec.execute(cl, env);
} catch (ExecuteException e) {
System.out.println(stdout.toString());
throw e;
} catch (IOException e) {
System.out.println(stdout.toString());
throw e;
}
return stdout.toString();
}

Expand Down

0 comments on commit 34e9e9b

Please sign in to comment.