排障日志

一、访问 HTTPS 出现 “HTTP request failed” 的错误排除

环境

CentOS release 6.5 (Final)

起因

[root@localhost ~]# go get github.com/gorilla/mux
# cd .; git clone https://github.com/gorilla/mux /data0/app/gopath/src/github.com/gorilla/mux
Initialized empty Git repository in /data0/app/gopath/src/github.com/gorilla/mux/.git/
error:  while accessing https://github.com/gorilla/mux/info/refs

fatal: HTTP request failed
package github.com/gorilla/mux: exit status 128

过程

1. 使用 git 命令测试

[root@localhost ~]# git clone https://github.com/gorilla/mux.git
Initialized empty Git repository in /root/golang/mux/.git/
error:  while accessing https://github.com/gorilla/mux.git/info/refs

fatal: HTTP request failed

2. 使用 curl 测试

[root@localhost ~]# curl -v https://github.com/gorilla/mux.git
* About to connect() to github.com port 443 (#0)
*   Trying 13.229.188.59... connected
* Connected to github.com (13.229.188.59) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
*   CAfile: /etc/pki/tls/certs/ca-bundle.crt
  CApath: none
* NSS error -12190
* Closing connection #0
* SSL connect error
curl: (35) SSL connect error

发现是 SSL connect error

解决办法

yum update nss

更新网络安全服务。问题解决。

转载于:https://my.oschina.net/heiing/blog/1800873

针对排障问题,可以采取以下步骤来解决zookeeper的问题: 1. 检查Zookeeper的客户端最大连接数是否足够。通常,在一个大集群中,对于Zookeeper的访问量会比较大,因此需要增大Zookeeper的客户端最大连接数。 2. 检查Zookeeper服务器的日志,查看Hive应用产生的Znode节点数。如果Znode节点数过多,可能会导致Zookeeper的负载较高,并需要更多的内存。可以使用命令"grep hive_zookeeper_namespace_hive zookeeper-cmf-zookeeper-SERVER-DSJ-RTB-4T-205.log|wc -l"来查看Znode节点数。如果节点数过多,可以考虑优化Hive应用,减少Znode节点数。 3. 检查Zookeeper的内存配置是否足够。对于大型集群,Zookeeper需要更多的内存来处理高负载。建议将Zookeeper的内存调整到4G。 4. 进行ZooKeeper shell巡检,确保Zookeeper的基本功能正常运行。可以使用ZooKeeper shell命令来检查Zookeeper集群的状态、节点信息等。通过巡检,可以及时发现并解决Zookeeper的问题。 通过以上步骤,可以对Zookeeper进行排障并解决问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *2* *3* [大数据运维存档(3)HDFS&ZooKeeper调优与排障](https://blog.csdn.net/qq_36269641/article/details/111737195)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值