org.apache.hcatalog.common
Class AuthUtils

java.lang.Object
  extended by org.apache.hcatalog.common.AuthUtils

public class AuthUtils
extends java.lang.Object


Constructor Summary
AuthUtils()
           
 
Method Summary
static void authorize(org.apache.hadoop.fs.Path path, org.apache.hadoop.fs.permission.FsAction action, org.apache.hadoop.conf.Configuration conf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AuthUtils

public AuthUtils()
Method Detail

authorize

public static void authorize(org.apache.hadoop.fs.Path path,
                             org.apache.hadoop.fs.permission.FsAction action,
                             org.apache.hadoop.conf.Configuration conf)
                      throws org.apache.hadoop.hive.ql.parse.SemanticException,
                             HCatException
Parameters:
path - non-null
action - non-null
conf -
Throws:
org.apache.hadoop.hive.ql.parse.SemanticException
HCatException - This method validates only for existing path. If path doesn't exist there is nothing to validate. So, make sure that path passed in is non-null.