|
|
@@ -932,7 +932,7 @@ class HiveServerClient:
|
|
|
configuration = dict((row[0], row[1]) for row in results.rows())
|
|
|
else: # For Hive, only return white-listed configurations
|
|
|
query = 'SET -v'
|
|
|
- results = self.execute_query_statement(query, orientation=TFetchOrientation.FETCH_FIRST)
|
|
|
+ results = self.execute_query_statement(query, orientation=TFetchOrientation.FETCH_FIRST, max_rows=-1)
|
|
|
config_whitelist = [config.lower() for config in CONFIG_WHITELIST.get()]
|
|
|
properties = [(row[0].split('=')[0], row[0].split('=')[1]) for row in results.rows() if '=' in row[0]]
|
|
|
configuration = dict((prop, value) for prop, value in properties if prop.lower() in config_whitelist)
|