forked from apache/hive
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HIVE-8828 : Remove hadoop 20 shims (Ashutosh Chauhan via Thejas Nair …
…& Brock Noland) git-svn-id: https://svn.apache.org/repos/asf/hive/trunk@1641980 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Showing
123 changed files
with
1,243 additions
and
8,634 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -70,17 +70,17 @@ protected void tearDown() throws Exception { | |
|
||
private Configuration createConf(String zkPath) { | ||
Configuration conf = new Configuration(); | ||
conf.set(HadoopThriftAuthBridge20S.Server.DELEGATION_TOKEN_STORE_ZK_CONNECT_STR, "localhost:" | ||
conf.set(HadoopThriftAuthBridge.Server.DELEGATION_TOKEN_STORE_ZK_CONNECT_STR, "localhost:" | ||
+ this.zkPort); | ||
conf.set(HadoopThriftAuthBridge20S.Server.DELEGATION_TOKEN_STORE_ZK_ZNODE, zkPath); | ||
conf.set(HadoopThriftAuthBridge.Server.DELEGATION_TOKEN_STORE_ZK_ZNODE, zkPath); | ||
return conf; | ||
} | ||
|
||
public void testTokenStorage() throws Exception { | ||
String ZK_PATH = "/zktokenstore-testTokenStorage"; | ||
ts = new ZooKeeperTokenStore(); | ||
Configuration conf = createConf(ZK_PATH); | ||
conf.set(HadoopThriftAuthBridge20S.Server.DELEGATION_TOKEN_STORE_ZK_ACL, "world:anyone:cdrwa"); | ||
conf.set(HadoopThriftAuthBridge.Server.DELEGATION_TOKEN_STORE_ZK_ACL, "world:anyone:cdrwa"); | ||
ts.setConf(conf); | ||
ts.init(null, ServerMode.METASTORE); | ||
|
||
|
@@ -128,7 +128,7 @@ public void testAclNoAuth() throws Exception { | |
String ZK_PATH = "/zktokenstore-testAclNoAuth"; | ||
Configuration conf = createConf(ZK_PATH); | ||
conf.set( | ||
HadoopThriftAuthBridge20S.Server.DELEGATION_TOKEN_STORE_ZK_ACL, | ||
HadoopThriftAuthBridge.Server.DELEGATION_TOKEN_STORE_ZK_ACL, | ||
"ip:127.0.0.1:r"); | ||
|
||
ts = new ZooKeeperTokenStore(); | ||
|
@@ -146,7 +146,7 @@ public void testAclInvalid() throws Exception { | |
String aclString = "sasl:hive/[email protected]:cdrwa, fail-parse-ignored"; | ||
Configuration conf = createConf(ZK_PATH); | ||
conf.set( | ||
HadoopThriftAuthBridge20S.Server.DELEGATION_TOKEN_STORE_ZK_ACL, | ||
HadoopThriftAuthBridge.Server.DELEGATION_TOKEN_STORE_ZK_ACL, | ||
aclString); | ||
|
||
List<ACL> aclList = ZooKeeperTokenStore.parseACLs(aclString); | ||
|
@@ -166,7 +166,7 @@ public void testAclPositive() throws Exception { | |
String ZK_PATH = "/zktokenstore-testAcl"; | ||
Configuration conf = createConf(ZK_PATH); | ||
conf.set( | ||
HadoopThriftAuthBridge20S.Server.DELEGATION_TOKEN_STORE_ZK_ACL, | ||
HadoopThriftAuthBridge.Server.DELEGATION_TOKEN_STORE_ZK_ACL, | ||
"ip:127.0.0.1:cdrwa,world:anyone:cdrwa"); | ||
ts = new ZooKeeperTokenStore(); | ||
ts.setConf(conf); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.