Thank u for response, if hue doesn't support sparksql completely yet, I'll leave this problem temporarily.
Below are the logs of hue when I refresh the database in left side bar.Is it the reason of "get_table_chema" unsupported?
[19/Dec/2017 16:56:20 +0000] access INFO 192.168.199.11 hadoop - "POST /notebook/api/autocomplete/ HTTP/1.1"
[19/Dec/2017 16:56:20 +0000] dbms DEBUG Query Server: {'server_name': 'sparksql', 'transport_mode': 'socket', 'server_host': 'bd-1', 'server_port': 11000, 'auth_password_used': False, 'http_url': '
http://bd-1:10001/cliservice', 'auth_username': 'hue', 'principal': None}
[19/Dec/2017 16:56:20 +0000] thrift_util DEBUG Thrift call: <class 'TCLIService.TCLIService.Client'>.GetSchemas(args=(TGetSchemasReq(schemaName='*', sessionHandle=TSessionHandle(sessionId=THandleIdentifier(secret=1e4d24263b45cdbd:ac4e76485f05b89c, guid=8742a9b12f95a6dc:928bc20a56b7b4be)), catalogName=None),), kwargs={})
[19/Dec/2017 16:56:21 +0000] thrift_util DEBUG Thrift call <class 'TCLIService.TCLIService.Client'>.GetSchemas returned in 2ms: TGetSchemasResp(status=TStatus(errorCode=None, errorMessage=None, sqlState=None, infoMessages=None, statusCode=0), operationHandle=TOperationHandle(hasResultSet=True, modifiedRowCount=None, operationType=3, operationId=THandleIdentifier(secret=83471958b9511b58:c886e9ade8a54d88, guid=10406be2a26f91d1:15b6d93850b07984)))
[19/Dec/2017 16:56:21 +0000] thrift_util DEBUG Thrift call: <class 'TCLIService.TCLIService.Client'>.FetchResults(args=(TFetchResultsReq(fetchType=0, operationHandle=TOperationHandle(hasResultSet=True, modifiedRowCount=None, operationType=3, operationId=THandleIdentifier(secret=83471958b9511b58:c886e9ade8a54d88, guid=10406be2a26f91d1:15b6d93850b07984)), orientation=0, maxRows=5000),), kwargs={})
[19/Dec/2017 16:56:21 +0000] thrift_util DEBUG Thrift call <class 'TCLIService.TCLIService.Client'>.FetchResults returned in 0ms: TFetchResultsResp(status=TStatus(errorCode=None, errorMessage=None, sqlState=None, infoMessages=None, statusCode=0), results=TRowSet(rows=[], columns=[TColumn(i32Val=None, byteVal=None, i16Val=None, i64Val=None, stringVal=TStringColumn(nulls='\x00', values=['default']), boolVal=None, doubleVal=None, binaryVal=None), TColumn(i32Val=None, byteVal=None, i16Val=None, i64Val=None, stringVal=TStringColumn(nulls='\x00', values=['']), boolVal=None, doubleVal=None, binaryVal=None)], startRowOffset=0), hasMoreRows=False)
[19/Dec/2017 16:56:21 +0000] thrift_util DEBUG Thrift call: <class 'TCLIService.TCLIService.Client'>.GetResultSetMetadata(args=(TGetResultSetMetadataReq(operationHandle=TOperationHandle(hasResultSet=True, modifiedRowCount=None, operationType=3, operationId=THandleIdentifier(secret=83471958b9511b58:c886e9ade8a54d88, guid=10406be2a26f91d1:15b6d93850b07984))),), kwargs={})
[19/Dec/2017 16:56:21 +0000] thrift_util DEBUG Thrift call <class 'TCLIService.TCLIService.Client'>.GetResultSetMetadata returned in 1ms: TGetResultSetMetadataResp(status=TStatus(errorCode=None, errorMessage=None, sqlState=None, infoMessages=None, statusCode=0), schema=TTableSchema(columns=[TColumnDesc(comment='Schema name.', columnName='TABLE_SCHEM', typeDesc=TTypeDesc(types=[TTypeEntry(mapEntry=None, unionEntry=None, arrayEntry=None, userDefinedTypeEntry=None, structEntry=None, primitiveEntry=TPrimitiveTypeEntry(typeQualifiers=None, type=7))]), position=1), TColumnDesc(comment='Catalog name.', columnName='TABLE_CATALOG', typeDesc=TTypeDesc(types=[TTypeEntry(mapEntry=None, unionEntry=None, arrayEntry=None, userDefinedTypeEntry=None, structEntry=None, primitiveEntry=TPrimitiveTypeEntry(typeQualifiers=None, type=7))]), position=2)]))
[19/Dec/2017 16:56:21 +0000] thrift_util DEBUG Thrift call: <class 'TCLIService.TCLIService.Client'>.CloseOperation(args=(TCloseOperationReq(operationHandle=TOperationHandle(hasResultSet=True, modifiedRowCount=None, operationType=3, operationId=THandleIdentifier(secret=83471958b9511b58:c886e9ade8a54d88, guid=10406be2a26f91d1:15b6d93850b07984))),), kwargs={})
[19/Dec/2017 16:56:21 +0000] thrift_util DEBUG Thrift call <class 'TCLIService.TCLIService.Client'>.CloseOperation returned in 0ms: TCloseOperationResp(status=TStatus(errorCode=None, errorMessage=None, sqlState=None, infoMessages=None, statusCode=0))
在 2017年12月19日星期二 UTC+8上午2:15:26,Romain Rigaux写道: