蓝鲸智云社区版添加agent节点失败
作者:互联网
如下点击报错后的按钮出现的详细安装步骤:
>>step 1 登录目标主机
[2019-04-25 14:27:14]: start ssh login.
[2019-04-25 14:27:14]: ssh login success.
>>step 2 安装基础依赖
[2019-04-25 14:27:16]: start run dependent cmd.
[2019-04-25 14:27:17]: [ -d /tmp/agents ] || mkdir -p /tmp/agents
[root@collector3_BKproxy ~]$
[2019-04-25 14:27:18]: LC_ALL=C ls -rtlh --color=never
total 22M
-rw-r--r--. 1 root root 9.8K Feb 28 2018 install.log.syslog
-rw-r--r--. 1 root root 37K Feb 28 2018 install.log
-rw-------. 1 root root 2.9K Feb 28 2018 anaconda-ks.cfg
-rw-r--r-- 1 root root 0 Mar 8 2018 CDHINSTALLED
-rw-r--r-- 1 root root 55 Mar 8 2018 crontabfile.tmp
-rw-r--r-- 1 root root 0 Aug 28 2018 =
-rwxr-xr-x 1 root root 172 Feb 22 17:41 test.sh
-rw-r--r-- 1 root root 22M Mar 6 10:06 Python-3.6.1.tgz
drwxr-xr-x 3 root root 4.0K Mar 20 16:23 test
-rw-r----- 1 root root 4.1K Apr 24 16:18 wus.sh
[root@collector3_BKproxy ~]$
[2019-04-25 14:27:18]: LC_ALL=C
[root@collector3_BKproxy ~]$ if which apt-get &>/dev/null
; then
> sudo apt-get makecache
> sudo apt-get -y install wget
> sudo apt-get -y install curl
> elif which yum &>/dev/null; then
> yum makecache
> yum install -y wget
> yum install -y curl
> elif which pkg &>/dev/null; then
> pkg install -y wget
> pkg install -y curl
> else
> false
> fi
Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id,
: security, subscription-manager, tmprepo, verify, versionlock
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Loading support for Red Hat kernel ABI
http://10.10.11.100:80/repo/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Trying other mirror.
http://10.10.11.100:80/repo/repodata/faf73fb2ca34d06b8d7aff873739931e4540a4a36bc12568e388c01a815be37a-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Trying other mirror.
Error: failure: repodata/faf73fb2ca34d06b8d7aff873739931e4540a4a36bc12568e388c01a815be37a-filelists.sqlite.bz2 from cloudera-manager: [Errno 256] No more mirrors to try.
Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id,
: security, subscription-manager, tmprepo, verify, versionlock
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Loading support for Red Hat kernel ABI
http://10.10.11.100:80/repo/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Trying other mirror.
[2019-04-25 14:27:19]: 3:execute fail.
[2019-04-25 14:27:19]: is_cmd_started:False, output:LC_ALL=C
[root@collector3_BKproxy ~]$ if which apt-get &>/dev/null
; then
> sudo apt-get makecache
> sudo apt-get -y install wget
> sudo apt-get -y install curl
> elif which yum &>/dev/null; then
> yum makecache
> yum install -y wget
> yum install -y curl
> elif which pkg &>/dev/null; then
> pkg install -y wget
> pkg install -y curl
> else
> false
> fi
Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id,
: security, subscription-manager, tmprepo, verify, versionlock
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Loading support for Red Hat kernel ABI
http://10.10.11.100:80/repo/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Trying other mirror.
http://10.10.11.100:80/repo/repodata/faf73fb2ca34d06b8d7aff873739931e4540a4a36bc12568e388c01a815be37a-filelists.sqlite.bz2: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Trying other mirror.
Error: failure: repodata/faf73fb2ca34d06b8d7aff873739931e4540a4a36bc12568e388c01a815be37a-filelists.sqlite.bz2 from cloudera-manager: [Errno 256] No more mirrors to try.
Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id,
: security, subscription-manager, tmprepo, verify, versionlock
This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register.
Loading support for Red Hat kernel ABI
http://10.10.11.100:80/repo/repodata/repomd.xml: [Errno 14] PYCURL ERROR 7 - "couldn't connect to host"
Trying other mirror.
, code:CURL_FILE_FAILED
[2019-04-25 14:27:19]: CURL_FILE_FAILED: install failed because failed cmd: LC_ALL=C
if which apt-get &>/dev/null; then
sudo apt-get makecache
sudo apt-get -y install wget
sudo apt-get -y install curl
elif which yum &>/dev/null; then
yum makecache
yum install -y wget
yum install -y curl
elif which pkg &>/dev/null; then
pkg install -y wget
pkg install -y curl
else
false
fi
到此,显示的安装信息就这么多,,,,,
解决办法:登陆此此agent节点服务器,删除会备份yum源的配置;
[root@collector3 yum.repos.d]# pwd
/etc/yum.repos.d
[root@collector3 yum.repos.d]# ll
总用量 4
-rwxr-xr-x 1 root root 109 11月 27 16:40 cloudera-manager.repo
/etc/yum.repos.d[root@collector3 yum.repos.d]# mv cloudera-manager.repo cloudera-manager.repo.bak
[root@collector3 yum.repos.d]# ll
总用量 4
-rwxr-xr-x 1 root root 109 11月 27 16:40 cloudera-manager.repo.bak
然后到蓝鲸,点击重新安装,安装成功
如下是安装成功的详细安装步骤:
>>step 1 登录目标主机
[2019-04-25 14:39:53]: start ssh login.
[2019-04-25 14:39:54]: ssh login success.
>>step 2 安装基础依赖
[2019-04-25 14:39:55]: start run dependent cmd.
[2019-04-25 14:39:55]: [ -d /tmp/agents ] || mkdir -p /tmp/agents [root@collector3_BKproxy ~]$
[2019-04-25 14:39:56]: LC_ALL=C ls -rtlh --color=never total 22M -rw-r--r--. 1 root root 9.8K Feb 28 2018 install.log.syslog -rw-r--r--. 1 root root 37K Feb 28 2018 install.log -rw-------. 1 root root 2.9K Feb 28 2018 anaconda-ks.cfg -rw-r--r-- 1 root root 0 Mar 8 2018 CDHINSTALLED -rw-r--r-- 1 root root 55 Mar 8 2018 crontabfile.tmp -rw-r--r-- 1 root root 0 Aug 28 2018 = -rwxr-xr-x 1 root root 172 Feb 22 17:41 test.sh -rw-r--r-- 1 root root 22M Mar 6 10:06 Python-3.6.1.tgz drwxr-xr-x 3 root root 4.0K Mar 20 16:23 test -rw-r----- 1 root root 4.1K Apr 24 16:18 wus.sh [root@collector3_BKproxy ~]$
[2019-04-25 14:39:57]: LC_ALL=C [root@collector3_BKproxy ~]$ if which apt-get &>/dev/null ; then > sudo apt-get makecache > sudo apt-get -y install wget > sudo apt-get -y install curl > elif which yum &>/dev/null; then > yum makecache > yum install -y wget > yum install -y curl > elif which pkg &>/dev/null; then > pkg install -y wget > pkg install -y curl > else > false > fi Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id, : security, subscription-manager, tmprepo, verify, versionlock This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Loading support for Red Hat kernel ABI Metadata Cache Created Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id, : security, subscription-manager, tmprepo, verify, versionlock This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Loading support for Red Hat kernel ABI Setting up Install Process Nothing to do
[2019-04-25 14:39:58]: Loaded plugins: aliases, changelog, downloadonly, kabi, presto, product-id, : security, subscription-manager, tmprepo, verify, versionlock This system is not registered to Red Hat Subscription Management. You can use subscription-manager to register. Loading support for Red Hat kernel ABI Setting up Install Process Nothing to do [root@collector3_BKproxy ~]$
[2019-04-25 14:39:58]: rm -f /tmp/agents/agent_setup_pro.sh [root@collector3_BKproxy ~]$
[2019-04-25 14:39:59]: LC_ALL=C curl -o /tmp/agents/agent_setup_pro.sh htt p://10.10.11.89:80/download/agent_setup_pro.sh % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 100 34674 100 34674 0 0 30.6M 0 --:--:-- --:--:-- --:--:-- 33.0M [root@collector3_BKproxy ~]$
[2019-04-25 14:40:00]: chmod a+x /tmp/agents/agent_setup_pro.sh [root@collector3_BKproxy ~]$
>>step 3 执行安装脚本
[2019-04-25 14:40:00]: prepare to call real install script【"LC_ALL=C /tmp/agents/agent_setup_pro.sh -m client -g 10.10.11.89:80"】
[2019-04-25 14:40:01]: LC_ALL=C /tmp/agents/agent_setup_pro.sh -m client -g 10.10.11.89:80 [10.10.11.14]20190425-144126 245 remove old gse agent
[2019-04-25 14:40:06]: [10.10.11.14]20190425-144131|85 stop gse_agent ...
[2019-04-25 14:40:06]: no need to wait cmd run over.
[2019-04-25 14:40:06]: start install script success, ret code is【SUCCESS】
[2019-04-25 14:40:06]: Done [10.10.11.14]20190425-144131|111 stop basereport ...
[2019-04-25 14:40:08]: Done [10.10.11.14]20190425-144133|111 stop bkmetricbeat ...
[2019-04-25 14:40:10]: Done [10.10.11.14]20190425-144135|111 stop processbeat ...
[2019-04-25 14:40:12]: Done [10.10.11.14]20190425-144137|111 stop unifytlogc ...
[2019-04-25 14:40:14]: Done [10.10.11.14]20190425-144139 258 stop gse process if exists
[2019-04-25 14:40:14]: [10.10.11.14]20190425-144139 746 create directory /var/{log,run,lib}/gse --2019-04-25 14:41:39-- http://10.10.11.89/download/gse_client-linux-x86_64.tgz Connecting to 10.10.11.89:80... connected. HTTP request sent, awaiting response... 200 OK Length: 31890415 (30M) [application/octet-stream] Saving to: `gse_client-linux-x86_64.tgz' 0% [ ] 0 --.-K/s
[2019-04-25 14:40:14]: 73% [===========================> ] 23,463,848 112M/s
[2019-04-25 14:40:14]: 100%[======================================>] 31,890,415 112M/s in 0.3s 2019-04-25 14:41:39 (112 MB/s) - `gse_client-linux-x86_64.tgz' saved [31890415/31890415] [10.10.11.14]20190425-144139 525 extract packge: /tmp/gse_client-linux-x86_64.tgz
[2019-04-25 14:40:15]: [10.10.11.14]20190425-144141 529 render configuration files: /usr/local/gse/agent/etc/* [10.10.11.14]20190425-144141 258 stop gse process if exists
[2019-04-25 14:40:15]: [10.10.11.14]20190425-144141 496 start gse processes [10.10.11.14]20190425-144141|225 10.10.11.14 -- gse node on /usr/local/gse/agent: agent [10.10.11.14]20190425-144141|140 start gse_agent ...
[2019-04-25 14:40:16]: Done [10.10.11.14]20190425-144141 759 agent(client) setup done -- install_success [10.10.11.14]20190425-144141 761 remove temperary files [root@collector3_BKproxy ~]$
>>step 4 安装脚本执行完毕
>>step 5 注册主机到CMDB
[2019-04-25 14:40:17]: registered to cmdb success: success
>>step 6 检测Agent状态和版本
[2019-04-25 14:40:19]: check agent status(1/60)(bk_agent_alive: 1->alive, 0->dead): 0
[2019-04-25 14:40:23]: check agent status(2/60)(bk_agent_alive: 1->alive, 0->dead): 0
[2019-04-25 14:40:27]: check agent status(3/60)(bk_agent_alive: 1->alive, 0->dead): 0
[2019-04-25 14:40:31]: check agent status(4/60)(bk_agent_alive: 1->alive, 0->dead): 0
[2019-04-25 14:40:35]: check agent status(5/60)(bk_agent_alive: 1->alive, 0->dead): 0
[2019-04-25 14:40:39]: check agent status(6/60)(bk_agent_alive: 1->alive, 0->dead): 0
[2019-04-25 14:40:43]: check agent status(7/60)(bk_agent_alive: 1->alive, 0->dead): 0
[2019-04-25 14:40:47]: check agent status(8/60)(bk_agent_alive: 1->alive, 0->dead): 0
[2019-04-25 14:40:51]: check agent status finished:operate success
标签:25,14,04,蓝鲸,agent,2019,install,root,智云 来源: https://blog.csdn.net/weixin_40991510/article/details/89515582