We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b6988aa commit e425807Copy full SHA for e425807
src/main/scala/com/sparkTutorial/rdd/nasaApacheWebLogs/UnionLogsSolution.scala
@@ -17,7 +17,7 @@ object UnionLogsSolution extends Serializable {
17
18
val cleanLogLines = aggregatedLogLines.filter(line => isNotHeader(line))
19
20
- val sample = cleanLogLines.sample(true, 0.1)
+ val sample = cleanLogLines.sample(withReplacement = true, fraction = 0.1)
21
22
sample.saveAsTextFile("out/sample_nasa_logs.csv")
23
}
0 commit comments