执行以下命令时,我收到以下错误
./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)
答案 0 :(得分:0)
作为一种解决方法,您可以尝试添加--verbose参数。
./tsdb mkmetric mymetric --verbose=class