[2/2] git commit: YARN-2102. Added the concept of a Timeline Domain to handle read/write ACLs on Timeline service event data. Contributed by Zhijie Shen.

2014-09-24 Thread vinodkv
YARN-2102. Added the concept of a Timeline Domain to handle read/write ACLs on 
Timeline service event data. Contributed by Zhijie Shen.


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/d78b452a
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/d78b452a
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/d78b452a

Branch: refs/heads/trunk
Commit: d78b452a4f413c6931a494c33df0666ce9b44973
Parents: 073bbd8
Author: Vinod Kumar Vavilapalli vino...@apache.org
Authored: Wed Sep 24 11:27:53 2014 -0700
Committer: Vinod Kumar Vavilapalli vino...@apache.org
Committed: Wed Sep 24 11:27:53 2014 -0700

--
 hadoop-yarn-project/CHANGES.txt |   3 +
 .../api/records/timeline/TimelineDomain.java| 194 
 .../api/records/timeline/TimelineDomains.java   |  86 +++
 .../hadoop/yarn/client/api/TimelineClient.java  |  17 ++
 .../client/api/impl/TimelineClientImpl.java | 116 +++---
 .../records/timeline/TestTimelineRecords.java   |  38 +++
 .../client/api/impl/TestTimelineClient.java |  85 ++-
 .../server/timeline/LeveldbTimelineStore.java   | 216 -
 .../server/timeline/MemoryTimelineStore.java|  99 
 .../server/timeline/TimelineDataManager.java|  74 ++
 .../yarn/server/timeline/TimelineReader.java|  23 ++
 .../yarn/server/timeline/TimelineWriter.java|  20 +-
 .../timeline/security/TimelineACLsManager.java  |  26 +++
 .../timeline/webapp/TimelineWebServices.java| 100 
 .../timeline/TestLeveldbTimelineStore.java  |  19 +-
 .../timeline/TestMemoryTimelineStore.java   |  15 +-
 .../server/timeline/TimelineStoreTestUtils.java |  96 +++-
 .../security/TestTimelineACLsManager.java   |  63 -
 .../webapp/TestTimelineWebServices.java | 231 ++-
 .../webapp/TestTimelineWebServicesWithSSL.java  |   5 +-
 20 files changed, 1449 insertions(+), 77 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hadoop/blob/d78b452a/hadoop-yarn-project/CHANGES.txt
--
diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt
index 59287c2..016ac15 100644
--- a/hadoop-yarn-project/CHANGES.txt
+++ b/hadoop-yarn-project/CHANGES.txt
@@ -94,6 +94,9 @@ Release 2.6.0 - UNRELEASED
 YARN-2569. Added the log handling APIs for the long running services. (Xuan
 Gong via zjshen)
 
+YARN-2102. Added the concept of a Timeline Domain to handle read/write ACLs
+on Timeline service event data. (Zhijie Shen via vinodkv)
+
   IMPROVEMENTS
 
 YARN-2197. Add a link to YARN CHANGES.txt in the left side of doc

http://git-wip-us.apache.org/repos/asf/hadoop/blob/d78b452a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/timeline/TimelineDomain.java
--
diff --git 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/timeline/TimelineDomain.java
 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/timeline/TimelineDomain.java
