I think the problem is the '.' in what the test infrastructure uses as a group to assign roles which is your linux group 'quanlong.huang'. You can try to quote the group (not sure if that will work) or change your group.
Dimitris On Fri, Dec 8, 2017 at 4:00 PM, Quanlong Huang <[email protected]> wrote: > Hi all, > > > I'm working on the ORC support feature (IMPALA-5717). However, I encounter > the following test errors not related to my patch: > > > ERROR at setup of TestGrantRevoke.test_role_update[exec_option: > {'batch_size': 0, 'num_nodes': 0, 'disable_codegen_rows_threshold': 0, > 'disable_codegen': False, 'abort_on_error': 1, 'exec_single_node_rows_th > reshold': 0} | table_format: text/none] > authorization/test_grant_revoke.py:47: in setup_method > self.__test_cleanup() > authorization/test_grant_revoke.py:72: in __test_cleanup > self.client.execute("grant role grant_revoke_test_admin to group %s" % > group_name) > common/impala_connection.py:160: in execute > return self.__beeswax_client.execute(sql_stmt, user=user) > beeswax/impala_beeswax.py:173: in execute > handle = self.__execute_query(query_string.strip(), user=user) > beeswax/impala_beeswax.py:339: in __execute_query > handle = self.execute_query_async(query_string, user=user) > beeswax/impala_beeswax.py:335: in execute_query_async > return self.__do_rpc(lambda: self.imp_service.query(query,)) > beeswax/impala_beeswax.py:460: in __do_rpc > raise ImpalaBeeswaxException(self.__build_error_message(b), b) > E ImpalaBeeswaxException: ImpalaBeeswaxException: > E INNER EXCEPTION: <class 'beeswaxd.ttypes.BeeswaxException'> > E MESSAGE: AnalysisException: Syntax error in line 1: > E grant role grant_revoke_test_admin to group quanlong.huang > E ^ > E Encountered: . > E Expected > E > E CAUSED BY: Exception: Syntax error > …… > ======================================= FAILURES > ============================== > _________________ TestAdmissionController.test_set_request_pool > __________________________ > hs2/hs2_test_suite.py:48: in add_session > fn(self) > custom_cluster/test_admission_controller.py:212: in test_set_request_pool > self.__check_pool_rejected(client, pool, expected_error) > custom_cluster/test_admission_controller.py:144: in __check_pool_rejected > assert re.search(expected_error_re, str(e)) > E assert None > E + where None = <function search at 0x7ff6115ddaa0>("No mapping found > for request from user '\\w+' with requested pool ''", > "ImpalaBeeswaxException:\n INNER EXCEPTION: <class > 'beeswaxd.ttypes.BeeswaxException'>\n > MESSAGE: No mapping found for request from user 'quanlong.huang' with > requested pool ''\n") > E + where <function search at 0x7ff6115ddaa0> = re.search > E + and "ImpalaBeeswaxException:\n INNER EXCEPTION: <class > 'beeswaxd.ttypes.BeeswaxException'>\n MESSAGE: No mapping found for > request from user 'quanlong.huang' with requested pool ''\n" = > str(ImpalaBeeswaxException()) > > > What can I do to fix this? > > > Thanks, > Quanlong
