无法 运行 任何命令,即 mkmetric 即使 openTSDB 服务已启动并且 运行 正在端口 4242 中

Not able to run any command i.e mkmetric even though openTSDB service is up and running in port 4242

执行以下命令时出现以下错误

./tsdb mkmetric mymetric

SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]
Exception in thread "main" java.lang.ClassCastException: org.slf4j.impl.Log4jLoggerAdapter cannot be cast to ch.qos.logback.classic.Logger
at net.opentsdb.tools.CliOptions.honorVerboseFlag(CliOptions.java:161)
at net.opentsdb.tools.CliOptions.parse(CliOptions.java:82)
at net.opentsdb.tools.UidManager.main(UidManager.java:97)

作为解决方法,您可以尝试添加 --verbose 参数。

./tsdb mkmetric mymetric --verbose=class