如题,
spark:在reduceByKey中,怎么获取到key的值
.map((key,value)=>(key,(key,value)))先map将value转为(key,value)reduceByKey就可以获取到key值