本文介绍了在群集中找不到活动节点(FacetFlow)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
这是我的代码:
$source_hosts = [
'http://azure-xxxxxxxxxxx.west-eu.azr.facetflow.io'
];
$source_client = \Elasticsearch\ClientBuilder::create()
->setHosts($source_hosts)->build();
$params = [
'index' => 'dir',
'type' => 'article',
'id' => '1',
'body' => ['id' => 1,'name' => "article"]
];
$response = $source_client->index($params);
print_r($response);
从本地主机测试我有下面的错误:
testing from localhosti have the error bellow :
推荐答案
必须禁用sslCertificate:
Must disable sslCertificate :
$source_client = \Elasticsearch\ClientBuilder::create()
->setSSLVerification(false)
->setHosts($hosts)->build();
感谢每个人
这篇关于在群集中找不到活动节点(FacetFlow)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!