你的浏览器禁用了JavaScript, 请开启后刷新浏览器获得更好的体验!
输入关键字进行搜索
搜索:
没有找到相关结果
novia - 1&0
赞同来自:
BulkProcessor bulkProcessor = BulkProcessor.builder(client, new BulkProcessor.Listener() { @Override public void beforeBulk(long executionId, BulkRequest request) { } @Override public void afterBulk(long executionId, BulkRequest request, BulkResponse response) { } @Override public void afterBulk(long executionId, BulkRequest request, Throwable failure) { } }).setBulkActions(2000) .setBulkSize(new ByteSizeValue(50, ByteSizeUnit.MB)) .setFlushInterval(TimeValue.timeValueSeconds(60)).build();
if(bulkProcessor!=null){ try { while(!bulkProcessor.awaitClose(5, TimeUnit.SECONDS)){ } } catch (InterruptedException e) { e.printStackTrace(); } } if(client!=null){ client.close(); }
要回复问题请先登录或注册
2 个回复
novia - 1&0
赞同来自:
novia - 1&0
赞同来自:
最后关闭时,如下: