Skip to content

Commit

Permalink
PHOENIX-672 Add GRANT and REVOKE commands using HBase AccessControlle…
Browse files Browse the repository at this point in the history
…r-addendum
  • Loading branch information
chrajeshbabu committed Apr 7, 2018
1 parent 6521c87 commit 1e90991
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
Expand Up @@ -103,7 +103,7 @@
* @since 0.1
*/
public class ConnectionlessQueryServicesImpl extends DelegateQueryServices implements ConnectionQueryServices {
private static ServerName SERVER_NAME = ServerName.parseServerName(HConstants.LOCALHOST + Addressing.HOSTNAME_PORT_SEPARATOR + HConstants.DEFAULT_ZOOKEEPER_CLIENT_PORT);
private static ServerName SERVER_NAME = ServerName.parseServerName(HConstants.LOCALHOST + Addressing.HOSTNAME_PORT_SEPARATOR + HConstants.DEFAULT_ZOOKEPER_CLIENT_PORT);

private PMetaData metaData;
private final Map<SequenceKey, SequenceInfo> sequenceMap = Maps.newHashMap();
Expand Down
Expand Up @@ -643,7 +643,7 @@ public static int getAutoPartitionColIndex(PTable parentTable) {
public static String getJdbcUrl(RegionCoprocessorEnvironment env) {
String zkQuorum = env.getConfiguration().get(HConstants.ZOOKEEPER_QUORUM);
String zkClientPort = env.getConfiguration().get(HConstants.ZOOKEEPER_CLIENT_PORT,
Integer.toString(HConstants.DEFAULT_ZOOKEEPER_CLIENT_PORT));
Integer.toString(HConstants.DEFAULT_ZOOKEPER_CLIENT_PORT));
String zkParentNode = env.getConfiguration().get(HConstants.ZOOKEEPER_ZNODE_PARENT,
HConstants.DEFAULT_ZOOKEEPER_ZNODE_PARENT);
return PhoenixRuntime.JDBC_PROTOCOL + PhoenixRuntime.JDBC_PROTOCOL_SEPARATOR + zkQuorum
Expand Down
Expand Up @@ -400,7 +400,7 @@ public static String getConnectionUrl(Properties props, Configuration conf)
public static String getConnectionUrl(Properties props, Configuration conf, String principal)
throws ClassNotFoundException, SQLException {
// read the hbase properties from the configuration
int port = getInt(HConstants.ZOOKEEPER_CLIENT_PORT, HConstants.DEFAULT_ZOOKEEPER_CLIENT_PORT, props, conf);
int port = getInt(HConstants.ZOOKEEPER_CLIENT_PORT, HConstants.DEFAULT_ZOOKEPER_CLIENT_PORT, props, conf);
// Build the ZK quorum server string with "server:clientport" list, separated by ','
final String server = getString(HConstants.ZOOKEEPER_QUORUM, HConstants.LOCALHOST, props, conf);
String znodeParent = getString(HConstants.ZOOKEEPER_ZNODE_PARENT, HConstants.DEFAULT_ZOOKEEPER_ZNODE_PARENT, props, conf);
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -66,7 +66,7 @@
<top.dir>${project.basedir}</top.dir>

<!-- Hadoop Versions -->
<hbase.version>2.1.0-SNAPSHOT</hbase.version>
<hbase.version>2.0.0</hbase.version>
<hadoop.version>3.0.0</hadoop.version>

<!-- Dependency versions -->
Expand Down

0 comments on commit 1e90991

Please sign in to comment.