Tag Archives: Error solution

[Solved] com.alibaba.nacos.api.exception.NacosException: failed to req API

Problem statement

When using Nacos as spring’s test center, the following error occurred when enabling the project

Nacos cluster cannot connect to com.alibaba.nacos.api.exception.NacosException: failed to req API:/api//nacos/v1/ns/ins

Solution

Due to the inconsistency between the versions of spring cloud – Alibaba and Nacos, you can download the appropriate version according to the version provided on the official website

Kafka prompts no brokers found when trying to rebalance

Kafka prompts when executing the following command:

bin/kafka-console-consumer.sh --zookeeper localhost102:2181 --topic test

WARN [console-consumer-87796_ localhost002-1592779486563-9b43649b], no brokers found when trying to rebalance.( kafka.consumer.ZookeeperConsumerConnector )

The reason is that the Kafka process is not started or there is no Kafka cluster information on zookeeper

[root@localhost002 ~]# jps
3667 DataNode
3365 ResourceManager
21446 QuorumPeerMain
23386 Jps
3230 NodeManager

Solve the problem after starting Kafka