new file mode 100644
index 000..f8a7e60
--- /dev/null
+++ 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/timeline/TimelineDomain.java
@@ -0,0 +1,194 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * License); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.yarn.api.records.timeline;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Unstable;
+
+/**
+ * p
+ * This class contains the information about a timeline domain, which is used
+ * to a user to host a number of timeline entities, isolating them from 
others'.
+ * The 

[2/2] git commit: YARN-2102. Added the concept of a Timeline Domain to handle read/write ACLs on Timeline service event data. Contributed by Zhijie Shen.

2014-09-24 Thread vinodkv
YARN-2102. Added the concept of a Timeline Domain to handle read/write ACLs on 
Timeline service event data. Contributed by Zhijie Shen.

(cherry picked from commit d78b452a4f413c6931a494c33df0666ce9b44973)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/5d251d99
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/5d251d99
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/5d251d99

Branch: refs/heads/branch-2
Commit: 5d251d99d6d239b8e0458a4f723622e4416e5a9a
Parents: d5d9fd3
Author: Vinod Kumar Vavilapalli vino...@apache.org
Authored: Wed Sep 24 11:27:53 2014 -0700
Committer: Vinod Kumar Vavilapalli vino...@apache.org
Committed: Wed Sep 24 11:29:01 2014 -0700

--
 hadoop-yarn-project/CHANGES.txt |   3 +
 .../api/records/timeline/TimelineDomain.java| 194 
 .../api/records/timeline/TimelineDomains.java   |  86 +++
 .../hadoop/yarn/client/api/TimelineClient.java  |  17 ++
 .../client/api/impl/TimelineClientImpl.java | 116 +++---
 .../records/timeline/TestTimelineRecords.java   |  38 +++
 .../client/api/impl/TestTimelineClient.java |  85 ++-
 .../server/timeline/LeveldbTimelineStore.java   | 216 -
 .../server/timeline/MemoryTimelineStore.java|  99 
 .../server/timeline/TimelineDataManager.java|  74 ++
 .../yarn/server/timeline/TimelineReader.java|  23 ++
 .../yarn/server/timeline/TimelineWriter.java|  20 +-
 .../timeline/security/TimelineACLsManager.java  |  26 +++
 .../timeline/webapp/TimelineWebServices.java| 100 
 .../timeline/TestLeveldbTimelineStore.java  |  19 +-
 .../timeline/TestMemoryTimelineStore.java   |  15 +-
 .../server/timeline/TimelineStoreTestUtils.java |  96 +++-
 .../security/TestTimelineACLsManager.java   |  63 -
 .../webapp/TestTimelineWebServices.java | 231 ++-
 .../webapp/TestTimelineWebServicesWithSSL.java  |   5 +-
 20 files changed, 1449 insertions(+), 77 deletions(-)
--


http://git-wip-us.apache.org/repos/asf/hadoop/blob/5d251d99/hadoop-yarn-project/CHANGES.txt
--
diff --git a/hadoop-yarn-project/CHANGES.txt b/hadoop-yarn-project/CHANGES.txt
index d3fe962..b094f3b 100644
--- a/hadoop-yarn-project/CHANGES.txt
+++ b/hadoop-yarn-project/CHANGES.txt
@@ -67,6 +67,9 @@ Release 2.6.0 - UNRELEASED
 YARN-2569. Added the log handling APIs for the long running services. (Xuan
 Gong via zjshen)
 
+YARN-2102. Added the concept of a Timeline Domain to handle read/write ACLs
+on Timeline service event data. (Zhijie Shen via vinodkv)
+
   IMPROVEMENTS
 
 YARN-2242. Improve exception information on AM launch crashes. (Li Lu 

http://git-wip-us.apache.org/repos/asf/hadoop/blob/5d251d99/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/timeline/TimelineDomain.java
--
diff --git 
a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/timeline/TimelineDomain.java
 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/timeline/TimelineDomain.java
new file mode 100644
index 000..f8a7e60
--- /dev/null
+++ 
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/api/records/timeline/TimelineDomain.java
@@ -0,0 +1,194 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * License); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an AS IS BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+package org.apache.hadoop.yarn.api.records.timeline;
+
+import javax.xml.bind.annotation.XmlAccessType;
+import javax.xml.bind.annotation.XmlAccessorType;
+import javax.xml.bind.annotation.XmlElement;
+import javax.xml.bind.annotation.XmlRootElement;
+
+import org.apache.hadoop.classification.InterfaceAudience.Public;
+import org.apache.hadoop.classification.InterfaceStability.Unstable;
+
+/**
+ * p
+ * This class contains the information about a timeline domain, which is used
+ * to a user