[ 
https://issues.apache.org/jira/browse/RANGER-1798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Qiang Zhang updated RANGER-1798:
--------------------------------
    Description: 
Here is a error in getTableList() when get table-list info for HiveClient class.
{code}
public List<String> getTableList(String tableNameMatching, List<String> 
databaseList, List<String> tblNameList) throws HadoopException  {
                final String       tblNameMatching = tableNameMatching;
                final List<String> dbList                  = databaseList;
                final List<String> tblList         = tblNameList;

                List<String> tableList = Subject.doAs(getLoginSubject(), new 
PrivilegedAction<List<String>>() {
                        public List<String>  run() {
                                List<String> ret = null;
                                try {
                                        ... ...
                                } catch (HadoopException he) {
                                        LOG.error("<== HiveClient getTblList() 
:Unable to get the Table List", he);
                                        throw he;
                                }
                                return ret;
                        }
                });

                return tableList;
        }
{code}

  was:
here is a error in getTableList() when get table-list info for HiveClient class.
{code}
public List<String> getTableList(String tableNameMatching, List<String> 
databaseList, List<String> tblNameList) throws HadoopException  {
                final String       tblNameMatching = tableNameMatching;
                final List<String> dbList                  = databaseList;
                final List<String> tblList         = tblNameList;

                List<String> tableList = Subject.doAs(getLoginSubject(), new 
PrivilegedAction<List<String>>() {
                        public List<String>  run() {
                                List<String> ret = null;
                                try {
                                        ... ...
                                } catch (HadoopException he) {
                                        LOG.error("<== HiveClient getTblList() 
:Unable to get the Table List", he);
                                        throw he;
                                }
                                return ret;
                        }
                });

                return tableList;
        }
{code}


>  Here is a error in getTableList() when get table-list info for HiveClient 
> class
> --------------------------------------------------------------------------------
>
>                 Key: RANGER-1798
>                 URL: https://issues.apache.org/jira/browse/RANGER-1798
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>            Reporter: Qiang Zhang
>            Assignee: Qiang Zhang
>            Priority: Minor
>         Attachments: 0001-RANGER-1798-HiveClient.java-log-print-is-error.patch
>
>
> Here is a error in getTableList() when get table-list info for HiveClient 
> class.
> {code}
> public List<String> getTableList(String tableNameMatching, List<String> 
> databaseList, List<String> tblNameList) throws HadoopException  {
>               final String       tblNameMatching = tableNameMatching;
>               final List<String> dbList                  = databaseList;
>               final List<String> tblList         = tblNameList;
>               List<String> tableList = Subject.doAs(getLoginSubject(), new 
> PrivilegedAction<List<String>>() {
>                       public List<String>  run() {
>                               List<String> ret = null;
>                               try {
>                                       ... ...
>                               } catch (HadoopException he) {
>                                       LOG.error("<== HiveClient getTblList() 
> :Unable to get the Table List", he);
>                                       throw he;
>                               }
>                               return ret;
>                       }
>               });
>               return tableList;
>       }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to