📣 极限科技诚招搜索运维工程师(Elasticsearch/Easysearch)- 全职/北京 👉 : 立即申请加入

版本: 6.8-7.15

简而言之,当你尝试使用Azure作为Elasticsearch的存储库但未定义客户端配置时,就会出现此错误。此配置对于Elasticsearch与Azure交互是必需的。要解决此问题,你需要在Elasticsearch设置中定义客户端配置。这包括指定Azure账户名称和账户密钥。此外,确保Azure插件在Elasticsearch中正确安装和启用。如果错误仍然存在,请检查配置文件中是否存在任何语法错误。

日志上下文 #


日志"If you want to use an azure repository; you need to define a client configuration.“的类名是 AzureRepositoryPlugin.java. 我们从Elasticsearch源代码中提取了以下内容,供那些寻求深入了解上下文的人参考:

@Override
 public void reload(Settings settings) {
 // secure settings should be readable
 final Map<String, AzureStorageSettings> clientsSettings = AzureStorageSettings.load(settings);
 if (clientsSettings.isEmpty()) {
 throw new SettingsException("If you want to use an azure repository; you need to define a client configuration.");
 }
 AzureStorageService storageService = azureStoreService.get();
 assert storageService != null;
 storageService.refreshSettings(clientsSettings);
 }