This is an automated email from the ASF dual-hosted git repository. amagyar pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push: new 9236f4a AMBARI-25205. hdfs_to_onefs_convert.py script missing HDP3.1 + upgrade logic (amagyar) (#2940) 9236f4a is described below commit 9236f4ab966f40d93e27c44f9078bb204a6c591a Author: Attila Magyar <m.magy...@gmail.com> AuthorDate: Thu Apr 18 12:09:04 2019 +0200 AMBARI-25205. hdfs_to_onefs_convert.py script missing HDP3.1 + upgrade logic (amagyar) (#2940) * AMBARI-25205. hdfs_to_onefs_convert.py script missing HDP3.1 + upgrade logic (amagyar) --- .../isilon-onefs-mpack/src/main/tools/hdfs_to_onefs_convert.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/contrib/management-packs/isilon-onefs-mpack/src/main/tools/hdfs_to_onefs_convert.py b/contrib/management-packs/isilon-onefs-mpack/src/main/tools/hdfs_to_onefs_convert.py index 4c63c9f..d772ce0 100644 --- a/contrib/management-packs/isilon-onefs-mpack/src/main/tools/hdfs_to_onefs_convert.py +++ b/contrib/management-packs/isilon-onefs-mpack/src/main/tools/hdfs_to_onefs_convert.py @@ -370,14 +370,13 @@ class Conversion: def __init__(self, cluster, storage): self.cluster = cluster self.storage = storage - self.supported_stacks = ['HDP-3.0'] def check_prerequisites(self): print 'Checking %s' % self.cluster ver = self.cluster.version() print 'Found stack %s' % ver - if ver not in self.supported_stacks: - print 'Only %s stacks are supported.' % self.supported_stacks + if not ver.startswith('HDP-3.'): + print 'Only HDP-3.x stacks are supported.' return False if not self.cluster.installed_stack().has_service('ONEFS'): print 'ONEFS management pack is not installed.' @@ -522,7 +521,7 @@ if __name__ == '__main__': print 'The following prerequisites are required:' print ' * ONEFS management package must be installed' print ' * Ambari must be upgraded to >=v2.7.0' - print ' * Stack must be upgraded to HDP-3.0' + print ' * Stack must be upgraded to >=HDP-3.0' print ' * Is highly recommended to backup ambari database before you proceed.' conversion = Conversion(cluster, FsStorage()) if not conversion.check_prerequisites():