tranqulity--Error: Could not find or load main class com.metamx.tranquility.distribution.Distributio

conf/supervisedata.conf:

:verify bin/verify-java

:verify bin/verify-version-check

historical bin/run-druid historical conf

middleManager bin/run-druid middleManager conf

Uncomment to use Tranquility Server

#!p95 tranquility-server bin/tranquility server -configFile conf/tranquility/server.json

Uncomment to use Tranquility Kafka

!p95 tranquility-kafka bin/tranquility kafka -configFile conf/tranquility/kafka.json

Uncomment to use Tranquility Clarity metrics server

#!p95 tranquility-metrics-server java -Xms4g -Xmx4g -cp “dist/tranquility/lib/*:dist/tranquility/conf” com.metamx.tranquility.distribution.DistributionMain server -configFile conf/tranquility/server-for-metrics.yaml

conf/tranquility/kafka.json

{

“dataSources”:[

{

“spec”:{

“dataSchema”:{

“dataSource”:“tb1”,

“parser”:{

“type”:“string”,

“parseSpec”:{

“format”:“json”,

“timestampSpec”:{

“column”:“timestamp”,

“format”:“posix”

},

“dimensionsSpec”:{

“dimensions”:[

]

}

}

},

“granularitySpec”:{

“type”:“uniform”,

“segmentGranularity”:“day”,

“queryGranularity”:“second”

},

“metricsSpec”:[

]

},

“ioConfig”:{

“type”:“realtime”

},

“tuningConfig”:{

“type”:“realtime”,

“maxRowsInMemory”:“50000”,

“intermediatePersistPeriod”:“PT10M”,

“windowPeriod”:“PT10M”

}

},

“properties”:{

“task.partitions”:“1”,

“task.replicants”:“1”,

“topicPattern”:“tranquility-eth”

}

}

],

“properties”:{

“zookeeper.connect”:“192.168.XXX.XXX:2180,192.168.XXX.XXX:2180,192.168.XXX.XXX:2180”,

“druid.discovery.curator.path”:"/druid/discovery",

“druid.selectors.indexing.serviceName”:“druid/overlord”,

“commit.periodMillis”:“15000”,

“consumer.numThreads”:“2”,

“kafka.zookeeper.connect”:“192.168.1.XXX:12181,192.168.1.XXX:12181”,

“kafka.group.id”:“tranquility-kafka”,

“serialization.format”:“smile”,

“druidBeam.taskLocator”:“overlord”

}

}

when i run : bin/supervise -c conf/supervise/data.conf ,i got the error:Error: Could not find or load main class com.metamx.tranquility.distribution.Distributio

can someone help me? Thanks!

Which version of Druid are you using?

imply-2.8.10,

  • Druid 0.13.0-incubating-iap9

在 2019年2月21日星期四 UTC+8下午6:12:01,22706…@qq.com写道:

Can you try uncommenting the line to run tranquility server also?

!p95 tranquility-server bin/tranquility server -configFile conf/tranquility/server.json

``

the log:
[Thu Feb 21 19:02:57 2019] Running command[historical], logging to[/home/lianbaotest/abner/imply-2.8.10/var/sv/historical]: bin/run-druid historical conf

[Thu Feb 21 19:02:57 2019] Running command[middleManager], logging to[/home/lianbaotest/abner/imply-2.8.10/var/sv/middleManager]: bin/run-druid middleManager conf

[Thu Feb 21 19:02:57 2019] Running command[tranquility-server], logging to[/home/lianbaotest/abner/imply-2.8.10/var/sv/tranquility-server]: bin/tranquility server -configFile conf/tranquility/server.json

[Thu Feb 21 19:02:57 2019] Running command[tranquility-kafka], logging to[/home/lianbaotest/abner/imply-2.8.10/var/sv/tranquility-kafka]: bin/tranquility kafka -configFile conf/tranquility/kafka.json

[Thu Feb 21 19:02:57 2019] Running command[tranquility-metrics-server], logging to[/home/lianbaotest/abner/imply-2.8.10/var/sv/tranquility-metrics-server]: java -Xms4g -Xmx4g -cp “dist/tranquility/lib/*:dist/tranquility/conf” com.metamx.tranquility.distribution.DistributionMain server -configFile conf/tranquility/server-for-metrics.yaml

[Thu Feb 21 19:02:57 2019] Command[tranquility-kafka] exited (pid = 32119, exited = 1)

[Thu Feb 21 19:02:57 2019] Command[tranquility-kafka] failed, see logs for more details: /home/lianbaotest/abner/imply-2.8.10/var/sv/tranquility-kafka/current

[Thu Feb 21 19:02:57 2019] Command[tranquility-server] exited (pid = 32118, exited = 1)

[Thu Feb 21 19:02:57 2019] Command[tranquility-server] failed, see logs for more details: /home/lianbaotest/abner/imply-2.8.10/var/sv/tranquility-server/current

[Thu Feb 21 19:03:00 2019] Running command[tranquility-server], logging to[/home/lianbaotest/abner/imply-2.8.10/var/sv/tranquility-server]: bin/tranquility server -configFile conf/tranquility/server.json

[Thu Feb 21 19:03:00 2019] Running command[tranquility-kafka], logging to[/home/lianbaotest/abner/imply-2.8.10/var/sv/tranquility-kafka]: bin/tranquility kafka -configFile conf/tranquility/kafka.json

[Thu Feb 21 19:03:00 2019] Command[tranquility-server] exited (pid = 32369, exited = 1)

the detail log:

tranquility-kafka/current and tranquility-server/current are the same info:Error: Could not find or load main class com.metamx.tranquility.distribution.DistributionMain

在 2019年2月21日星期四 UTC+8下午6:12:01,22706…@qq.com写道: