Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dga-giraph/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ dependencies {
exclude module: 'zookeeper'
}
hadoopProvided group: 'org.apache.hadoop', name: 'hadoop-client', version: cdh_version
testCompile 'org.apache.giraph:giraph-core:1.1.0-hadoop2'
testCompile 'org.apache.giraph:giraph-core:1.2.0-hadoop2'
testCompile "org.mockito:mockito-core:1.9.5"
testCompile 'junit:junit:4.11'
testCompile 'commons-httpclient:commons-httpclient:3.0.1'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ private int getVertexValue(String value) {
}
return vertexValue;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ private void writeFile(String path, String message) {
Path pt = new Path(path);
logger.debug("Writing file out to {}, message {}", path, message);
try {
FileSystem fs = FileSystem.get(new Configuration());
//FileSystem fs = FileSystem.get(new Configuration());
FileSystem fs = FileSystem.get(getConf());
BufferedWriter br = new BufferedWriter(new OutputStreamWriter(fs.create(pt, true)));
br.write(message);
br.close();
Expand All @@ -206,7 +207,8 @@ private String readFile(String path) {
StringBuilder builder = new StringBuilder();
try {
Path pt = new Path(path);
FileSystem fs = FileSystem.get(new Configuration());
//FileSystem fs = FileSystem.get(new Configuration());
FileSystem fs = FileSystem.get(getConf());
BufferedReader br = new BufferedReader(new InputStreamReader(fs.open(pt)));
String line;
line = br.readLine();
Expand Down