You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by br...@apache.org on 2014/02/19 15:48:03 UTC
[4/4] git commit: SENTRY-109 - Create basic sentry store
infrastructure (Shreepadma via Brock)
SENTRY-109 - Create basic sentry store infrastructure (Shreepadma via Brock)
Project: http://git-wip-us.apache.org/repos/asf/incubator-sentry/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-sentry/commit/c40040e4
Tree: http://git-wip-us.apache.org/repos/asf/incubator-sentry/tree/c40040e4
Diff: http://git-wip-us.apache.org/repos/asf/incubator-sentry/diff/c40040e4
Branch: refs/heads/db_policy_store
Commit: c40040e4cfb45d0670f99099ff7c9f0a2a114709
Parents: 1e121cc
Author: Brock Noland <br...@apache.org>
Authored: Wed Feb 19 08:47:44 2014 -0600
Committer: Brock Noland <br...@apache.org>
Committed: Wed Feb 19 08:47:44 2014 -0600
----------------------------------------------------------------------
.gitignore | 3 +-
pom.xml | 23 +-
sentry-provider/sentry-provider-db/.gitignore | 1 +
sentry-provider/sentry-provider-db/pom.xml | 40 +-
.../db/service/thrift/SentryPolicyService.java | 2224 +++++++++++++++---
.../service/thrift/TDropSentryRoleRequest.java | 601 +++++
.../service/thrift/TDropSentryRoleResponse.java | 390 +++
.../service/thrift/TListSentryRolesRequest.java | 61 +-
.../provider/db/service/model/MSentryGroup.java | 17 +-
.../db/service/model/MSentryPrivilege.java | 39 +-
.../provider/db/service/model/MSentryRole.java | 19 +-
.../provider/db/service/model/package.jdo | 10 +-
.../db/service/persistent/SentryStore.java | 371 +--
.../thrift/SentryPolicyServiceClient.java | 45 +-
.../thrift/SentryPolicyStoreProcessor.java | 83 +-
.../sentry/service/thrift/SentryService.java | 91 +-
.../main/resources/sentry_policy_service.thrift | 20 +-
.../thrift/TestSentryServiceIntegration.java | 46 +-
sentry-tests/sentry-tests-hive/.gitignore | 1 +
sentry-tests/sentry-tests-hive/pom.xml | 29 +
20 files changed, 3401 insertions(+), 713 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/c40040e4/.gitignore
----------------------------------------------------------------------
diff --git a/.gitignore b/.gitignore
index 06f9ff4..6a39d39 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,7 +6,8 @@ target/
.metadata
.idea/
*.iml
-**/derby.log
+derby.log
+datanucleus.log
**/TempStatsStore/
# Package Files #
*.jar
http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/c40040e4/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 31eca9e..001f3b8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -62,6 +62,7 @@ limitations under the License.
<datanucleus-api-jdo.version>3.2.1</datanucleus-api-jdo.version>
<datanucleus-core.version>3.2.2</datanucleus-core.version>
<datanucleus-rdbms.version>3.2.1</datanucleus-rdbms.version>
+ <jdo-api.version>3.0.1</jdo-api.version>
<derby.version>10.4.2.0</derby.version>
<hive.version>0.12.0-cdh5.0.0-beta-2-SNAPSHOT</hive.version>
<hadoop.version>2.2.0-cdh5.0.0-beta-2-SNAPSHOT</hadoop.version>
@@ -269,6 +270,26 @@ limitations under the License.
<artifactId>sentry-dist</artifactId>
<version>${project.version}</version>
</dependency>
+ <dependency>
+ <groupId>javax.jdo</groupId>
+ <artifactId>jdo-api</artifactId>
+ <version>${jdo-api.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.datanucleus</groupId>
+ <artifactId>datanucleus-core</artifactId>
+ <version>${datanucleus-core.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.datanucleus</groupId>
+ <artifactId>datanucleus-api-jdo</artifactId>
+ <version>${datanucleus-api-jdo.version}</version>
+ </dependency>
+ <dependency>
+ <groupId>org.datanucleus</groupId>
+ <artifactId>datanucleus-rdbms</artifactId>
+ <version>${datanucleus-rdbms.version}</version>
+ </dependency>
</dependencies>
</dependencyManagement>
@@ -409,7 +430,7 @@ limitations under the License.
<artifactId>build-helper-maven-plugin</artifactId>
<version>${build.helper.maven.plugin.version}</version>
</plugin>
- <plugin>
+ <plugin>
<groupId>org.datanucleus</groupId>
<artifactId>datanucleus-maven-plugin</artifactId>
<version>${datanucleus.maven.plugin.version}</version>
http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/c40040e4/sentry-provider/sentry-provider-db/.gitignore
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/.gitignore b/sentry-provider/sentry-provider-db/.gitignore
new file mode 100644
index 0000000..55b8677
--- /dev/null
+++ b/sentry-provider/sentry-provider-db/.gitignore
@@ -0,0 +1 @@
+sentry_policy_db
http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/c40040e4/sentry-provider/sentry-provider-db/pom.xml
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/pom.xml b/sentry-provider/sentry-provider-db/pom.xml
index 6a301d8..0df8a61 100644
--- a/sentry-provider/sentry-provider-db/pom.xml
+++ b/sentry-provider/sentry-provider-db/pom.xml
@@ -38,6 +38,10 @@ limitations under the License.
<scope>test</scope>
</dependency>
<dependency>
+ <groupId>org.apache.derby</groupId>
+ <artifactId>derby</artifactId>
+ </dependency>
+ <dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
</dependency>
@@ -92,9 +96,39 @@ limitations under the License.
<artifactId>hadoop-minikdc</artifactId>
<scope>test</scope>
</dependency>
+ <dependency>
+ <groupId>com.google.guava</groupId>
+ <artifactId>guava</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>javax.jdo</groupId>
+ <artifactId>jdo-api</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.datanucleus</groupId>
+ <artifactId>datanucleus-core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.datanucleus</groupId>
+ <artifactId>datanucleus-api-jdo</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.datanucleus</groupId>
+ <artifactId>datanucleus-rdbms</artifactId>
+ </dependency>
</dependencies>
<build>
+ <sourceDirectory>${basedir}/src/main/java</sourceDirectory>
+ <testSourceDirectory>${basedir}/src/test/java</testSourceDirectory>
+ <resources>
+ <resource>
+ <directory>${basedir}/src/main/java/org/apache/sentry/provider/db/service/model</directory>
+ <includes>
+ <include>package.jdo</include>
+ </includes>
+ </resource>
+ </resources>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
@@ -119,17 +153,17 @@ limitations under the License.
<artifactId>datanucleus-maven-plugin</artifactId>
<configuration>
<api>JDO</api>
- <verbose>true</verbose>
<metadataIncludes>**/*.jdo</metadataIncludes>
+ <verbose>true</verbose>
</configuration>
- <!-- executions>
+ <executions>
<execution>
<phase>process-classes</phase>
<goals>
<goal>enhance</goal>
</goals>
</execution>
- </executions -->
+ </executions>
</plugin>
</plugins>
</build>