Examples of HiveOperationType


Examples of org.apache.hadoop.hive.ql.security.authorization.plugin.HiveOperationType

    }
  }

  private void doAuthorizationV2(SessionState ss, HiveOperation op, HashSet<ReadEntity> inputs,
      HashSet<WriteEntity> outputs) throws HiveException {
    HiveOperationType hiveOpType = getHiveOperationType(op);
    List<HivePrivilegeObject> inputsHObjs = getHivePrivObjects(inputs);
    List<HivePrivilegeObject> outputHObjs = getHivePrivObjects(outputs);
    ss.getAuthorizerV2().checkPrivileges(hiveOpType, inputsHObjs, outputHObjs);
    return;
  }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.security.authorization.plugin.HiveOperationType

    }
  }

  private void doAuthorizationV2(SessionState ss, HiveOperation op, HashSet<ReadEntity> inputs,
      HashSet<WriteEntity> outputs) throws HiveException {
    HiveOperationType hiveOpType = getHiveOperationType(op);
    List<HivePrivilegeObject> inputsHObjs = getHivePrivObjects(inputs);
    List<HivePrivilegeObject> outputHObjs = getHivePrivObjects(outputs);
    ss.getAuthorizerV2().checkPrivileges(hiveOpType, inputsHObjs, outputHObjs);
    return;
  }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.security.authorization.plugin.HiveOperationType

    HiveAuthzContext.Builder authzContextBuilder = new HiveAuthzContext.Builder();
    authzContextBuilder.setUserIpAddress(ss.getUserIpAddress());
    authzContextBuilder.setCommandString(command);

    HiveOperationType hiveOpType = getHiveOperationType(op);
    List<HivePrivilegeObject> inputsHObjs = getHivePrivObjects(inputs, tab2cols);
    List<HivePrivilegeObject> outputHObjs = getHivePrivObjects(outputs, updateTab2Cols);

    ss.getAuthorizerV2().checkPrivileges(hiveOpType, inputsHObjs, outputHObjs, authzContextBuilder.build());
  }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.security.authorization.plugin.HiveOperationType

    }
  }

  private void doAuthorizationV2(SessionState ss, HiveOperation op, HashSet<ReadEntity> inputs,
      HashSet<WriteEntity> outputs) throws HiveException {
    HiveOperationType hiveOpType = getHiveOperationType(op);
    List<HivePrivilegeObject> inputsHObjs = getHivePrivObjects(inputs);
    List<HivePrivilegeObject> outputHObjs = getHivePrivObjects(outputs);
    ss.getAuthorizerV2().checkPrivileges(hiveOpType, inputsHObjs, outputHObjs);
    return;
  }
View Full Code Here

Examples of org.apache.hadoop.hive.ql.security.authorization.plugin.HiveOperationType

    }
  }

  private void doAuthorizationV2(SessionState ss, HiveOperation op, HashSet<ReadEntity> inputs,
      HashSet<WriteEntity> outputs) throws HiveException {
    HiveOperationType hiveOpType = getHiveOperationType(op);
    List<HivePrivilegeObject> inputsHObjs = getHivePrivObjects(inputs);
    List<HivePrivilegeObject> outputHObjs = getHivePrivObjects(outputs);
    ss.getAuthorizerV2().checkPrivileges(hiveOpType, inputsHObjs, outputHObjs);
    return;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.