update
This commit is contained in:
+2
-3
@@ -700,12 +700,11 @@ class GaoDePoiDataProcess extends BaseBatch{
|
|||||||
int batchSize = 1000;
|
int batchSize = 1000;
|
||||||
int processedCount = 0;
|
int processedCount = 0;
|
||||||
def client = ElasticUtils89.getClient("192.168.0.89")
|
def client = ElasticUtils89.getClient("192.168.0.89")
|
||||||
|
|
||||||
rows.each{key,map->
|
rows.each{key,map->
|
||||||
// def map = rows.get(key)
|
// def map = rows.get(key)
|
||||||
|
|
||||||
request.add(new IndexRequest("didata_map_poi_single", "_doc", map.id).source(map, XContentType.JSON));
|
request.add(new IndexRequest("didata_map_poi_single", "_doc", map.id).source(map, XContentType.JSON));
|
||||||
if(i%1000==0){
|
|
||||||
print "."
|
|
||||||
}
|
|
||||||
|
|
||||||
// 批量提交数据
|
// 批量提交数据
|
||||||
if (request.numberOfActions() >= batchSize) {
|
if (request.numberOfActions() >= batchSize) {
|
||||||
|
|||||||
Reference in New Issue
Block a user