<dependency>
<groupId>org.apache.mahout</groupId>
<artifactId>mahout-flink_2.10</artifactId>
<version>0.12.0</version>
</dependency>
import org.apache.flink.api.scala._
import org.apache.mahout.math.drm._
import org.apache.mahout.math.drm.RLikeDrmOps._
import org.apache.mahout.flinkbindings._
object ReadCsvExample {
def main(args: Array[String]): Unit = {
val filePath = "path/to/the/input/file"
val env = ExecutionEnvironment.getExecutionEnvironment
implicit val ctx = new FlinkDistributedContext(env)
val drm = readCsv(filePath, delim = "\t", comment = "#")
val C = drm.t %*% drm
println(C.collect)
}
}
These are Flink-backend specific tests, e.g.