[jira] [Commented] (IMPALA-9157) TestAuthorizationProvider.test_invalid_provider_flag fails due to Python 2.6 incompatible code
[ https://issues.apache.org/jira/browse/IMPALA-9157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16980419#comment-16980419 ] David Knupp commented on IMPALA-9157: - Patch: https://gerrit.cloudera.org/c/14788/ > TestAuthorizationProvider.test_invalid_provider_flag fails due to Python 2.6 > incompatible code > -- > > Key: IMPALA-9157 > URL: https://issues.apache.org/jira/browse/IMPALA-9157 > Project: IMPALA > Issue Type: Bug > Components: Infrastructure >Affects Versions: Impala 3.4.0 >Reporter: Joe McDonnell >Assignee: David Knupp >Priority: Blocker > Labels: broken-build > > Our Centos 6 builds use Python 2.6, which means that it doesn't have > check_output (added in Python 2.7). This causes test failures in > test_provider.py: > > {noformat} > authorization/test_provider.py:70: in setup_method > self.pre_test_cores = set([f for f in possible_cores if is_core_dump(f)]) > ../lib/python/impala_py_lib/helpers.py:64: in is_core_dump > file_std_out = exec_local_command("file %s" % file_path) > ../lib/python/impala_py_lib/helpers.py:34: in exec_local_command > return subprocess.check_output(cmd.split()) > E AttributeError: 'module' object has no attribute 'check_output'{noformat} > This comes from the new code to handle intentional core dumps: > > [https://github.com/apache/impala/blob/master/lib/python/impala_py_lib/helpers.py#L34] > {noformat} > def exec_local_command(cmd): > """ Executes a command for the local bash shell and return stdout as a > string. > Args: > cmd: command as a string > Return: > STDOUT > """ > return subprocess.check_output(cmd.split()){noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org For additional commands, e-mail: issues-all-h...@impala.apache.org
[jira] [Commented] (IMPALA-9157) TestAuthorizationProvider.test_invalid_provider_flag fails due to Python 2.6 incompatible code
[ https://issues.apache.org/jira/browse/IMPALA-9157?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16981988#comment-16981988 ] ASF subversion and git services commented on IMPALA-9157: - Commit db69fe87a8c152709f069fe048fe4b0f595f4864 in impala's branch refs/heads/master from David Knupp [ https://gitbox.apache.org/repos/asf?p=impala.git;h=db69fe8 ] IMPALA-9157: Make helper function exec_local_command python 2.6 compatible Change-Id: I928a4df9dc883e8e801a42ead14ec7875169d4ae Reviewed-on: http://gerrit.cloudera.org:8080/14788 Reviewed-by: Impala Public Jenkins Tested-by: Impala Public Jenkins > TestAuthorizationProvider.test_invalid_provider_flag fails due to Python 2.6 > incompatible code > -- > > Key: IMPALA-9157 > URL: https://issues.apache.org/jira/browse/IMPALA-9157 > Project: IMPALA > Issue Type: Bug > Components: Infrastructure >Affects Versions: Impala 3.4.0 >Reporter: Joe McDonnell >Assignee: David Knupp >Priority: Blocker > Labels: broken-build > > Our Centos 6 builds use Python 2.6, which means that it doesn't have > check_output (added in Python 2.7). This causes test failures in > test_provider.py: > > {noformat} > authorization/test_provider.py:70: in setup_method > self.pre_test_cores = set([f for f in possible_cores if is_core_dump(f)]) > ../lib/python/impala_py_lib/helpers.py:64: in is_core_dump > file_std_out = exec_local_command("file %s" % file_path) > ../lib/python/impala_py_lib/helpers.py:34: in exec_local_command > return subprocess.check_output(cmd.split()) > E AttributeError: 'module' object has no attribute 'check_output'{noformat} > This comes from the new code to handle intentional core dumps: > > [https://github.com/apache/impala/blob/master/lib/python/impala_py_lib/helpers.py#L34] > {noformat} > def exec_local_command(cmd): > """ Executes a command for the local bash shell and return stdout as a > string. > Args: > cmd: command as a string > Return: > STDOUT > """ > return subprocess.check_output(cmd.split()){noformat} -- This message was sent by Atlassian Jira (v8.3.4#803005) - To unsubscribe, e-mail: issues-all-unsubscr...@impala.apache.org For additional commands, e-mail: issues-all-h...@impala.apache.org