话题挑战赛第2期
参赛话题:Spark实战经验分享
sparkContext.hadoopFile(args(0),classOf[TextInputFormat], classOf[LongWritable], classOf[Text], 1)
.map(p => new String(p._2.getBytes, 0, p._2.getLength, "GBK"))
.map(_.split("#"))
话题挑战赛第2期
参赛话题:Spark实战经验分享
sparkContext.hadoopFile(args(0),classOf[TextInputFormat], classOf[LongWritable], classOf[Text], 1)
.map(p => new String(p._2.getBytes, 0, p._2.getLength, "GBK"))
.map(_.split("#"))