在使用dcos-vagrant进行本地DC / OS群集配置一段时间之后,我安装了一个3节点最小DC / OS群集。
现在,每当我执行dcos package list
(或任何其他dcos package
命令)时,我都会收到以下错误:
URL [http://m1.dcos/package/describe]无法访问:HTTPConnectionPool(host =' m1.dcos',port = 80):使用url:/ package / describe超出了最大重试次数(由NewConnectionError引起(&# 39;:无法建立新连接:[Errno 8]提供节点名称或服务名称,或者不知道',))
为什么呢?如何解决?
答案 0 :(得分:1)
您应该使用dcos config show
检查DC / OS配置。
$ dcos config show
core.dcos_acs_token ********
core.dcos_url http://m1.dcos
使用core.dcos_url
将dcos config set <name> <value>
更改为新的DC / OS主网址。
$ dcos config set core.dcos_url http://localhost:8000
[core.dcos_url]: changed from 'http://m1.dcos' to 'http://localhost:8000'
$ dcos package list
Your core.dcos_acs_token is invalid. Please run: `dcos auth login`
$ dcos auth login
Please go to the following link in your browser:
http://localhost:8000/login?redirect_uri=urn:ietf:wg:oauth:2.0:oob
Enter OpenID Connect ID Token: [paste your token here]
Login successful!
$ dcos package list
NAME VERSION APP COMMAND DESCRIPTION
kafka 1.1.16-0.10.0.0 --- kafka Apache Kafka running on DC/OS
spark 1.0.6-2.0.2 /spark spark Spark is a fast and general cluster computing system for Big Data. Documentation: https://docs.mesosphere.com/current/usage/service-guides/spark/