You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by km...@apache.org on 2013/06/12 17:15:22 UTC
git commit: KNOX-47: Add unit and functional tests for Hive (JDBC)
Updated Branches:
refs/heads/master fb2fa7635 -> ad693b0e7
KNOX-47: Add unit and functional tests for Hive (JDBC)
Project: http://git-wip-us.apache.org/repos/asf/incubator-knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-knox/commit/ad693b0e
Tree: http://git-wip-us.apache.org/repos/asf/incubator-knox/tree/ad693b0e
Diff: http://git-wip-us.apache.org/repos/asf/incubator-knox/diff/ad693b0e
Branch: refs/heads/master
Commit: ad693b0e7aa6c99ebc3455ae00d865505f4198b5
Parents: fb2fa76
Author: Kevin Minder <ke...@hortonworks.com>
Authored: Wed Jun 12 11:15:16 2013 -0400
Committer: Kevin Minder <ke...@hortonworks.com>
Committed: Wed Jun 12 11:15:16 2013 -0400
----------------------------------------------------------------------
.../hadoop/gateway/GatewayBasicFuncTest.java | 373 ++++++++++++++++++-
.../hadoop/gateway/GatewayFuncTestDriver.java | 2 +-
.../hive/close-operation-1-request.bin | Bin 0 -> 96 bytes
.../hive/close-operation-1-result.bin | Bin 0 -> 42 bytes
.../hive/close-operation-2-request.bin | Bin 0 -> 96 bytes
.../hive/close-operation-2-result.bin | Bin 0 -> 42 bytes
.../hive/close-operation-3-request.bin | Bin 0 -> 96 bytes
.../hive/close-operation-3-result.bin | Bin 0 -> 42 bytes
.../hive/close-operation-4-request.bin | Bin 0 -> 96 bytes
.../hive/close-operation-4-result.bin | Bin 0 -> 42 bytes
.../hive/close-operation-5-request.bin | Bin 0 -> 96 bytes
.../hive/close-operation-5-result.bin | Bin 0 -> 42 bytes
.../hive/close-operation-6-request.bin | Bin 0 -> 96 bytes
.../hive/close-operation-6-result.bin | Bin 0 -> 42 bytes
.../hive/close-session-request.bin | Bin 0 -> 83 bytes
.../hive/close-session-result.bin | Bin 0 -> 40 bytes
.../hive/execute-create-table-request.bin | Bin 0 -> 147 bytes
.../hive/execute-create-table-result.bin | Bin 0 -> 109 bytes
.../hive/execute-select-from-table-request.bin | Bin 0 -> 126 bytes
.../hive/execute-select-from-table-result.bin | Bin 0 -> 109 bytes
.../execute-set-fetch-output-serde-request.bin | Bin 0 -> 183 bytes
.../execute-set-fetch-output-serde-result.bin | Bin 0 -> 109 bytes
...t-security-authorization-enabled-request.bin | Bin 0 -> 148 bytes
...et-security-authorization-enabled-result.bin | Bin 0 -> 109 bytes
.../execute-set-server2-http-path-request.bin | Bin 0 -> 149 bytes
.../execute-set-server2-http-path-result.bin | Bin 0 -> 109 bytes
.../execute-set-server2-servermode-request.bin | Bin 0 -> 136 bytes
.../execute-set-server2-servermode-result.bin | Bin 0 -> 109 bytes
.../hive/fetch-results-request.bin | Bin 0 -> 112 bytes
.../hive/fetch-results-result.bin | Bin 0 -> 67 bytes
.../hive/get-result-set-metadata-request.bin | Bin 0 -> 102 bytes
.../hive/get-result-set-metadata-result.bin | Bin 0 -> 144 bytes
.../hive/open-session-request.bin | Bin 0 -> 35 bytes
.../hive/open-session-result.bin | Bin 0 -> 109 bytes
34 files changed, 373 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/java/org/apache/hadoop/gateway/GatewayBasicFuncTest.java
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/java/org/apache/hadoop/gateway/GatewayBasicFuncTest.java b/gateway-test/src/test/java/org/apache/hadoop/gateway/GatewayBasicFuncTest.java
index 94eb094..9137af2 100644
--- a/gateway-test/src/test/java/org/apache/hadoop/gateway/GatewayBasicFuncTest.java
+++ b/gateway-test/src/test/java/org/apache/hadoop/gateway/GatewayBasicFuncTest.java
@@ -112,6 +112,7 @@ public class GatewayBasicFuncTest {
// TaskTracker: UI:50060, 127.0.0.1:0
driver.setupService( "TEMPLETON", "http://" + TEST_HOST + ":50111/templeton/v1", "/cluster/templeton/api/v1", USE_MOCK_SERVICES );
driver.setupService( "OOZIE", "http://" + TEST_HOST + ":11000/oozie", "/cluster/oozie/api", USE_MOCK_SERVICES );
+ driver.setupService( "HIVE", "http://" + TEST_HOST + ":10000", "/cluster/hive", USE_MOCK_SERVICES );
driver.setupGateway( config, "cluster", createTopology(), USE_GATEWAY );
}
@@ -170,7 +171,10 @@ public class GatewayBasicFuncTest {
.addTag( "url" ).addText( driver.getRealUrl( "TEMPLETON" ) ).gotoParent()
.addTag( "service" )
.addTag( "role" ).addText( "OOZIE" )
- .addTag( "url" ).addText( driver.getRealUrl( "OOZIE" ) )
+ .addTag( "url" ).addText( driver.getRealUrl( "OOZIE" ) ).gotoParent()
+ .addTag( "service" )
+ .addTag( "role" ).addText( "HIVE" )
+ .addTag( "url" ).addText( driver.getRealUrl( "HIVE" ) )
.gotoRoot();
return xml;
}
@@ -802,4 +806,371 @@ public class GatewayBasicFuncTest {
}
}
+ @Test
+ public void testBasicHiveJDBCUseCase() throws IOException {
+ String root = "/tmp/GatewayHiveJDBCFuncTest/testBasicHiveUseCase";
+ String username = "hive";
+ String password = "hive-password";
+ InetSocketAddress gatewayAddress = driver.gateway.getAddresses()[0];
+
+ // This use case emulates simple JDBC scenario which consists of following steps:
+ // -open connection;
+ // -configure Hive using 'execute' statements (this also includes execution of 'close operation' requests internally);
+ // -execution of create table command;
+ // -execution of select from table command;
+ // Data insertion is omitted because it causes a lot of additional command during insertion/querying.
+ // All binary data was intercepted during real scenario and stored into files as array of bytes.
+
+ // open session
+ driver.getMock( "HIVE" )
+ .expect()
+ .method( "POST" )
+ .content( driver.getResourceBytes( "hive/open-session-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .respond()
+ .characterEncoding( "UTF-8" )
+ .status( HttpStatus.SC_OK )
+ .content( driver.getResourceBytes( "hive/open-session-result.bin" ) )
+ .contentType( "application/x-thrift" );
+ given()
+ .auth().preemptive().basic( username, password )
+ .content( driver.getResourceBytes( "hive/open-session-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .expect()
+ .statusCode( HttpStatus.SC_OK )
+ .content( is( driver.getResourceString( "hive/open-session-result.bin" ) ) )
+ .contentType( "application/x-thrift" )
+ .when().post( driver.getUrl( "HIVE" ) );
+ driver.assertComplete();
+
+ // execute 'set hive.fetch.output.serde=...' (is called internally be JDBC driver)
+ driver.getMock( "HIVE" )
+ .expect()
+ .method( "POST" )
+ .content( driver.getResourceBytes( "hive/execute-set-fetch-output-serde-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .respond()
+ .characterEncoding( "UTF-8" )
+ .status( HttpStatus.SC_OK )
+ .content( driver.getResourceBytes( "hive/execute-set-fetch-output-serde-result.bin" ) )
+ .contentType( "application/x-thrift" );
+ given()
+ .auth().preemptive().basic( username, password )
+ .content( driver.getResourceBytes( "hive/execute-set-fetch-output-serde-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .expect()
+ .statusCode( HttpStatus.SC_OK )
+ .content( is( driver.getResourceString( "hive/execute-set-fetch-output-serde-result.bin" ) ) )
+ .contentType( "application/x-thrift" )
+ .when().post( driver.getUrl( "HIVE" ) );
+ driver.assertComplete();
+
+ // close operation for execute 'set hive.fetch.output.serde=...'
+ driver.getMock( "HIVE" )
+ .expect()
+ .method( "POST" )
+ .content( driver.getResourceBytes( "hive/close-operation-1-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .respond()
+ .characterEncoding( "UTF-8" )
+ .status( HttpStatus.SC_OK )
+ .content( driver.getResourceBytes( "hive/close-operation-1-result.bin" ) )
+ .contentType( "application/x-thrift" );
+ given()
+ .auth().preemptive().basic( username, password )
+ .content( driver.getResourceBytes( "hive/close-operation-1-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .expect()
+ .statusCode( HttpStatus.SC_OK )
+ .content( is( driver.getResourceString( "hive/close-operation-1-result.bin" ) ) )
+ .contentType( "application/x-thrift" )
+ .when().post( driver.getUrl( "HIVE" ) );
+ driver.assertComplete();
+
+ // execute 'set hive.server2.http.path=...' (is called internally be JDBC driver)
+ driver.getMock( "HIVE" )
+ .expect()
+ .method( "POST" )
+ .content( driver.getResourceBytes( "hive/execute-set-server2-http-path-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .respond()
+ .characterEncoding( "UTF-8" )
+ .status( HttpStatus.SC_OK )
+ .content( driver.getResourceBytes( "hive/execute-set-server2-http-path-result.bin" ) )
+ .contentType( "application/x-thrift" );
+ given()
+ .auth().preemptive().basic( username, password )
+ .content( driver.getResourceBytes( "hive/execute-set-server2-http-path-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .expect()
+ .statusCode( HttpStatus.SC_OK )
+ .content( is( driver.getResourceString( "hive/execute-set-server2-http-path-result.bin" ) ) )
+ .contentType( "application/x-thrift" )
+ .when().post( driver.getUrl( "HIVE" ) );
+ driver.assertComplete();
+
+ // close operation for execute 'set hive.server2.http.path=...'
+ driver.getMock( "HIVE" )
+ .expect()
+ .method( "POST" )
+ .content( driver.getResourceBytes( "hive/close-operation-2-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .respond()
+ .characterEncoding( "UTF-8" )
+ .status( HttpStatus.SC_OK )
+ .content( driver.getResourceBytes( "hive/close-operation-2-result.bin" ) )
+ .contentType( "application/x-thrift" );
+ given()
+ .auth().preemptive().basic( username, password )
+ .content( driver.getResourceBytes( "hive/close-operation-2-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .expect()
+ .statusCode( HttpStatus.SC_OK )
+ .content( is( driver.getResourceString( "hive/close-operation-2-result.bin" ) ) )
+ .contentType( "application/x-thrift" )
+ .when().post( driver.getUrl( "HIVE" ) );
+ driver.assertComplete();
+
+ // execute 'set hive.server2.servermode=...' (is called internally be JDBC driver)
+ driver.getMock( "HIVE" )
+ .expect()
+ .method( "POST" )
+ .content( driver.getResourceBytes( "hive/execute-set-server2-servermode-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .respond()
+ .characterEncoding( "UTF-8" )
+ .status( HttpStatus.SC_OK )
+ .content( driver.getResourceBytes( "hive/execute-set-server2-servermode-result.bin" ) )
+ .contentType( "application/x-thrift" );
+ given()
+ .auth().preemptive().basic( username, password )
+ .content( driver.getResourceBytes( "hive/execute-set-server2-servermode-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .expect()
+ .statusCode( HttpStatus.SC_OK )
+ .content( is( driver.getResourceString( "hive/execute-set-server2-servermode-result.bin" ) ) )
+ .contentType( "application/x-thrift" )
+ .when().post( driver.getUrl( "HIVE" ) );
+ driver.assertComplete();
+
+ // close operation for execute 'set hive.server2.servermode=...'
+ driver.getMock( "HIVE" )
+ .expect()
+ .method( "POST" )
+ .content( driver.getResourceBytes( "hive/close-operation-3-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .respond()
+ .characterEncoding( "UTF-8" )
+ .status( HttpStatus.SC_OK )
+ .content( driver.getResourceBytes( "hive/close-operation-3-result.bin" ) )
+ .contentType( "application/x-thrift" );
+ given()
+ .auth().preemptive().basic( username, password )
+ .content( driver.getResourceBytes( "hive/close-operation-3-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .expect()
+ .statusCode( HttpStatus.SC_OK )
+ .content( is( driver.getResourceString( "hive/close-operation-3-result.bin" ) ) )
+ .contentType( "application/x-thrift" )
+ .when().post( driver.getUrl( "HIVE" ) );
+ driver.assertComplete();
+
+ // execute 'set hive.security.authorization.enabled=...'
+ driver.getMock( "HIVE" )
+ .expect()
+ .method( "POST" )
+ .content( driver.getResourceBytes( "hive/execute-set-security-authorization-enabled-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .respond()
+ .characterEncoding( "UTF-8" )
+ .status( HttpStatus.SC_OK )
+ .content( driver.getResourceBytes( "hive/execute-set-security-authorization-enabled-result.bin" ) )
+ .contentType( "application/x-thrift" );
+ given()
+ .auth().preemptive().basic( username, password )
+ .content( driver.getResourceBytes( "hive/execute-set-security-authorization-enabled-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .expect()
+ .statusCode( HttpStatus.SC_OK )
+ .content( is( driver.getResourceString( "hive/execute-set-security-authorization-enabled-result.bin" ) ) )
+ .contentType( "application/x-thrift" )
+ .when().post( driver.getUrl( "HIVE" ) );
+ driver.assertComplete();
+
+ // close operation for execute 'set hive.security.authorization.enabled=...'
+ driver.getMock( "HIVE" )
+ .expect()
+ .method( "POST" )
+ .content( driver.getResourceBytes( "hive/close-operation-4-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .respond()
+ .characterEncoding( "UTF-8" )
+ .status( HttpStatus.SC_OK )
+ .content( driver.getResourceBytes( "hive/close-operation-4-result.bin" ) )
+ .contentType( "application/x-thrift" );
+ given()
+ .auth().preemptive().basic( username, password )
+ .content( driver.getResourceBytes( "hive/close-operation-4-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .expect()
+ .statusCode( HttpStatus.SC_OK )
+ .content( is( driver.getResourceString( "hive/close-operation-4-result.bin" ) ) )
+ .contentType( "application/x-thrift" )
+ .when().post( driver.getUrl( "HIVE" ) );
+ driver.assertComplete();
+
+ // execute 'create table...'
+ driver.getMock( "HIVE" )
+ .expect()
+ .method( "POST" )
+ .content( driver.getResourceBytes( "hive/execute-create-table-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .respond()
+ .characterEncoding( "UTF-8" )
+ .status( HttpStatus.SC_OK )
+ .content( driver.getResourceBytes( "hive/execute-create-table-result.bin" ) )
+ .contentType( "application/x-thrift" );
+ given()
+ .auth().preemptive().basic( username, password )
+ .content( driver.getResourceBytes( "hive/execute-create-table-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .expect()
+ .statusCode( HttpStatus.SC_OK )
+ .content( is( driver.getResourceString( "hive/execute-create-table-result.bin" ) ) )
+ .contentType( "application/x-thrift" )
+ .when().post( driver.getUrl( "HIVE" ) );
+ driver.assertComplete();
+
+ // close operation for execute 'create table...'
+ driver.getMock( "HIVE" )
+ .expect()
+ .method( "POST" )
+ .content( driver.getResourceBytes( "hive/close-operation-5-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .respond()
+ .characterEncoding( "UTF-8" )
+ .status( HttpStatus.SC_OK )
+ .content( driver.getResourceBytes( "hive/close-operation-5-result.bin" ) )
+ .contentType( "application/x-thrift" );
+ given()
+ .auth().preemptive().basic( username, password )
+ .content( driver.getResourceBytes( "hive/close-operation-5-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .expect()
+ .statusCode( HttpStatus.SC_OK )
+ .content( is( driver.getResourceString( "hive/close-operation-5-result.bin" ) ) )
+ .contentType( "application/x-thrift" )
+ .when().post( driver.getUrl( "HIVE" ) );
+ driver.assertComplete();
+
+ // execute 'select * from...'
+ driver.getMock( "HIVE" )
+ .expect()
+ .method( "POST" )
+ .content( driver.getResourceBytes( "hive/execute-select-from-table-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .respond()
+ .characterEncoding( "UTF-8" )
+ .status( HttpStatus.SC_OK )
+ .content( driver.getResourceBytes( "hive/execute-select-from-table-result.bin" ) )
+ .contentType( "application/x-thrift" );
+ given()
+ .auth().preemptive().basic( username, password )
+ .content( driver.getResourceBytes( "hive/execute-select-from-table-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .expect()
+ .statusCode( HttpStatus.SC_OK )
+ .content( is( driver.getResourceString( "hive/execute-select-from-table-result.bin" ) ) )
+ .contentType( "application/x-thrift" )
+ .when().post( driver.getUrl( "HIVE" ) );
+ driver.assertComplete();
+
+ // execute 'GetResultSetMetadata' (is called internally be JDBC driver)
+ driver.getMock( "HIVE" )
+ .expect()
+ .method( "POST" )
+ .content( driver.getResourceBytes( "hive/get-result-set-metadata-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .respond()
+ .characterEncoding( "UTF-8" )
+ .status( HttpStatus.SC_OK )
+ .content( driver.getResourceBytes( "hive/get-result-set-metadata-result.bin" ) )
+ .contentType( "application/x-thrift" );
+ given()
+ .auth().preemptive().basic( username, password )
+ .content( driver.getResourceBytes( "hive/get-result-set-metadata-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .expect()
+ .statusCode( HttpStatus.SC_OK )
+ .content( is( driver.getResourceString( "hive/get-result-set-metadata-result.bin" ) ) )
+ .contentType( "application/x-thrift" )
+ .when().post( driver.getUrl( "HIVE" ) );
+ driver.assertComplete();
+
+ // execute 'FetchResults' (is called internally be JDBC driver)
+ driver.getMock( "HIVE" )
+ .expect()
+ .method( "POST" )
+ .content( driver.getResourceBytes( "hive/fetch-results-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .respond()
+ .characterEncoding( "UTF-8" )
+ .status( HttpStatus.SC_OK )
+ .content( driver.getResourceBytes( "hive/fetch-results-result.bin" ) )
+ .contentType( "application/x-thrift" );
+ given()
+ .auth().preemptive().basic( username, password )
+ .content( driver.getResourceBytes( "hive/fetch-results-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .expect()
+ .statusCode( HttpStatus.SC_OK )
+ .content( is( driver.getResourceString( "hive/fetch-results-result.bin" ) ) )
+ .contentType( "application/x-thrift" )
+ .when().post( driver.getUrl( "HIVE" ) );
+ driver.assertComplete();
+
+ // close operation for execute 'select * from...'
+ driver.getMock( "HIVE" )
+ .expect()
+ .method( "POST" )
+ .content( driver.getResourceBytes( "hive/close-operation-6-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .respond()
+ .characterEncoding( "UTF-8" )
+ .status( HttpStatus.SC_OK )
+ .content( driver.getResourceBytes( "hive/close-operation-6-result.bin" ) )
+ .contentType( "application/x-thrift" );
+ given()
+ .auth().preemptive().basic( username, password )
+ .content( driver.getResourceBytes( "hive/close-operation-6-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .expect()
+ .statusCode( HttpStatus.SC_OK )
+ .content( is( driver.getResourceString( "hive/close-operation-6-result.bin" ) ) )
+ .contentType( "application/x-thrift" )
+ .when().post( driver.getUrl( "HIVE" ) );
+ driver.assertComplete();
+
+ // close session
+ driver.getMock( "HIVE" )
+ .expect()
+ .method( "POST" )
+ .content( driver.getResourceBytes( "hive/close-session-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .respond()
+ .characterEncoding( "UTF-8" )
+ .status( HttpStatus.SC_OK )
+ .content( driver.getResourceBytes( "hive/close-session-result.bin" ) )
+ .contentType( "application/x-thrift" );
+ given()
+ .auth().preemptive().basic( username, password )
+ .content( driver.getResourceBytes( "hive/close-session-request.bin" ) )
+ .contentType( "application/x-thrift" )
+ .expect()
+ .statusCode( HttpStatus.SC_OK )
+ .content( is( driver.getResourceString( "hive/close-session-result.bin" ) ) )
+ .contentType( "application/x-thrift" )
+ .when().post( driver.getUrl( "HIVE" ) );
+ driver.assertComplete();
+ }
}
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/java/org/apache/hadoop/gateway/GatewayFuncTestDriver.java
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/java/org/apache/hadoop/gateway/GatewayFuncTestDriver.java b/gateway-test/src/test/java/org/apache/hadoop/gateway/GatewayFuncTestDriver.java
index 6d4cd65..2987078 100644
--- a/gateway-test/src/test/java/org/apache/hadoop/gateway/GatewayFuncTestDriver.java
+++ b/gateway-test/src/test/java/org/apache/hadoop/gateway/GatewayFuncTestDriver.java
@@ -252,7 +252,7 @@ public class GatewayFuncTestDriver {
return IOUtils.toByteArray( getResourceStream( resource ) );
}
- private String getResourceString( String resource ) throws IOException {
+ public String getResourceString( String resource ) throws IOException {
return IOUtils.toString( getResourceBytes( resource ), "UTF-8" );
}
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-1-request.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-1-request.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-1-request.bin
new file mode 100644
index 0000000..8ed2571
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-1-request.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-1-result.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-1-result.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-1-result.bin
new file mode 100644
index 0000000..d4a264e
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-1-result.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-2-request.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-2-request.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-2-request.bin
new file mode 100644
index 0000000..e47e040
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-2-request.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-2-result.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-2-result.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-2-result.bin
new file mode 100644
index 0000000..90a9418
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-2-result.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-3-request.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-3-request.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-3-request.bin
new file mode 100644
index 0000000..94329ce
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-3-request.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-3-result.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-3-result.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-3-result.bin
new file mode 100644
index 0000000..13625f0
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-3-result.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-4-request.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-4-request.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-4-request.bin
new file mode 100644
index 0000000..a0c945f
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-4-request.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-4-result.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-4-result.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-4-result.bin
new file mode 100644
index 0000000..8b8cf29
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-4-result.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-5-request.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-5-request.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-5-request.bin
new file mode 100644
index 0000000..1bd1e14
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-5-request.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-5-result.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-5-result.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-5-result.bin
new file mode 100644
index 0000000..02240e7
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-5-result.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-6-request.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-6-request.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-6-request.bin
new file mode 100644
index 0000000..dfc2157
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-6-request.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-6-result.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-6-result.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-6-result.bin
new file mode 100644
index 0000000..74c7188
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-operation-6-result.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-session-request.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-session-request.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-session-request.bin
new file mode 100644
index 0000000..369b72e
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-session-request.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-session-result.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-session-result.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-session-result.bin
new file mode 100644
index 0000000..8f8fbb9
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/close-session-result.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-create-table-request.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-create-table-request.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-create-table-request.bin
new file mode 100644
index 0000000..793c9b5
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-create-table-request.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-create-table-result.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-create-table-result.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-create-table-result.bin
new file mode 100644
index 0000000..aeae677
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-create-table-result.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-select-from-table-request.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-select-from-table-request.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-select-from-table-request.bin
new file mode 100644
index 0000000..7c5cd08
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-select-from-table-request.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-select-from-table-result.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-select-from-table-result.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-select-from-table-result.bin
new file mode 100644
index 0000000..8b39c90
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-select-from-table-result.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-fetch-output-serde-request.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-fetch-output-serde-request.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-fetch-output-serde-request.bin
new file mode 100644
index 0000000..c9af87d
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-fetch-output-serde-request.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-fetch-output-serde-result.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-fetch-output-serde-result.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-fetch-output-serde-result.bin
new file mode 100644
index 0000000..d5e948a
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-fetch-output-serde-result.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-security-authorization-enabled-request.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-security-authorization-enabled-request.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-security-authorization-enabled-request.bin
new file mode 100644
index 0000000..13eb919
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-security-authorization-enabled-request.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-security-authorization-enabled-result.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-security-authorization-enabled-result.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-security-authorization-enabled-result.bin
new file mode 100644
index 0000000..b8dcefb
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-security-authorization-enabled-result.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-server2-http-path-request.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-server2-http-path-request.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-server2-http-path-request.bin
new file mode 100644
index 0000000..fd1c2ac
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-server2-http-path-request.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-server2-http-path-result.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-server2-http-path-result.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-server2-http-path-result.bin
new file mode 100644
index 0000000..7872795
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-server2-http-path-result.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-server2-servermode-request.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-server2-servermode-request.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-server2-servermode-request.bin
new file mode 100644
index 0000000..a463fb7
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-server2-servermode-request.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-server2-servermode-result.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-server2-servermode-result.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-server2-servermode-result.bin
new file mode 100644
index 0000000..0494b0d
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/execute-set-server2-servermode-result.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/fetch-results-request.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/fetch-results-request.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/fetch-results-request.bin
new file mode 100644
index 0000000..cb5f033
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/fetch-results-request.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/fetch-results-result.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/fetch-results-result.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/fetch-results-result.bin
new file mode 100644
index 0000000..a6673fb
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/fetch-results-result.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/get-result-set-metadata-request.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/get-result-set-metadata-request.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/get-result-set-metadata-request.bin
new file mode 100644
index 0000000..2d26066
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/get-result-set-metadata-request.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/get-result-set-metadata-result.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/get-result-set-metadata-result.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/get-result-set-metadata-result.bin
new file mode 100644
index 0000000..ec0dafb
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/get-result-set-metadata-result.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/open-session-request.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/open-session-request.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/open-session-request.bin
new file mode 100644
index 0000000..510bb63
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/open-session-request.bin differ
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/ad693b0e/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/open-session-result.bin
----------------------------------------------------------------------
diff --git a/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/open-session-result.bin b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/open-session-result.bin
new file mode 100644
index 0000000..3d656fe
Binary files /dev/null and b/gateway-test/src/test/resources/org/apache/hadoop/gateway/GatewayBasicFuncTest/hive/open-session-result.bin differ