我使用嵌入式涌入https://github.com/APISENSE/embed-influxDB版本1.1.1。我使用以下代码片段在mac os 10.12.6上启动嵌入式涌入
val builder = new InfluxServer.Builder
freeServerPort = Network.getFreeServerPort
val influxConfig = new InfluxConfigurationWriter.Builder().setHttp(freeServerPort).build
builder.setInfluxConfiguration(influxConfig)
server = builder.build
server.start()
Thread.sleep(10 * 1000)
InfluxDBFactory.connect("http://" + EMBEDDED_INFLUX_HOST + ":" + freeServerPort)
每次我尝试运行它时,都会收到以下消息:
[涌入错误] / var / folders / z6 / zxktn8v10nx_ssb1zctm_5w80000gn / T / extract -c9d95ee0-f9fb-4387-bb94-e85806f45c21influxd:/ var / folders / z6 / zxktn8v10nx_ssb1zctm_5w80000gn / T / extract-c9d95ee0-f9fb-4387-bb94 -e85806f45c21influxd:无法执行二进制文件 [涌入错误]