ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From li liren <fjs...@gmail.com>
Subject Re: Failed on: Pre Upgrade HDFS when Rolling Upgrade from HDP-2.2.6.0 to HDP-2.4.0.0
Date Thu, 31 Mar 2016 01:43:47 GMT
Hi, Alejandro

I use ambari-2.2.1

Thanks, liren

On Thu, Mar 31, 2016, 2:06 AM Alejandro Fernandez <
afernandez@hortonworks.com> 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 <fjsllr@gmail.com>
> Reply-To: "user@ambari.apache.org" <user@ambari.apache.org>
> Date: Wednesday, March 30, 2016 at 1:45 AM
> To: "user@ambari.apache.org" <user@ambari.apache.org>
> 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.
>
>
>
>

Mime
View raw message