在群集中找不到活动节点(FacetFlow) [英] No alive nodes found in your cluster (FacetFlow)

查看:40
本文介绍了在群集中找不到活动节点(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 localhost i have the error bellow :

在集群中找不到活动节点

No alive nodes found in your cluster

推荐答案

必须禁用sslCertificate:

Must disable sslCertificate :

$source_client = \Elasticsearch\ClientBuilder::create()
            ->setSSLVerification(false)
            ->setHosts($hosts)->build();

感谢每个人

这篇关于在群集中找不到活动节点(FacetFlow)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