How to split error: value split is not a member of (String, Int)


#1

val hbaseGBK = hbaseRBK.
map(rec => (rec._1, (rec._2, rec._3))).groupByKey()

val countIterable = hbaseGBK.first._2

countIterable.take(10).foreach(println)

(hashkey, count)
(fd345cf141285158a49bb366507aedd059157eb9,88361)
(0aee02026fe510aa8c021bdf63f46eea2ee09f8e,256389)
(4db51a0caef66d0eed205f361d2eb1050a246dc5,6106)
(93bbf7d305d3fdb76da7f7dc2af678a4562bb99c,71621)
(c811b8a9a50b9abe29e5e2ba189a79649e1f8594,22549)
(cac86f63773839c160b07cfc75ca74bf21969ea8,60916)
(0dfb0edb2fe9ebe96ddbc0a1ff9d4523ad9280d7,112027)
(b26f2d1c3b9f048c58b4f8333b5e1cb03b9af6e7,31467)
(5325d81c0ed785893a73cd55db7fdfa9cf267729,73822)
(20968f020b88a703572ae4f4c0cc21cec6997f89,7738)

countIterable.map(p => p.split(",")(1).toInt)
:56: error: value split is not a member of (String, Int)
countIterable.map(p => p.split(",")(1).toInt)

how to sort the above data by count ? can anyone help me in this