Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
|
Public Member Functions | |
AuthorizationTest (String policyFile) throws Exception | |
void | TestFix () throws AnalysisException |
void | TestSentryService () throws ImpalaException |
void | TestTPCHCleanup () throws AuthorizationException, AnalysisException |
void | TestSelect () throws AuthorizationException, AnalysisException |
void | TestUnion () throws AuthorizationException, AnalysisException |
void | TestInsert () throws AuthorizationException, AnalysisException |
void | TestWithClause () throws AuthorizationException, AnalysisException |
void | TestExplain () throws AuthorizationException, AnalysisException |
void | TestUseDb () throws AnalysisException, AuthorizationException |
void | TestResetMetadata () throws ImpalaException |
void | TestCreateTable () throws AnalysisException, AuthorizationException |
void | TestCreateView () throws AuthorizationException, AnalysisException |
void | TestCreateDatabase () throws ImpalaException |
void | TestDropDatabase () throws AnalysisException, AuthorizationException |
void | TestDropTable () throws AnalysisException, AuthorizationException |
void | TestDropView () throws AnalysisException, AuthorizationException |
void | TestAlterTable () throws AnalysisException, AuthorizationException |
void | TestAlterView () throws AnalysisException, AuthorizationException |
void | TestComputeStatsTable () throws AnalysisException, AuthorizationException |
void | TestDropStats () throws AnalysisException, AuthorizationException |
void | TestDescribe () throws AuthorizationException, AnalysisException |
void | TestLoad () throws AuthorizationException, AnalysisException |
void | TestShowPermissions () throws AuthorizationException, AnalysisException |
void | TestShowDbResultsFiltered () throws ImpalaException |
void | TestShowTableResultsFiltered () throws ImpalaException |
void | TestShowCreateTable () throws ImpalaException |
void | TestHs2GetTables () throws ImpalaException |
void | TestHs2GetSchema () throws ImpalaException |
void | TestHs2GetColumns () throws ImpalaException |
void | TestShortUsernameUsed () throws AnalysisException, AuthorizationException |
void | TestFunction () throws ImpalaException |
void | TestServerNameAuthorized () throws AnalysisException |
void | TestNoPermissionsWhenPolicyFileDoesNotExist () throws AnalysisException |
void | TestConfigValidation () throws InternalException |
void | TestLocalGroupPolicyProvider () throws AnalysisException, AuthorizationException |
Static Public Member Functions | |
static Collection | testVectors () |
Static Protected Attributes | |
static final String | SERVER_HOST = "localhost" |
Private Member Functions | |
void | setup () throws Exception |
void | TestWithIncorrectConfig (AuthorizationConfig authzConfig, User user) throws AnalysisException |
void | AuthzOk (String stmt) throws AuthorizationException, AnalysisException |
void | AuthzOk (AnalysisContext context, String stmt) throws AuthorizationException, AnalysisException |
void | AuthzError (String stmt, String expectedErrorString) throws AnalysisException |
void | AuthzError (AnalysisContext analysisContext, String stmt, String expectedErrorString, User user) throws AnalysisException |
SentryPolicyService | createSentryService () |
Static Private Member Functions | |
static void | AuthzOk (Frontend fe, AnalysisContext context, String stmt) throws AuthorizationException, AnalysisException |
static void | AuthzError (Frontend fe, AnalysisContext analysisContext, String stmt, String expectedErrorString, User user) throws AnalysisException |
static TSessionState | createSessionState (String defaultDb, User user) |
Private Attributes | |
final AuthorizationConfig | authzConfig_ |
final ImpaladCatalog | catalog_ |
final TQueryCtx | queryCtx_ |
final AnalysisContext | analysisContext_ |
final Frontend | fe_ |
Static Private Attributes | |
static final Logger | LOG |
static final String | AUTHZ_POLICY_FILE = "/test-warehouse/authz-policy.ini" |
static final User | USER = new User(System.getProperty("user.name")) |
static final User | ADMIN_USER = new User("admin_user") |
static boolean | isSetup_ = false |
Definition at line 70 of file AuthorizationTest.java.
|
inline |
Definition at line 106 of file AuthorizationTest.java.
References com.cloudera.impala.catalog.Catalog.DEFAULT_DB.
|
inlineprivate |
Verifies that a given statement fails authorization and the expected error string matches.
Definition at line 1562 of file AuthorizationTest.java.
|
inlineprivate |
Definition at line 1567 of file AuthorizationTest.java.
|
inlinestaticprivate |
Definition at line 1572 of file AuthorizationTest.java.
|
inlineprivate |
Definition at line 1542 of file AuthorizationTest.java.
|
inlineprivate |
Definition at line 1547 of file AuthorizationTest.java.
|
inlinestaticprivate |
Definition at line 1552 of file AuthorizationTest.java.
|
inlineprivate |
Definition at line 1598 of file AuthorizationTest.java.
References com.cloudera.impala.authorization.AuthorizationConfig.getSentryConfig().
|
inlinestaticprivate |
Definition at line 1593 of file AuthorizationTest.java.
References com.cloudera.impala.authorization.User.getName().
|
inlineprivate |
Definition at line 120 of file AuthorizationTest.java.
References com.cloudera.impala.authorization.AuthorizeableTable.ANY_TABLE_NAME, and com.cloudera.impala.authorization.AuthorizationConfig.getSentryConfig().
|
inline |
Definition at line 834 of file AuthorizationTest.java.
|
inline |
Definition at line 949 of file AuthorizationTest.java.
|
inline |
Definition at line 1005 of file AuthorizationTest.java.
|
inline |
Definition at line 1389 of file AuthorizationTest.java.
|
inline |
Definition at line 699 of file AuthorizationTest.java.
References com.cloudera.impala.authorization.AuthorizationConfig.getSentryConfig(), and com.cloudera.impala.authorization.AuthorizationConfig.isFileBasedPolicy().
|
inline |
Definition at line 577 of file AuthorizationTest.java.
|
inline |
Definition at line 648 of file AuthorizationTest.java.
|
inline |
Definition at line 1027 of file AuthorizationTest.java.
|
inline |
Definition at line 738 of file AuthorizationTest.java.
|
inline |
Definition at line 1016 of file AuthorizationTest.java.
|
inline |
Definition at line 768 of file AuthorizationTest.java.
|
inline |
Definition at line 801 of file AuthorizationTest.java.
|
inline |
Definition at line 434 of file AuthorizationTest.java.
|
inline |
Definition at line 249 of file AuthorizationTest.java.
|
inline |
Definition at line 1283 of file AuthorizationTest.java.
References com.cloudera.impala.testutil.TestUtils.createQueryContext(), com.cloudera.impala.catalog.Catalog.DEFAULT_DB, com.cloudera.impala.authorization.User.getName(), com.cloudera.impala.authorization.AuthorizationConfig.getSentryConfig(), com.cloudera.impala.catalog.Type.INT, and com.cloudera.impala.authorization.AuthorizationConfig.isFileBasedPolicy().
|
inline |
Definition at line 1230 of file AuthorizationTest.java.
|
inline |
Definition at line 1212 of file AuthorizationTest.java.
|
inline |
Definition at line 1191 of file AuthorizationTest.java.
|
inline |
Definition at line 373 of file AuthorizationTest.java.
|
inline |
Definition at line 1050 of file AuthorizationTest.java.
|
inline |
Definition at line 1489 of file AuthorizationTest.java.
References com.cloudera.impala.testutil.TestUtils.createQueryContext(), com.cloudera.impala.catalog.Catalog.DEFAULT_DB, com.cloudera.impala.authorization.User.getName(), and com.cloudera.impala.authorization.AuthorizationConfig.isFileBasedPolicy().
|
inline |
Definition at line 1376 of file AuthorizationTest.java.
References com.cloudera.impala.authorization.AuthorizationConfig.createHadoopGroupAuthConfig(), and com.cloudera.impala.authorization.AuthorizationConfig.isFileBasedPolicy().
|
inline |
Definition at line 536 of file AuthorizationTest.java.
References com.cloudera.impala.authorization.AuthorizationConfig.isFileBasedPolicy().
|
inline |
Definition at line 293 of file AuthorizationTest.java.
|
inline |
Definition at line 256 of file AuthorizationTest.java.
References com.cloudera.impala.authorization.AuthorizationConfig.getSentryConfig().
|
inline |
Definition at line 1366 of file AuthorizationTest.java.
References com.cloudera.impala.authorization.AuthorizationConfig.createHadoopGroupAuthConfig(), and com.cloudera.impala.authorization.AuthorizationConfig.isFileBasedPolicy().
|
inline |
Definition at line 1256 of file AuthorizationTest.java.
References com.cloudera.impala.testutil.TestUtils.createQueryContext(), com.cloudera.impala.catalog.Catalog.DEFAULT_DB, and com.cloudera.impala.authorization.User.getName().
|
inline |
Definition at line 1172 of file AuthorizationTest.java.
|
inline |
Definition at line 1145 of file AuthorizationTest.java.
|
inline |
Definition at line 1091 of file AuthorizationTest.java.
|
inline |
Definition at line 1159 of file AuthorizationTest.java.
|
inline |
Definition at line 283 of file AuthorizationTest.java.
References com.cloudera.impala.catalog.Catalog.getDb().
|
inline |
Definition at line 362 of file AuthorizationTest.java.
|
inline |
Definition at line 506 of file AuthorizationTest.java.
|
inlinestatic |
Definition at line 102 of file AuthorizationTest.java.
|
inline |
Definition at line 408 of file AuthorizationTest.java.
|
inlineprivate |
Definition at line 1524 of file AuthorizationTest.java.
References com.cloudera.impala.testutil.TestUtils.createQueryContext(), and com.cloudera.impala.catalog.Catalog.DEFAULT_DB.
|
staticprivate |
Definition at line 88 of file AuthorizationTest.java.
|
private |
Definition at line 93 of file AuthorizationTest.java.
|
staticprivate |
Definition at line 84 of file AuthorizationTest.java.
|
private |
Definition at line 90 of file AuthorizationTest.java.
|
private |
Definition at line 91 of file AuthorizationTest.java.
|
private |
Definition at line 94 of file AuthorizationTest.java.
|
staticprivate |
Definition at line 96 of file AuthorizationTest.java.
|
staticprivate |
Definition at line 71 of file AuthorizationTest.java.
|
private |
Definition at line 92 of file AuthorizationTest.java.
|
staticprotected |
Definition at line 95 of file AuthorizationTest.java.
|
staticprivate |
Definition at line 85 of file AuthorizationTest.java.