cloudera importclustertemplate-主机不可用

epfja78i  于 2021-05-27  发布在  Hadoop
关注(0)|答案(0)|浏览(288)

将群集模板导入cdh6群集时出现“主机不可用”错误。有人能帮我解释一下我对模板做了什么错事吗?


# curl -X POST -H "Content-Type: application/json" -d @cdh-template.json

http://admin:admin@manager.hadoop.com:7180/api/v12/cm/importClusterTemplate
{
  "message" : "The following host(s) are not available: 
node2.hadoop.com,node3.hadoop.com,node1.hadoop.com."

主机实际上是通过hosts api存在的


# curl -u admin:admin "http://manager.hadoop.com:7180/api/v12/hosts" | grep hostname

  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                             Dload  Upload   Total   Spent    Left  Speed
100  3210    0  3210    0     0   123k      0 --:--:-- --:--:-- --:--:--  125k
    "hostname" : "node1.hadoop.com",
    "hostname" : "node2.hadoop.com",
    "hostname" : "node3.hadoop.com",

模板文件的一部分:

"hostTemplates" : [ {
   "refName" : "HostTemplate-0-from-node1.hadoop.com",
   "cardinality" : 1,
   "roleConfigGroupsRefNames" : [ "hdfs-BALANCER-BASE", "hdfs-FAILOVERCONTROLLER-BASE", "hdfs- 
   JOURNALNODE-BASE", "hdfs-NAMENODE-1", "hive-GATEWAY-BASE", "impala-CATALOGSERVER-BASE", "impala- 
   STATESTORE-BASE", "yarn-JOBHISTORY-BASE", "yarn-RESOURCEMANAGER-BASE", "zookeeper-SERVER-BASE" ]
   }, {
   "refName" : "HostTemplate-2-from-node2.hadoop.com",
   "cardinality" : 1,
   "roleConfigGroupsRefNames" : [ "hdfs-DATANODE-BASE", "hdfs-FAILOVERCONTROLLER-BASE", "hdfs- 
   JOURNALNODE-BASE", "hdfs-NAMENODE-1", "hive-GATEWAY-BASE", "hive-HIVEMETASTORE-BASE", "hive- 
   HIVESERVER2-BASE", "impala-IMPALAD-1", "yarn-NODEMANAGER-1", "zookeeper-SERVER-BASE" ]
   }, {
   "refName" : "HostTemplate-3-from-node3.hadoop.com",
   "cardinality" : 1,
   "roleConfigGroupsRefNames" : [ "hdfs-DATANODE-BASE", "hdfs-JOURNALNODE-BASE", "hive-GATEWAY- 
   BASE", "impala-IMPALAD-BASE", "yarn-NODEMANAGER-BASE", "zookeeper-SERVER-BASE" ]
   } ],
   "instantiator" : {
       "clusterName" : "cdh631",
       "hosts" : [ {
          "hostName" : "node1.hadoop.com",
          "hostTemplateRefName" : "HostTemplate-0-from-node1.hadoop.com"
        }, {
          "hostName" : "node2.hadoop.com",
          "hostTemplateRefName" : "HostTemplate-2-from-node2.hadoop.com"
        }, {
          "hostName" : "node3.hadoop.com",
          "hostTemplateRefName" : "HostTemplate-3-from-node3.hadoop.com"
        }],

谢谢。

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题