创建SolrCore“new_core”时出错:缺少核心节点名称

piv4azn7  于 2022-11-23  发布在  Solr
关注(0)|答案(1)|浏览(252)

我在我们的开发集群中托管了Apache Solr的Bitnami helm chart,当我尝试创建新内核时,它说:

Error CREATEing SolrCore 'new_core': coreNodeName missing {schema=schema.xml, dataDir=data, config=solrconfig.xml}

因此,从official documentationthisthis的链接中,我了解到必须将legacyCloud设置为true。
我登录了我的Zookeeper舱当我运行命令时

/opt/bitnami/zookeeper/bin/zkCli.sh -zkhost apachesolr-dev-zookeeper:2181 -cmd clusterprop -name legacyCloud -val true

它抛出了以下错误,
我甚至尝试用localhost/127.0.0.1替换主机,但它说找不到命令。

在尝试了5个小时的各种方法后,我请求帮助,因为我做错了。

Connecting to localhost:2181
ZooKeeper -server host:port -client-configuration properties-file cmd args
        addWatch [-m mode] path # optional mode is one of [PERSISTENT, PERSISTENT_RECURSIVE] - default is PERSISTENT_RECURSIVE
        addauth scheme auth
        close 
        config [-c] [-w] [-s]
        connect host:port
        create [-s] [-e] [-c] [-t ttl] path [data] [acl]
        delete [-v version] path
        deleteall path [-b batch size]
        delquota [-n|-b|-N|-B] path
        get [-s] [-w] path
        getAcl [-s] path
        getAllChildrenNumber path
        getEphemerals path
        history 
        listquota path
        ls [-s] [-w] [-R] path
        printwatches on|off
        quit 
        reconfig [-s] [-v version] [[-file path] | [-members serverID=host:port1:port2;port3[,...]*]] | [-add serverId=host:port1:port2;port3[,...]]* [-remove serverId[,...]*]
        redo cmdno
        removewatches path [-c|-d|-a] [-l]
        set [-s] [-v version] path data
        setAcl [-s] [-v version] [-R] path acl
        setquota -n|-b|-N|-B val path
        stat [-w] path
        sync path
        version 
        whoami 
Command not found: Command not found apachesolr-dev-zookeeper:2181
2022-11-03 15:42:34,114 [myid:] - ERROR [main:o.a.z.u.ServiceUtils@42] - Exiting JVM with code 127
oknwwptz

oknwwptz1#

您可以执行两项操作:
1.从终端/命令行创建核心。
1.您需要在{SOLR_PATH}/server/solr/ location中创建一个带有核心名称的文件夹,然后添加配置文件并创建一个空的数据文件夹,然后它将从solr管理中运行。

相关问题