物联网系统无法连接TDengine数据库

Blade 未结 2 46

在CentOS7上部署物联网系统,链接不上TDengine数据库,报错日志如下:

ava.net.UnknownHostException: blade-broker: 未知的名称或服务

at java.base/java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)

at java.base/java.net.InetAddress$PlatformNameService.lookupAllHostAddr(InetAddress.java:933)

at java.base/java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1543)

at java.base/java.net.InetAddress$NameServiceAddresses.get(InetAddress.java:852)

at java.base/java.net.InetAddress.getAllByName0(InetAddress.java:1532)

at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1384)

at java.base/java.net.InetAddress.getAllByName(InetAddress.java:1305)

at org.apache.http.impl.conn.SystemDefaultDnsResolver.resolve(SystemDefaultDnsResolver.java:45)

at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:112)

at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:376)

at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:393)

at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)

at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:186)

at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)

at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)

at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:118)

at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)

at org.springblade.iot.base.proxy.core.ProxyServlet.doExecute(ProxyServlet.java:435)

at org.springblade.iot.base.proxy.core.ProxyServlet.service(ProxyServlet.java:373)

at jakarta.servlet.http.HttpServlet.service(HttpServlet.java:614)

at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:74)

at io.undertow.servlet.handlers.FilterHandler$FilterChainImpl.doFilter(FilterHandler.java:129)

at org.springblade.core.tool.request.Blade

截图.jpg

2条回答
  • 看下工程配置tdengine的yaml文件,td的地址是配置的什么。你在服务器访问这个地址+6060端口看看是否能正确访问。


    另外请给我们邮箱:bladejava@qq.com 发一个邮件提供授权公司名,登记为商业账号后方可进行商业版问题答疑。

    0 讨论(0)
  •  blade-broker: 未知的名称或服务,应该是配置错了。

    请检查配置项目:

    tdengine.jdbc-url:jdbc:TAOS-RS://127.0.0.1:6041?useSSL=false


    0 讨论(0)
提交回复