摘要: val rdd=sc.parallelize(List(("Jack","America","23"),("Mark","China","25"),("Lura","Australia","24")))import sqlContext.implicits._val df=rdd.repartiti 阅读全文
posted @ 2020-04-02 17:27 等木鱼的猫 阅读(1891) 评论(0) 推荐(0) 编辑
摘要: import com.alibaba.fastjson.{JSON, JSONObject} val str="{\"boxId\":\"001\",\"allContent\":[{\"fruitName\":\"apple\",\"weight\":\"1\"},{\"fruitName\":\ 阅读全文
posted @ 2020-04-02 17:02 等木鱼的猫 阅读(1448) 评论(0) 推荐(0) 编辑