![DC/OS 安装](https://linux22.com/image/1140835/DC%2FOS%20%E5%AE%89%E8%A3%85.png)
我是 DC/OS 新手,我为其设置了 1 个主节点和 3 个代理节点。当我尝试bash dcos_install.sh master
在主节点上操作时,出现以下错误:
Starting DC/OS Install Process
Running preflight checks
Checking if DC/OS is already installed: PASS (Not installed)
dcos_install.sh: line 252: getenforce: command not found
PASS Is SELinux disabled?
Checking if docker is installed and in PATH: PASS
Checking docker version requirement (>= 1.6): PASS (1.12.1)
Checking if curl is installed and in PATH: PASS
Checking if bash is installed and in PATH: PASS
Checking if ping is installed and in PATH: PASS
Checking if tar is installed and in PATH: PASS
Checking if xz is installed and in PATH: PASS
Checking if unzip is installed and in PATH: PASS
Checking if ipset is installed and in PATH: PASS
Checking if systemd-notify is installed and in PATH: PASS
Checking if systemd is installed and in PATH: PASS
Checking systemd version requirement (>= 200): PASS (229)
Checking if group 'nogroup' exists: PASS
Checking if port 53 (required by spartan) is in use: PASS
Checking if port 80 (required by adminrouter) is in use: PASS
Checking if port 443 (required by adminrouter) is in use: PASS
Checking if port 1050 (required by 3dt) is in use: PASS
Checking if port 2181 (required by zookeeper) is in use: PASS
Checking if port 5050 (required by mesos-master) is in use: PASS
Checking if port 7070 (required by cosmos) is in use: PASS
Checking if port 8080 (required by marathon) is in use: PASS
Checking if port 8101 (required by dcos-oauth) is in use: PASS
Checking if port 8123 (required by mesos-dns) is in use: PASS
Checking if port 8181 (required by exhibitor) is in use: PASS
Checking if port 9000 (required by metronome) is in use: PASS
Checking if port 9942 (required by metronome) is in use: PASS
Checking if port 9990 (required by cosmos) is in use: PASS
Checking if port 15055 (required by dcos-history) is in use: PASS
Checking if port 33107 (required by navstar) is in use: PASS
Checking if port 36771 (required by marathon) is in use: PASS
Checking if port 41281 (required by zookeeper) is in use: PASS
Checking if port 42819 (required by spartan) is in use: PASS
Checking if port 43911 (required by minuteman) is in use: PASS
Checking if port 46839 (required by metronome) is in use: PASS
Checking if port 61053 (required by mesos-dns) is in use: PASS
Checking if port 61420 (required by epmd) is in use: PASS
Checking if port 61421 (required by minuteman) is in use: PASS
Checking if port 62053 (required by spartan) is in use: PASS
Checking if port 62080 (required by navstar) is in use: PASS
Checking Docker is configured with a production storage driver: WARNING: No swap limit support
PASS (aufs)
Creating directories under /etc/mesosphere
Creating role file for master
Configuring DC/OS
Setting and starting DC/OS
A dependency job for dcos-setup.service failed. See 'journalctl -xe' for details.
root@master:/tmp/dcos# journalctl -xe
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
当我打开 journalctl -xe 时显示如下。
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit dcos-download.service has begun starting up.
Sep 27 09:52:11 master curl[3385]: * Couldn't open file /opt/dcos_install_tmp/bootstrap/5b4aa43610c57ee1d60b4aa0751a1fb75824c083.bootstrap.tar.xz
Sep 27 09:52:11 master curl[3385]: * Closing connection -1
Sep 27 09:52:11 master curl[3385]: curl: (37) Couldn't open file /opt/dcos_install_tmp/bootstrap/5b4aa43610c57ee1d60b4aa0751a1fb75824c083.bootstrap.tar.xz
Sep 27 09:52:11 master systemd[1]: dcos-download.service: Control process exited, code=exited status=37
Sep 27 09:52:11 master systemd[1]: Failed to start Pkgpanda: Download DC/OS to this host..
-- Subject: Unit dcos-download.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit dcos-download.service has failed.
--
-- The result is failed.
Sep 27 09:52:11 master systemd[1]: Dependency failed for Pkgpanda: Specialize DC/OS for this host..
-- Subject: Unit dcos-setup.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit dcos-setup.service has failed.
--
-- The result is dependency.
Sep 27 09:52:11 master systemd[1]: dcos-setup.service: Job dcos-setup.service/start failed with result 'dependency'.
Sep 27 09:52:11 master systemd[1]: dcos-download.service: Unit entered failed state.
Sep 27 09:52:11 master systemd[1]: dcos-download.service: Failed with result 'exit-code'.
这是权限错误还是我的配置文件中的配置问题?
答案1
问题似乎出在我的配置文件上。我通过更改 config.yaml 中的 bootstrap_url 解决了这个问题,问题解决了!