We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0df5885 commit bc19a77Copy full SHA for bc19a77
src/main/java/com/sparkTutorial/rdd/nasaApacheWebLogs/SameHostsSolution.java
@@ -21,6 +21,8 @@ public static void main(String[] args) throws Exception {
21
22
JavaRDD<String> intersection = julyFirstHosts.intersection(augustFirstHosts);
23
24
- intersection.saveAsTextFile("out/nasa_logs_same_hosts.csv");
+ JavaRDD<String> cleanedHostIntersection = intersection.filter(host -> !host.equals("host"));
25
+
26
+ cleanedHostIntersection.saveAsTextFile("out/nasa_logs_same_hosts.csv");
27
}
28
0 commit comments