In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail what to do when the remote node fails to execute the apt-get update command in ceph-deploy install. The content of the article is of high quality, so the editor shares it for you as a reference. I hope you will have some understanding of the relevant knowledge after reading this article.
Environment
OS:Ubuntu 16.04
Background
Deploy the Ceph cluster using ceph-deploy, call the ceph-deploy install command to install the ceph environment on the remote node, and fail to execute the apt-get update command.
Err:1 http://mirrors.163.com/ubuntu xenial InRelease Temporary failure resolving 'mirrors.163.com' analysis
The principle of ceph-deploy is that ssh logs in to the remote node without a password, and then executes various commands. Combined with the apt-get command just now, you actually execute a command similar to "ssh remote_node apt-get update". So I went back to the admin node that executed ceph-deploy and executed ssh remote_node apt-get update, and sure enough, it failed.
Connect directly to the node with the problem and execute the apt-get update command without any problems. In this way, it should be a problem of some environmental variables. There is a network agent in my environment, and two environment variables, http_proxy and https_proxy, must be configured to connect to the external network. I set these two environment variables in the / etc/profile configuration file, however, ssh uses bash as a non-login shell, so this file will not be loaded. We can execute the following command and we will find that apt-get can succeed. As for what non-login shell is, you can refer to login shell.
$ssh remote_node "bash-- login-c 'apt-get update'" Hit:1 http://mirrors.163.com/ubuntu xenial InReleaseHit:2 http://mirrors.163.com/ubuntu xenial-security InReleaseHit:3 http://mirrors.163.com/ubuntu xenial-updates InReleaseHit:4 http://mirrors.163.com/ubuntu http://mirrors.163.com/ubuntu xenial-backports InReleaseReading package lists...Building dependency tree...Reading state information...162 packages can be upgraded. Run 'apt list-- upgradable' to see them. Solution method
Put the configuration of http_proxy and https_proxy in / etc/environment, or ~ / .ssh / environment. Execute ceph-deploy install again, successful.
About ceph-deploy install when the remote node fails to execute the apt-get update command what to do to share here, I hope the above content can be of some help to you, can learn more knowledge. If you think the article is good, you can share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.