前提
elasticsearch不想申请license使用付费内容,直接在源码中修改逻辑即可永久使用白金版功能
elasticsearch版本: 6.x
修改位置:x-pack模块下
在License.java中将resolve(String type)中将return BASE等注释
public static OperationMode resolve(String type) {
switch (type.toLowerCase(Locale.ROOT)) {
case "missing":
return MISSING;
case "trial":
case "none": // bwc for 1.x subscription_type field
case "dev": // bwc for 1.x subscription_type field
case "development": // bwc for 1.x subscription_type field
// return TRIAL;
case "basic":
// return BASIC;
case "standard":
//