摘要: rdd.foreach { records => val config = HBaseConfiguration.create config.set("hbase.zookeeper.property.clientPort", "2181") config.set("hbase.zookeeper. 阅读全文
posted @ 2020-09-10 15:28 意如柳 阅读(231) 评论(0) 推荐(0)
摘要: 像map一样的json直接存值: import org.json.JSONObject def main(args: Array[String]): Unit = { val jsonObj :JSONObject= new JSONObject() jsonObj.put("zxtotal", " 阅读全文
posted @ 2020-09-10 11:51 意如柳 阅读(1886) 评论(0) 推荐(0)