仓库位置
日志生成:https://github.com/SmallScorpion/gmall-mock.git
日志服务器:https://github.com/SmallScorpion/gmall-spark-ch-es-realtime.git
让ES保存做PUT操作,增加ID
/**
* 批量保存
*/
def bulkDoc( sourceList: List[(String, Any)], indexName: String ): Unit = {
if ( sourceList != null && sourceList.nonEmpty ) {
val jest: JestClient = getClient
// 构造批次操作
val bulkBuilder = new Bulk