如题,
spark:在reduceByKey中,怎么获取到key的值
收起
.map((key,value)=>(key,(key,value))) 先map将value转为(key,value) reduceByKey就可以获取到key值
报告相同问题?