Hi, Alejandro I use ambari-2.2.1
Thanks, liren On Thu, Mar 31, 2016, 2:06 AM Alejandro Fernandez < [email protected]> wrote: > Which version of Ambari are you on? > I suspect it's because you have to remove > > from resource_management.libraries.functions import * > > And then start importing modules by name. > > Thanks,Alejandro > > From: li liren <[email protected]> > Reply-To: "[email protected]" <[email protected]> > Date: Wednesday, March 30, 2016 at 1:45 AM > To: "[email protected]" <[email protected]> > Subject: Failed on: Pre Upgrade HDFS when Rolling Upgrade from > HDP-2.2.6.0 to HDP-2.4.0.0 > > hi, all > > I encount a problem when Rolling Upgrade from HDP-2.2.6.0 to HDP-2.4.0.0. > > Failed on: Pre Upgrade HDFS Stage, the error like follows: > > 2016-03-30 16:17:20,789 - Task. Type: EXECUTE, Script: scripts/namenode.py - > Function: prepare_rolling_upgrade > Traceback (most recent call last): > File > "/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py", > line 28, in <module> > from resource_management import Script > File "/usr/lib/python2.6/site-packages/resource_management/__init__.py", > line 23, in <module> > from resource_management.libraries import * > File > "/usr/lib/python2.6/site-packages/resource_management/libraries/__init__.py", > line 23, in <module> > from resource_management.libraries.functions import * > File > "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/__init__.py", > line 25, in <module> > from resource_management.libraries.functions.default import * > File > "/usr/lib/python2.6/site-packages/resource_management/libraries/functions/default.py", > line 24, in <module> > from resource_management.libraries.script import Script > File > "/usr/lib/python2.6/site-packages/resource_management/libraries/script/__init__.py", > line 23, in <module> > from resource_management.libraries.script.script import * > File > "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py", > line 32, in <module> > from ambari_commons.constants import UPGRADE_TYPE_NON_ROLLING, > UPGRADE_TYPE_ROLLING > ImportError: cannot import name UPGRADE_TYPE_NON_ROLLING > > > what should I do, or check something? > > Best Regards. > > > >
