You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "5cai@163.com" <5c...@163.com> on 2018/07/06 01:21:11 UTC

hive CHD5.12.1 在java中如何获取日志

hive CHD5.12.1 版本前使用:
public String getQueryLog(TOperationHandle tOperationHandle) throws Exception { 
  //TCLIService.Client client;
if(tOperationHandle!=null){ 
TGetLogReq tGetLogReq = new TGetLogReq(tOperationHandle);
TGetLogResp logResp = client.GetLog(tGetLogReq);
log = logResp.getLog();   
}   

return log;
}
使用hive-service-0.12.0-cdh5.01.jar中的类
但是  CDH5.12.1,hive-service中的TCLIService.Client 中不在提供GetLog方法了,不知道有什么办法可以获取sql查询日志吗 ?