Skip to content

Commit 4c50b30

Browse files
author
Norberto Ritzmann Jr
committed
BAEL-3086 - Clean up
1 parent a0011be commit 4c50b30

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

apache-spark/src/main/java/com/baeldung/graphframes/GraphExperiments.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ private void doGraphFrameOperations(GraphFrame graph) {
4242

4343
private void doGraphFrameAlgorithms(GraphFrame graph) {
4444

45-
graph.pageRank().maxIter(20).resetProbability(0.0001).run().vertices().show();
45+
graph.pageRank().maxIter(20).resetProbability(0.15).run().vertices().show();
4646

4747
graph.connectedComponents().run().show();
4848

apache-spark/src/main/java/com/baeldung/graphframes/GraphLoader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public GraphFrame getGraphFrameUserRelationship() throws IOException {
2727
Path temp = Files.createTempDirectory("sparkGraphFrames");
2828
SparkSession session = SparkSession.builder()
2929
.appName("SparkGraphFrameSample")
30-
.config("spark.sql.warehouse.dir", temp.toString())//"/file:C:/temp"
30+
.config("spark.sql.warehouse.dir", temp.toString())
3131
.sparkContext(getSparkContext().sc())
3232
.master("local[*]")
3333
.getOrCreate();

apache-spark/src/main/java/com/baeldung/graphframes/User.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ public String getName() {
2222

2323
@Override
2424
public String toString() {
25-
return "struct<" + id + "," + name + ">";
25+
return "<" + id + "," + name + ">";
2626
}
2727
}

0 commit comments

Comments
 (0)