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