Creating a paired RDD using the first word as the keyword in Scala: val pairs = lines.map(x => (x.split(" ")(0), x)).
確定! 回上一頁