public String getDelegationToken(String owner, String renewer) throws SQLException { TGetDelegationTokenReq req = new TGetDelegationTokenReq(sessHandle, owner, renewer); try { TGetDelegationTokenResp tokenResp = client.GetDelegationToken(req); Utils.verifySuccess(tokenResp.getStatus()); return tokenResp.getDelegationToken(); } catch (TException e) { throw new SQLException("Could not retrieve token: " + e.getMessage(), " 08S01", e); } }
public String getDelegationToken(String owner, String renewer) throws SQLException { TGetDelegationTokenReq req = new TGetDelegationTokenReq(sessHandle, owner, renewer); try { TGetDelegationTokenResp tokenResp = client.GetDelegationToken(req); Utils.verifySuccess(tokenResp.getStatus()); return tokenResp.getDelegationToken(); } catch (TException e) { throw new SQLException("Could not retrieve token: " + e.getMessage(), " 08S01", e); } }
@Override public String getDelegationToken(SessionHandle sessionHandle, HiveAuthFactory authFactory, String owner, String renewer) throws HiveSQLException { TGetDelegationTokenReq req = new TGetDelegationTokenReq( sessionHandle.toTSessionHandle(), owner, renewer); try { TGetDelegationTokenResp tokenResp = cliService.GetDelegationToken(req); checkStatus(tokenResp.getStatus()); return tokenResp.getDelegationToken(); } catch (Exception e) { throw new HiveSQLException(e); } }
@Override public String getDelegationToken(SessionHandle sessionHandle, HiveAuthFactory authFactory, String owner, String renewer) throws HiveSQLException { TGetDelegationTokenReq req = new TGetDelegationTokenReq( sessionHandle.toTSessionHandle(), owner, renewer); try { TGetDelegationTokenResp tokenResp = cliService.GetDelegationToken(req); checkStatus(tokenResp.getStatus()); return tokenResp.getDelegationToken(); } catch (Exception e) { throw new HiveSQLException(e); } }
public GetDelegationToken_result getResult(I iface, GetDelegationToken_args args) throws org.apache.thrift.TException { GetDelegationToken_result result = new GetDelegationToken_result(); result.success = iface.GetDelegationToken(args.req); return result; } }
public GetDelegationToken_result getResult(I iface, GetDelegationToken_args args) throws org.apache.thrift.TException { GetDelegationToken_result result = new GetDelegationToken_result(); result.success = iface.GetDelegationToken(args.req); return result; } }
@Override public String getDelegationToken(SessionHandle sessionHandle, HiveAuthFactory authFactory, String owner, String renewer) throws HiveSQLException { TGetDelegationTokenReq req = new TGetDelegationTokenReq( sessionHandle.toTSessionHandle(), owner, renewer); try { TGetDelegationTokenResp tokenResp = cliService.GetDelegationToken(req); checkStatus(tokenResp.getStatus()); return tokenResp.getDelegationToken(); } catch (Exception e) { throw new HiveSQLException(e); } }
public GetDelegationToken_result getResult(I iface, GetDelegationToken_args args) throws org.apache.thrift.TException { GetDelegationToken_result result = new GetDelegationToken_result(); result.success = iface.GetDelegationToken(args.req); return result; } }
public GetDelegationToken_result getResult(I iface, GetDelegationToken_args args) throws org.apache.thrift.TException { GetDelegationToken_result result = new GetDelegationToken_result(); result.success = iface.GetDelegationToken(args.req); return result; } }
@Override public String getDelegationToken(SessionHandle sessionHandle, HiveAuthFactory authFactory, String owner, String renewer) throws HiveSQLException { TGetDelegationTokenReq req = new TGetDelegationTokenReq( sessionHandle.toTSessionHandle(), owner, renewer); try { TGetDelegationTokenResp tokenResp = cliService.GetDelegationToken(req); checkStatus(tokenResp.getStatus()); return tokenResp.getDelegationToken(); } catch (Exception e) { throw new HiveSQLException(e); } }