> On May 18, 2016, 5:25 p.m., Alejandro Fernandez wrote: > > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hcat_client.py, > > line 27 > > <https://reviews.apache.org/r/47475/diff/1/?file=1385679#file1385679line27> > > > > How was this working before?
Python was importing it from functions in general, but I think it is a good practice to be more specific There are plenty of exmaples in the.py common-services code. Other working example is: from resource_management.libraries.functions import Direction where Direction is actually defined in from resource_management.libraries.functions.constants Thanks for the review Alex - Juanjo ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/47475/#review133768 ----------------------------------------------------------- On May 18, 2016, 4:48 p.m., Juanjo Marron wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/47475/ > ----------------------------------------------------------- > > (Updated May 18, 2016, 4:48 p.m.) > > > Review request for Ambari, Alejandro Fernandez, Jayush Luniya, and Matt. > > > Bugs: AMBARI-16189 > https://issues.apache.org/jira/browse/AMBARI-16189 > > > Repository: ambari > > > Description > ------- > > Python code at at common-services level used generic imports form > resource_management (from resource_management import *) > Ideally, for easier code tracking and performance, these import should be > more specific, such as: > from resource_management.libraries.script.script import Script > from resource_management.core.resources.system import Directory > This patch cleans up import * from resource_management for Hive service > scripts in common-services > > > Diffs > ----- > > > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hcat.py > 45dcbe7 > > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hcat_client.py > b37698e > > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hcat_service_check.py > 07b4095 > > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_client.py > da49450 > > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_interactive.py > e8532da > > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/hive_service.py > d0dd9bb > > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/mysql_server.py > 851dc02 > > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/mysql_service.py > 8b98ed1 > > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/mysql_users.py > c023548 > > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/mysql_utils.py > 5006b56 > > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/params_windows.py > 880fdb5 > > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/service_check.py > f7304f7 > > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/webhcat.py > 3acbc7b > > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/webhcat_server.py > 34687c4 > > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/webhcat_service.py > c24db4c > > ambari-server/src/main/resources/common-services/HIVE/0.12.0.2.0/package/scripts/webhcat_service_check.py > 8e80d48 > > Diff: https://reviews.apache.org/r/47475/diff/ > > > Testing > ------- > > Pass mvn clean test -DskipSurefireTests > HIVE fresh installation and service check > > > https://builds.apache.org/job/Ambari-trunk-test-patch/6869 > > > Hadoop QA added a comment - 8 minutes ago > -1 overall. Here are the results of testing the latest attachment > http://issues.apache.org/jira/secure/attachment/12802696/AMBARI-16189.patch > against trunk revision . > +1 @author. The patch does not contain any @author tags. > -1 tests included. The patch doesn't appear to include any new or modified > tests. > Please justify why no new tests are needed for this patch. > Also please list what manual steps were performed to verify this patch. > +1 javac. The applied patch does not increase the total number of javac > compiler warnings. > +1 release audit. The applied patch does not increase the total number of > release audit warnings. > +1 core tests. The patch passed unit tests in ambari-server. > Test results: > https://builds.apache.org/job/Ambari-trunk-test-patch/6869//testReport/ > Console output: > https://builds.apache.org/job/Ambari-trunk-test-patch/6869//console > This message is automatically generated. > > > Thanks, > > Juanjo Marron > >