Ich versuche, die Influxdb-Python-Lib, die ich gefunden here. Aber ich kann nicht einmal das Tutorial-Programm funktionieren.influxdb Python: 404 Seite nicht gefunden
Wenn ich den folgenden Beispielcode auszuführen:
$ python
>>> from influxdb import InfluxDBClient
>>> json_body = [
{
"measurement": "cpu_load_short",
"tags": {
"host": "server01",
"region": "us-west"
},
"time": "2009-11-10T23:00:00Z",
"fields": {
"value": 0.64
}
}
]
>>> client = InfluxDBClient('localhost', 8086, 'root', 'root', 'example')
>>> client.create_database('example')
Ich erhalte diese Fehlermeldung mit der letzten Zeile:
>>> client.create_database('example')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib/python2.7/dist-packages/influxdb/client.py", line 318, in create_database
status_code=201
File "/usr/lib/python2.7/dist-packages/influxdb/client.py", line 124, in request
raise InfluxDBClientError(response.content, response.status_code)
influxdb.client.InfluxDBClientError: 404: 404 page not found
Meine installierte Version:
[email protected]:~ $ influx
Visit https://enterprise.influxdata.com to register for updates, InfluxDB server management, and monitoring.
Connected to http://localhost:8086 version 0.9.6.1
InfluxDB shell 0.9.6.1
Es wäre wirklich schön, wenn jemand mich hier auf mein Problem hinweisen kann.
UPDATE
Vielleicht ist das hilfreich. Ich bin auf einem Raspberry Pi 3 mit Jessie und mit diesem tuturial link
UPDATE 2
installiert influxdb wenn ich curl http://localhost:8086
laufen bekomme ich auch 404 Seite nicht gefunden. Auf dem Port 8083 bekomme ich eine Antwort.
danke, ich schon diese Abhilfe verwenden, aber ich bin für eine Antwort für mein Problem mit dem influxdb-Python lib – IIIIIIIIIIIIIIIIIIIIII
Testen der Anleitung mit dem Download 0.12.2 tar.gz (https suchen: // dl. influxdata.com/influxdb/releases/influxdb-0.12.2-1_linux_armhf.tar.gz) arbeitete an einer 64-Bit-Linux-VM, aber nicht an der Himbeer-PI. – sdbol
Hat die Interaktion mit InfluxDB auf einem Rasberry Pi über die [InfluxDB CLI] (https://docs.influxdata.com/influxdb/v0.12/tools/shell) auch ähnliche Probleme? Ich frage mich, ob dies ein allgemeines ARM InfluxDB-Problem oder speziell der Python-Client ist. –