主要问题-在ambari/hdp集群中使用不同的操作系统版本(如rhel 7.0和rhel 7.2/7.5)
在读了一些帖子之后
https://community.cloudera.com/t5/support-questions/how-to-register-host-with-different-os-to-ambari/m-p/151089
https://community.cloudera.com/t5/support-questions/hdp-support-for-mix-of-os-releases-within-a-cluster/m-p/97315
讨论了在集群中使用不同的os-rhel版本
我看到了禁用脚本的解决方案:
/usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
但不清楚如何禁用它?
例如,据我所知,一个选项是将脚本中的执行作为
chmod -x /usr/lib/python2.6/site-packages/ambari_server/os_check_type.py
但不知道这是不是意思!
more os_check_type.py
# !/usr/bin/ambari-python-wrap
'''
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
'''
import sys
from ambari_commons import OSCheck
def main(argv=None):
# Same logic that was in "os_type_check.sh"
if len(sys.argv) != 2:
print "Usage: <cluster_os>"
raise Exception("Error in number of arguments. Usage: <cluster_os>")
pass
cluster_os = sys.argv[1]
current_os = OSCheck.get_os_family() + OSCheck.get_os_major_version()
# If agent/server have the same {"family","main_version"} - then ok.
print "Cluster primary/cluster OS family is %s and local/current OS family is %s" % (
cluster_os, current_os)
if current_os == cluster_os:
sys.exit(0)
else:
raise Exception("Local OS is not compatible with cluster primary OS family. Please perform manual bootstrap on this host.")
if __name__ == "__main__":
main()
暂无答案!
目前还没有任何答案,快来回答吧!