apisense / embed-influxdb Goto Github PK
View Code? Open in Web Editor NEWDownload and start influxDB servers at runtime
License: Apache License 2.0
Download and start influxDB servers at runtime
License: Apache License 2.0
I use the provided code snippet to start embedded influx on mac os 10.12.6, but I every time I try to run it I get the following message: [influxd error]/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: cannot execute binary file
[influxd error]
It's will be great to have the opportunity to be able to check server state, for some internal manipulation, like to lock the thread until influx not stopped and cleaned properly.
Will be enough to have some getter method that will safely expose server state.
public ServerState getState() {
return currentState;
}
I think that overall, the configuration system I created initially has to be rethought in order to expose a more modular interface to create configuration sections.
This would enable us in the long run to add more configuration possibilities about udp, among others.
Is there any plans to support InfluxDB 2.0?
If I had time to contribute a PR would it be accepted?
As mentioned by @fsanaulla in #6, we should propose a ConfigurationWriter
implementation able to use an existing influx config file.
I think in this case the methods should have the following behaviour:
addStatement
: Throw an UnsupportedOperationException
.writeFile
: Return the user given config file.getDataPath
: The main difficulty here since we should parse the given configuration file to retrieve the data path. And even if our configuration centralize all the data in a directory, the user defined configuration may come with multiple data directory.Maybe we should give the option to the user to set a data directory to remove on server stop? This would avoid us to parse the given configuration file.
I am trying to set up a test context on Spring Boot with JDK 11 and am having the following problem:
20:16:22.120 [main] INFO io.apisense.embed.influx.InfluxServer - Initializing server: io.apisense.embed.influx.InfluxServer@57c758ac 20:16:22.206 [main] INFO io.apisense.embed.influx.InfluxServer - Starting server: io.apisense.embed.influx.InfluxServer@57c758ac 20:16:22.208 [main] DEBUG io.apisense.embed.influx.configuration.InfluxConfigurationWriter - Writing configuration file into: /var/folders/ny/jtc4x5md3gb7ff_79k7srk_80000gn/T/influxdb.config7344154943554392480111696521971499 20:16:22.222 [main] DEBUG io.apisense.embed.influx.execution.embed.InfluxProcess - Using config file /var/folders/ny/jtc4x5md3gb7ff_79k7srk_80000gn/T/influxdb.config7344154943554392480111696521971499 java.lang.NoSuchFieldException: handle at java.base/java.lang.Class.getDeclaredField(Class.java:2411) at de.flapdoodle.embed.process.runtime.Processes.windowsProcessId(Processes.java:109) at de.flapdoodle.embed.process.runtime.Processes.access$200(Processes.java:51) at de.flapdoodle.embed.process.runtime.Processes$PidHelper$2.getPid(Processes.java:209) at de.flapdoodle.embed.process.runtime.Processes.processId(Processes.java:72) at de.flapdoodle.embed.process.runtime.ProcessControl.<init>(ProcessControl.java:64) at de.flapdoodle.embed.process.runtime.ProcessControl.start(ProcessControl.java:205) at de.flapdoodle.embed.process.runtime.AbstractProcess.<init>(AbstractProcess.java:98) at io.apisense.embed.influx.execution.embed.InfluxProcess.<init>(InfluxProcess.java:25) at io.apisense.embed.influx.execution.embed.InfluxExecutable.start(InfluxExecutable.java:24) at io.apisense.embed.influx.execution.embed.InfluxExecutable.start(InfluxExecutable.java:11) at de.flapdoodle.embed.process.runtime.Executable.start(Executable.java:101) at io.apisense.embed.influx.execution.InfluxExecutor.start(InfluxExecutor.java:41) at io.apisense.embed.influx.InfluxServer.start(InfluxServer.java:65) at br.com.picpay.conciliations.TEste.main(TEste.java:41)
Taking a good look at the problem, I noticed that the java.lang.ProcessImpl
class does not have the handle
field, but the processHandle
field, so the exception is thrown.
Regards.
Instead of generating [[udp]]
it generates [udp]
. Solution can be find here.
In short, we need wrap UDP section content in List, when putting it to config map.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.