How do I take the logarithm of an RDD? I have a val rdd: RDD[Double] and I simply want to take the logarithm of it.
This is essentially the same question as this, but the solution proposed does not work. I run:
val rdd: RDD[Double] = <something>
val log_y = rdd.map(x => org.apache.commons.math3.analysis.function.Log(2.0, x))
and I get the error:
error: object org.apache.commons.math3.analysis.function.Log is not a value