README 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. // Copyright 2012 Cloudera Inc.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. All of this Thrift comes from Impala source and is just used for:
  15. // For all rpc that return a TStatus as part of their result type,
  16. // if the status_code field is set to anything other than OK, the contents
  17. // of the remainder of the result type is undefined (typically not set)
  18. service ImpalaService extends beeswax.BeeswaxService {
  19. // Cancel execution of query. Returns RUNTIME_ERROR if query_id
  20. // unknown.
  21. // This terminates all threads running on behalf of this query at
  22. // all nodes that were involved in the execution.
  23. // Throws BeeswaxException if the query handle is invalid (this doesn't
  24. // necessarily indicate an error: the query might have finished).
  25. Status.TStatus Cancel(1:beeswax.QueryHandle query_id)
  26. throws(1:beeswax.BeeswaxException error);
  27. // Invalidates all catalog metadata, forcing a reload
  28. Status.TStatus ResetCatalog();
  29. // Closes the query handle and return the result summary of the insert.
  30. TInsertResult CloseInsert(1:beeswax.QueryHandle handle)
  31. throws(1:beeswax.QueryNotFoundException error, 2:beeswax.BeeswaxException error2);
  32. // Client calls this RPC to verify that the server is an ImpalaService.
  33. void PingImpalaService();
  34. }
  35. // Impala HiveServer2 service
  36. service ImpalaHiveServer2Service extends cli_service.TCLIService {
  37. // Invalidates all catalog metadata, forcing a reload
  38. Status.TStatus ResetCatalog();
  39. }