集群名称为什么是空呢启动直接报错

@PostConstruct
public void init() throws PulsarClientException, PulsarAdminException {
    PulsarAdmin admin = PulsarAdmin.builder().serviceHttpUrl(adminServiceUrl).build();

    HashSet<String> clusters = new HashSet<>();
    clusters.add("pulsar-cluster");

    HashSet<String> adminRoles = new HashSet<>();
    adminRoles.add("dev");
    TenantInfo config = TenantInfo.builder().allowedClusters(clusters).adminRoles(adminRoles).build();
    admin.tenants().createTenant("ghy-tenant", config);
    admin.namespaces().createNamespace("ghy-tenant/ghy-namespace");
}

aused by: org.apache.pulsar.shade.javax.ws.rs.ClientErrorException: HTTP 412 Clusters do not exist

应该写什么呢,感谢。

写standalone成功了,感谢。查看pulsar启动日志时看到了。