国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

ClickHouse報錯:Code: 210. DB::NetException: Connection refused (localhost:9000)

這篇具有很好參考價值的文章主要介紹了ClickHouse報錯:Code: 210. DB::NetException: Connection refused (localhost:9000)。希望對大家有所幫助。如果存在錯誤或未考慮完全的地方,請大家不吝賜教,您也可以點擊"舉報違法"按鈕提交疑問。

TNND,我是真的服了,估計玩阿里云集群的兄弟,都會遇到這個個問題。

首先我們來看啟動信息:

[root@hadoop101 ~]# clickhouse-client -m?
ClickHouse client version 20.4.5.36 (official build).
Connecting to localhost:9000 as user default.
Code: 210. DB::NetException: Connection refused (localhost:9000)

從上面看,完全看不出問題,別信網(wǎng)上說的什么端口占用、進(jìn)程沒關(guān)

直接開日志

[root@hadoop101 clickhouse-server]# tail -f clickhouse-server.log

我們截取ERROR日志信息

2022.02.14 17:32:43.642826 [ 2396 ] {} <Information> Application: starting up
2022.02.14 17:32:43.646257 [ 2396 ] {} <Debug> Application: rlimit on number of file descriptors is 500000
2022.02.14 17:32:43.646274 [ 2396 ] {} <Debug> Application: Initializing DateLUT.
2022.02.14 17:32:43.646282 [ 2396 ] {} <Trace> Application: Initialized DateLUT with time zone 'Asia/Shanghai'.
2022.02.14 17:32:43.646304 [ 2396 ] {} <Debug> Application: Setting up /var/lib/clickhouse/tmp/ to store temporary data in it
2022.02.14 17:32:43.646484 [ 2396 ] {} <Debug> Application: Configuration parameter 'interserver_http_host' doesn't exist or exists and empty. Will use 'hadoop101' as replica host.
2022.02.14 17:32:43.648321 [ 2396 ] {} <Debug> ConfigReloader: Loading config '/etc/clickhouse-server/users.xml'
2022.02.14 17:32:43.649468 [ 2396 ] {} <Information> Application: Uncompressed cache size was lowered to 3.75 GiB because the system has low amount of memory
2022.02.14 17:32:43.649689 [ 2396 ] {} <Information> Application: Mark cache size was lowered to 3.75 GiB because the system has low amount of memory
2022.02.14 17:32:43.649726 [ 2396 ] {} <Information> Application: Setting max_server_memory_usage was set to 6.75 GiB
2022.02.14 17:32:43.649734 [ 2396 ] {} <Information> Application: Loading metadata from /var/lib/clickhouse/
2022.02.14 17:32:43.651423 [ 2396 ] {} <Information> DatabaseOrdinary (system): Total 2 tables and 0 dictionaries.
2022.02.14 17:32:43.656837 [ 2401 ] {} <Information> BackgroundProcessingPool: Create BackgroundProcessingPool with 16 threads
2022.02.14 17:32:43.657703 [ 2401 ] {} <Debug> system.metric_log: Loading data parts
2022.02.14 17:32:43.663843 [ 2401 ] {} <Debug> system.metric_log: Loaded data parts (2 items)
2022.02.14 17:32:43.664195 [ 2401 ] {} <Debug> system.trace_log: Loading data parts
2022.02.14 17:32:43.664937 [ 2401 ] {} <Debug> system.trace_log: Loaded data parts (3 items)
2022.02.14 17:32:43.665026 [ 2396 ] {} <Information> DatabaseOrdinary (system): Starting up tables.
2022.02.14 17:32:43.665941 [ 2396 ] {} <Information> DatabaseOrdinary (default): Total 0 tables and 0 dictionaries.
2022.02.14 17:32:43.665958 [ 2396 ] {} <Information> DatabaseOrdinary (default): Starting up tables.
2022.02.14 17:32:43.666002 [ 2396 ] {} <Information> BackgroundSchedulePool/BgSchPool: Create BackgroundSchedulePool with 16 threads
2022.02.14 17:32:43.666800 [ 2396 ] {} <Debug> Application: Loaded metadata.
2022.02.14 17:32:43.666835 [ 2396 ] {} <Trace> Pipe: Pipe capacity is 1.00 MiB
2022.02.14 17:32:43.668407 [ 2396 ] {} <Information> Application: Shutting down storages.
2022.02.14 17:32:43.668460 [ 2420 ] {} <Trace> SystemLog (system.trace_log): Flushing system log
2022.02.14 17:32:43.668545 [ 2420 ] {} <Debug> SystemLog (system.trace_log): Will use existing table system.trace_log for TraceLog
2022.02.14 17:32:43.668793 [ 2420 ] {} <Debug> DiskLocal: Reserving 1.00 MiB on disk `default`, having unreserved 26.30 GiB.
2022.02.14 17:32:43.669562 [ 2420 ] {} <Trace> system.trace_log: Renaming temporary part tmp_insert_202202_1_1_0 to 202202_19_19_0.
2022.02.14 17:32:44.665383 [ 2421 ] {} <Trace> SystemLog (system.metric_log): Flushing system log
2022.02.14 17:32:44.665754 [ 2421 ] {} <Debug> SystemLog (system.metric_log): Will use existing table system.metric_log for MetricLog
2022.02.14 17:32:44.667693 [ 2421 ] {} <Debug> DiskLocal: Reserving 1.00 MiB on disk `default`, having unreserved 26.30 GiB.
2022.02.14 17:32:44.668659 [ 2421 ] {} <Trace> system.metric_log: Renaming temporary part tmp_insert_202202_1_1_0 to 202202_71_71_0.
2022.02.14 17:32:44.669585 [ 2396 ] {} <Trace> BackgroundSchedulePool/BgSchPool: Waiting for threads to finish.
2022.02.14 17:32:44.669831 [ 2396 ] {} <Debug> Application: Shut down storages.
2022.02.14 17:32:44.670359 [ 2396 ] {} <Debug> Application: Destroyed global context.
2022.02.14 17:32:44.670824 [ 2396 ] {} <Error> Application: DB::Exception: Listen [::]:8123 failed: Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = DNS error: EAI: -9 (version 20.4.5.36 (official build))
2022.02.14 17:32:44.670847 [ 2396 ] {} <Information> Application: shutting down
2022.02.14 17:32:44.670853 [ 2396 ] {} <Debug> Application: Uninitializing subsystem: Logging Subsystem
2022.02.14 17:32:44.670904 [ 2399 ] {} <Trace> BaseDaemon: Received signal -2
2022.02.14 17:32:44.670925 [ 2399 ] {} <Information> BaseDaemon: Stop SignalListener thread

提取關(guān)鍵信息:

2022.02.14 17:32:44.670824 [ 2396 ] {} <Error> Application: DB::Exception: Listen [::]:8123 failed: Poco::Exception. Code: 1000, e.code() = 0, e.displayText() = DNS error: EAI: -9 (version 20.4.5.36 (official build))

他說連接不上這個端口,好了,我們一般到這就是去查看端口了,結(jié)構(gòu)netstat一看,沒被占用,就迷茫了。

重點:我們看配置文件就知道了

 <!-- Listen specified host. use :: (wildcard IPv6 address), if you want to accept connections both with IP
v4 and IPv6 from everywhere. -->

    <!-- <listen_host>::</listen_host> -->

    <!-- Same for hosts with disabled ipv6: -->
    <listen_host>0.0.0.0</listen_host>

    <!-- Default values - try listen localhost on ipv4 and ipv6: -->
    <!--
    <listen_host>::1</listen_host>
    <listen_host>127.0.0.1</listen_host>
    -->

從上面我們可以看得到,他說你要是用IPV4網(wǎng)絡(luò)格式的話,就不能用

<listen_host>::</listen_host>

必須的是

<listen_host>0.0.0.0</listen_host>

改好之后,重啟一下就好了,主要原因還是你云服務(wù)器沒開IPV6,應(yīng)該是這樣吧。文章來源地址http://www.zghlxwxcb.cn/news/detail-515983.html

到了這里,關(guān)于ClickHouse報錯:Code: 210. DB::NetException: Connection refused (localhost:9000)的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點僅代表作者本人,不代表本站立場。本站僅提供信息存儲空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實不符,請點擊違法舉報進(jìn)行投訴反饋,一經(jīng)查實,立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費用

相關(guān)文章

  • Finalshell(SSH)連接虛擬機報錯java.net.ConnectException: Connection refused

    Finalshell(SSH)連接虛擬機報錯java.net.ConnectException: Connection refused

    我最初安裝的虛擬機版本是 15 Pro,天真的以為老版本更穩(wěn)定,沒想到和win10或11不兼容,裝好之后,開啟虛擬機后 電腦就藍(lán)屏重啟,然后卸載重裝官網(wǎng)的新版 17 Pro,解決。 (下載地址) 安裝CentOS7鏡像的過程: 可以看到黑屏幕最上面有兩個選項,我們可以通過 上下鍵 來選擇

    2024年02月05日
    瀏覽(20)
  • 【已解決】解決Finalshell連接Linux報錯java.net.ConnectException: Connection refused: connect

    【已解決】解決Finalshell連接Linux報錯java.net.ConnectException: Connection refused: connect

    ?錯誤提示:java.net.ConnectException: Connection time out: connect 解決辦法:重新啟動系統(tǒng)SSH服務(wù)? ?如linux輸入? #service sshd restart

    2024年02月14日
    瀏覽(23)
  • 正確解決finalshell連接虛擬機報錯:java.net.ConnectException: Connection refused: connect

    正確解決finalshell連接虛擬機報錯:java.net.ConnectException: Connection refused: connect

    博客主頁:Skylar Lin 望本文能夠給您帶來一定的幫助,如果有錯誤的地方敬請斧正! 新人博主??,希望多多支持??,還有好多庫存和大家分享??。 轉(zhuǎn)載需注明出處和原作??。 從大二上學(xué)期就下載了 finalshell,不過當(dāng)時一直連接不上 virtualbox 的虛擬機,網(wǎng)上找了好幾篇文章

    2024年02月06日
    瀏覽(27)
  • git clone 報錯Failed to connect to localhost port 7891: Connection refused

    system: ubuntu18.04 pc: lenovo thinkpad p15v gen1 電腦有安裝VPN軟件,git clone 報錯?Failed to connect to localhost port 7891: Connection refused,嘗試了多種方法,都沒有效果,最后是這篇文章解決git下載出現(xiàn):Failed to connect to 127.0.0.1 port 1080: Connection refused拒絕連接錯誤_failed connect to 拒絕連接_點亮~

    2024年02月10日
    瀏覽(22)
  • K8s ? The connection to the server 報錯localhost:8080 was refused

    現(xiàn)象描述 K8s集群初始化成功后,kubectl get nodes 查看節(jié)點信息時報錯: 報錯信息: 解決辦法: 執(zhí)行以下命令

    2024年02月11日
    瀏覽(45)
  • 樹莓派VNC控制報錯:The connection was refused by the computer 已解決

    樹莓派VNC控制報錯:The connection was refused by the computer 已解決

    在進(jìn)行VNC遠(yuǎn)程操控樹莓派的時候,出現(xiàn)了這個錯誤:The connection was refused by the computer。 大概原因有兩個:一個是樹莓派的IP地址更改了,另一個就是樹莓派的VNC服務(wù)沒有開啟。 我的這塊板子是個新板子,原因很顯然是后者。解決方法如下: 1.打開PUTTY登錄樹莓派 2. 輸入自己樹

    2024年02月08日
    瀏覽(18)
  • 項目啟動 zookeeper 報錯 java.net.ConnectException: Connection refused: no further information 解決問題思路分析

    項目啟動 zookeeper 報錯 java.net.ConnectException: Connection refused: no further information 解決問題思路分析

    項目啟動不停的刷 java.net.ConnectException: Connection refused: no further information 鏈接被拒絕如下: 開始排查問題: 1.首先查看代碼是不是有人提交了本地配置到倉庫,導(dǎo)致自己配置文件無法讀取到自己本地的配置文件,導(dǎo)致鏈接超時,鏈接不上zookeeper的服務(wù) 本地配置文件讀取的還是本地的

    2024年02月16日
    瀏覽(32)
  • 解決:git出現(xiàn)Failed to connect to 127.0.0.1 port 1080 Connection refused 的報錯

    解決:git出現(xiàn)Failed to connect to 127.0.0.1 port 1080 Connection refused 的報錯

    使用git將代碼push到遠(yuǎn)程倉庫時,一直都出現(xiàn)端口代理的問題。 完成了以上兩個步驟后,還是沒有解決,但是報錯的信息發(fā)生了變化。出現(xiàn)了如下的錯誤。 ? 結(jié)果如下圖,檢查出有網(wǎng)絡(luò)問題,需要解決網(wǎng)絡(luò)問題。 一.需要在hosts文件中添加映射 1.hosts文件存在于: C:WindowsSy

    2024年02月15日
    瀏覽(18)
  • 【github】linux 拉代碼報錯解決:Failed to connect to github.com port 443: Connection refused

    【github】linux 拉代碼報錯解決:Failed to connect to github.com port 443: Connection refused

    有一天下午,服務(wù)器(linux)突然 github 無法 pull/push 也不能 clone 代碼了,報錯如下: 嘗試了修改代理等方法,還是無法解決,最終找到了一個解決方案: 修改/etc/hosts文件,hosts文件是Linux系統(tǒng)中一個負(fù)責(zé)IP地址與域名快速解析的文件 步驟: vi /etc/hosts 將行加入即可: 140.82

    2024年02月07日
    瀏覽(52)
  • 解決Ubuntu18.04的git clone報錯Failed to connect to github.com port 443: Connection refused

    解決Ubuntu18.04的git clone報錯Failed to connect to github.com port 443: Connection refused

    (只看解決方法的可直接拉到文末?。。。?第一次在ubuntu終端使用git clone,結(jié)果報錯?Failed to connect to github.com port 443: Connection refused,折騰了半天,終于成功下載(感謝這篇博客解救git clone 時Failed to connect to github.com port 443:connection timed out 怎么辦-CSDN博客) 先把終端操作貼下

    2024年02月06日
    瀏覽(34)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包