ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Qiang Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (RANGER-1286) In the MysqlConf class of security-admin/scripts/db_setup.py, the auditdb_operation function has two problems.
Date Wed, 04 Jan 2017 09:46:58 GMT

    [ https://issues.apache.org/jira/browse/RANGER-1286?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15797807#comment-15797807
] 

Qiang Zhang commented on RANGER-1286:
-------------------------------------

Ok. The issue can be closed. 
Thanks!

> In the MysqlConf class of security-admin/scripts/db_setup.py, the auditdb_operation function
has two problems.
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: RANGER-1286
>                 URL: https://issues.apache.org/jira/browse/RANGER-1286
>             Project: Ranger
>          Issue Type: Bug
>          Components: admin
>            Reporter: Qiang Zhang
>            Assignee: Qiang Zhang
>              Labels: patch
>         Attachments: 0001-RANGER-1286-the-auditdb_operation-function-has-two-p.patch
>
>
> In the MysqlConf class of security-admin/scripts/db_setup.py, the auditdb_operation function
has following two problems.
> 1. Checked audit database connection using audit_db_name、db_user、db_password value,
which were set in install.properties file. Now based on the logic, the Ranger schema database
and the Audit Store database must use same database, whether the program cannot be executed
correctly. The right logic should be using audit_db_name、audit_db_user、audit_db_password
value, which were set in install.properties file, to check audit database connection.
> 2. It called the grant_audit_db_user function. At the beginning of the grant_audit_db_user
the hosts_arr variable was set ["%", "localhost"] as default value. The hosts_arr variable
will include two localhost values if self.host equal to localhost. As a result, the back code
segment will be executed repeatedly, And the performance of the program will be reduced.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message