You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Qiang Zhang (JIRA)" <ji...@apache.org> on 2017/09/22 09:56:00 UTC

[jira] [Updated] (RANGER-1798) here is a error in getTableList() when get table-list info for HiveClient class

     [ 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:log is error.


> 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)