ambari添加新的服务出错

错误信息 :

raise ExecutionFailed(err_msg, code, out, err)
resource_management.core.exceptions.ExecutionFailed: Execution of 'ambari-sudo.sh /usr/bin/hdp-select set all `ambari-python-wrap /usr/bin/hdp-select versions | grep ^2.5.3.0-37 | tail -1`' returned 1. ERROR: set command takes 2 parameters, instead of 1

usage: distro-select [-h] [<command>] [<package>] [<version>]

Set the selected version of HDP.

positional arguments:
  <command>   One of set, status, versions, or packages
  <package>   the package name to set
  <version>   the HDP version to set

optional arguments:
  -h, --help  show this help message and exit
  -r, --rpm-mode  if true checks if there is symlink exists and creates the symlink if it doesn't

Commands:
  set      : set the package to a specified version
  status   : show the version of the package
  versions : show the currently installed versions
  packages : show the individual package names

解决方法:
查看 /usr/hdp 目录

[root@ambari-node-3 ~]# ll /usr/hdp
total 12
drwxr-xr-x. 32 root root 4096 Apr 14 09:32 2.5.3.0-37
drwxr-xr-x. 2 root root 4096 Apr 14 09:32 current
drwxr-xr-x. 3 root root 4096 Mar 6 2019 hive_export

   hdp目录下有其他文件 不属于ambari安装服务文件  将其移除即可。

 

 

 

 

 

 

posted @ 2020-04-14 09:24  foola  阅读(1065)  评论(0)    收藏  举报