-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/45433/#review125886
-----------------------------------------------------------


Ship it!




Ship It!

- Dmytro Grinenko


On March 29, 2016, 4:05 p.m., Dmitro Lisnichenko wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/45433/
> -----------------------------------------------------------
> 
> (Updated March 29, 2016, 4:05 p.m.)
> 
> 
> Review request for Ambari, Andrew Onischuk, Myroslav Papirkovskyy, and 
> Vitalyi Brodetskyi.
> 
> 
> Bugs: AMBARI-15617
>     https://issues.apache.org/jira/browse/AMBARI-15617
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> ambari-server --hash
> 68d42abe1e91711c2a1d1b517887b56a452eeb19
> Build # ambari-server-2.2.2.0-343.x86_64
> 
> 
> *Steps*
> 1. Install HDP 2.3.4.0 with Ambari 2.2.0.0 (unsecure, non-HA cluster)
> 2. Upgrade Ambari to 2.2.2.0
> 3. Register Derg-M10 version and install the bits (2.4.2.0-69)
> 4. Start Express Upgrade
> 
> Following upgrade tasks reported below cint package import error:
> a. Snapshot HBase
> b. Prepare HDFS
> c. Wait to leave Safemode
> d. Preparing Oozie Server on vs-dalm20todergm10-cint-3.novalocal
> 
> *Error:*
> 
> {code}
> 2016-03-28 06:11:07,263 - Task. Type: EXECUTE, Script: 
> scripts/hbase_upgrade.py - Function: take_snapshot
> Traceback (most recent call last):
> File 
> "/var/lib/ambari-agent/cache/common-services/HBASE/0.96.0.2.0/package/scripts/hbase_upgrade.py",
>  line 41, in <module>
> HbaseMasterUpgrade().execute()
> File 
> "/usr/lib/python2.6/site-packages/resource_management/libraries/script/script.py",
>  line 219, in execute
> method(env)
> File 
> "/var/lib/ambari-agent/cache/common-services/HBASE/0.96.0.2.0/package/scripts/hbase_upgrade.py",
>  line 28, in take_snapshot
> import params
> File 
> "/var/lib/ambari-agent/cache/common-services/HBASE/0.96.0.2.0/package/scripts/params.py",
>  line 26, in <module>
> from params_linux import *
> File 
> "/var/lib/ambari-agent/cache/common-services/HBASE/0.96.0.2.0/package/scripts/params_linux.py",
>  line 27, in <module>
> from ambari_commons.str_utils import cbool, cint
> ImportError: cannot import name cint
> 
> {code}
> 
>  The problem is triggered by automatic bootstrap. 
> As of now, automatic agent bootstrap process copies files to this folder 
> (/var/lib/ambari-agent/tmp/ambari_commons/). This folder 
> (/var/lib/ambari-agent/tmp/ ) is used by all scripts we run from agent as a 
> working directory. As a result, files in this folder are imported with 
> highest priority. And after ambari upgrade we would import wrong (old) 
> ambari_commons package
> 
> 
> Diffs
> -----
> 
>   ambari-agent/conf/unix/ambari-agent 31e4100 
> 
> Diff: https://reviews.apache.org/r/45433/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Dmitro Lisnichenko
> 
>

Reply via email to