質問編集履歴
4
文章を修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
5,ソースコード上で`opentsdb_url = 'http://localhost:4242/api/put'`,`opentsdb_url = 'http://localhost:4242'`,
|
16
16
|
`opentsdb_url = 'http://localhost'`を実験
|
17
17
|
6,下記の`/var/log/opentsdb/opentsdb.log` が発生している。
|
18
|
+
7,`$ sudo service ufw stop`を実行して試しましたが同じエラーが出ます
|
18
19
|
```/var/log/opentsdb/opentsdb.log
|
19
20
|
18:09:29.853 INFO [ClientCnxn.logStartConnect] - Opening socket connection to server localhost/[0:0:0:0:0:0:0:1]:2181. Will not attempt to authenticate using SASL (unknown error)
|
20
21
|
18:09:29.857 WARN [ClientCnxn.run] - Session 0x0 for server localhost/[0:0:0:0:0:0:0:1]:2181, unexpected error, closing socket connection and attempting reconnect
|
3
文章を修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -14,6 +14,19 @@
|
|
14
14
|
4,opentsdb.confでポート番号を確認
|
15
15
|
5,ソースコード上で`opentsdb_url = 'http://localhost:4242/api/put'`,`opentsdb_url = 'http://localhost:4242'`,
|
16
16
|
`opentsdb_url = 'http://localhost'`を実験
|
17
|
+
6,下記の`/var/log/opentsdb/opentsdb.log` が発生している。
|
18
|
+
```/var/log/opentsdb/opentsdb.log
|
19
|
+
18:09:29.853 INFO [ClientCnxn.logStartConnect] - Opening socket connection to server localhost/[0:0:0:0:0:0:0:1]:2181. Will not attempt to authenticate using SASL (unknown error)
|
20
|
+
18:09:29.857 WARN [ClientCnxn.run] - Session 0x0 for server localhost/[0:0:0:0:0:0:0:1]:2181, unexpected error, closing socket connection and attempting reconnect
|
21
|
+
java.net.ConnectException: Connection refused
|
22
|
+
at java.base/sun.nio.ch.Net.pollConnect(Native Method) ~[na:na]
|
23
|
+
at java.base/sun.nio.ch.Net.pollConnectNow(Net.java:672) ~[na:na]
|
24
|
+
at java.base/sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:973) ~[na:na]
|
25
|
+
at org.apache.zookeeper.ClientCnxnSocketNIO.doTransport(ClientCnxnSocketNIO.java:361) ~[zookeeper-3.4.6.jar:3.4.6-1569965]
|
26
|
+
at org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:1081) ~[zookeeper-3.4.6.jar:3.4.6-1569965]
|
27
|
+
|
28
|
+
```
|
29
|
+
|
17
30
|
```
|
18
31
|
$ systemctl status opentsdb
|
19
32
|
● opentsdb.service - LSB: Starts OpenTSDB TSD
|
2
文章を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,6 +5,7 @@
|
|
5
5
|
OS:ubuntu server for rasberrypi 22.04.3 LTS
|
6
6
|
言語: python3
|
7
7
|
データベース: opentsdb
|
8
|
+
本体: raspberry pi 4 8gb
|
8
9
|
|
9
10
|
### 確認したこと、試したこと
|
10
11
|
1,再起動
|
1
文章を追加
test
CHANGED
File without changes
|
test
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
### 質問内容
|
2
|
-
ラズベリーパイ4で同じローカル環境にあるopentsdbに接続してデータを追加したいのですが以下のエラーになり追加できませんこれなぜでしょうか?
|
2
|
+
ラズベリーパイ4で同じローカル環境で同じpc内にあるopentsdbに接続してデータを追加したいのですが以下のエラーになり追加できませんこれなぜでしょうか?
|
3
3
|
|
4
4
|
### 環境
|
5
5
|
OS:ubuntu server for rasberrypi 22.04.3 LTS
|