You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@slider.apache.org by st...@apache.org on 2014/07/09 18:05:12 UTC

[1/6] git commit: SLIDER-221 stub POM with example RPM Config pasted in off the example on the mvn plugin site

Repository: incubator-slider
Updated Branches:
  refs/heads/develop 3427b6e13 -> 729b56239


SLIDER-221 stub POM with example RPM Config pasted in off the example on the mvn plugin site


Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/497d11c3
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/497d11c3
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/497d11c3

Branch: refs/heads/develop
Commit: 497d11c35a51a5a791f65d9a4b3d7940d9a7930d
Parents: 3427b6e
Author: Steve Loughran <st...@apache.org>
Authored: Wed Jul 9 12:27:40 2014 +0100
Committer: Steve Loughran <st...@apache.org>
Committed: Wed Jul 9 12:27:40 2014 +0100

----------------------------------------------------------------------
 pom.xml                |   2 +
 slider-install/pom.xml | 226 ++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 228 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/497d11c3/pom.xml
----------------------------------------------------------------------
diff --git a/pom.xml b/pom.xml
index 49e8ce7..1ee78fe 100644
--- a/pom.xml
+++ b/pom.xml
@@ -45,6 +45,7 @@
     <module>slider-providers/hbase/hbase-funtests</module>
     <module>slider-providers/accumulo/slider-accumulo-provider</module>
     <module>slider-providers/accumulo/accumulo-funtests</module>
+    <module>slider-install</module>
   </modules>
 
   <licenses>
@@ -179,6 +180,7 @@
     <maven.project.version>2.4</maven.project.version>
     <maven.properties.version>1.0-alpha-2</maven.properties.version>
     <maven-project-info-reports-plugin.version>2.7</maven-project-info-reports-plugin.version>
+    <maven-rpm-plugin.version>2.1-alpha-4</maven-rpm-plugin.version>
     <maven-site-plugin.version>3.3</maven-site-plugin.version>
     <maven-source-plugin.version>2.2.1</maven-source-plugin.version>
     <maven-surefire-plugin.version>2.16</maven-surefire-plugin.version>

http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/497d11c3/slider-install/pom.xml
----------------------------------------------------------------------
diff --git a/slider-install/pom.xml b/slider-install/pom.xml
new file mode 100644
index 0000000..a00dca9
--- /dev/null
+++ b/slider-install/pom.xml
@@ -0,0 +1,226 @@
+<!--
+   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.
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+  <artifactId>slider-install</artifactId>
+  <name>Slider Install</name>
+  <packaging>pom</packaging>
+  <description>
+    
+    Builds any RPMs and other install packaging for Slider.
+    This is downstream of the slider assembly and the app packages, so
+    that anything from these can be installed in the RPM.
+  </description>
+  <parent>
+    <groupId>org.apache.slider</groupId>
+    <artifactId>slider</artifactId>
+    <version>0.31.0-incubating-SNAPSHOT</version>
+  </parent>
+
+  <build>
+    <plugins>
+      <!--read in a build.properties file if defined-->
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>properties-maven-plugin</artifactId>
+        <version>${maven.properties.version}</version>
+        <executions>
+          <execution>
+            <phase>initialize</phase>
+            <goals>
+              <goal>read-project-properties</goal>
+            </goals>
+            <configuration>
+              <quiet>true</quiet>
+              <files>
+                <file>build.properties</file>
+                <file>../build.properties</file>
+              </files>
+            </configuration>
+          </execution>
+        </executions>
+      </plugin>
+
+
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>rpm-maven-plugin</artifactId>
+        <version>${maven-rpm-plugin.version}</version>
+        <executions>
+          <execution>
+            <id>generate-rpm</id>
+            <goals>
+              <goal>rpm</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <license>http://www.apache.org/licenses/LICENSE-2.0</license>
+          <distribution>Trash 2005</distribution>
+          <group>Application/Collectors</group>
+          <icon>src/main/resources/icon.gif</icon>
+          <packager>SWWDC</packager>
+          <prefix>/usr/local</prefix>
+          <changelogFile>src/changelog</changelogFile>
+          <defineStatements>
+            <defineStatement>_unpackaged_files_terminate_build 0</defineStatement>
+          </defineStatements>
+          <mappings>
+            <mapping>
+              <directory>/usr/local/bin/landfill</directory>
+              <filemode>440</filemode>
+              <username>dumper</username>
+              <groupname>dumpgroup</groupname>
+              <sources>
+                <source>
+                  <location>target/classes</location>
+                </source>
+              </sources>
+            </mapping>
+            <mapping>
+              <directory>/usr/local/doc/landfill</directory>
+              <documentation>true</documentation>
+              <filemode>444</filemode>
+              <username>dumper</username>
+              <groupname>dumpgroup</groupname>
+              <sources>
+                <source>
+                  <location>target/site</location>
+                </source>
+              </sources>
+            </mapping>
+            <mapping>
+              <directory>/usr/local/lib</directory>
+              <filemode>750</filemode>
+              <username>dumper</username>
+              <groupname>dumpgroup</groupname>
+              <dependency>
+                <includes>
+                  <include>jmock:jmock</include>
+                  <include>javax.servlet:servlet-api:2.4</include>
+                </includes>
+                <excludes>
+                  <exclude>junit:junit</exclude>
+                </excludes>
+              </dependency>
+            </mapping>
+            <mapping>
+              <directory>/usr/local/bin</directory>
+              <filemode>750</filemode>
+              <username>dumper</username>
+              <groupname>dumpgroup</groupname>
+              <sources>
+                <source>
+                  <location>src/main/bin</location>
+                </source>
+                <softlinkSource>
+                  <location>/usr/local/bin/new.sh</location>
+                  <destination>old.sh</destination>
+                </softlinkSource>
+              </sources>
+            </mapping>
+            <mapping>
+              <directory>/usr/local/oldbin</directory>
+              <filemode>750</filemode>
+              <username>dumper</username>
+              <groupname>dumpgroup</groupname>
+              <sources>
+                <softlinkSource>
+                  <location>/usr/local/bin</location>
+                </softlinkSource>
+              </sources>
+            </mapping>
+            <mapping>
+              <directory>/usr/local/conf/landfill</directory>
+              <configuration>true</configuration>
+              <filemode>640</filemode>
+              <username>dumper</username>
+              <groupname>dumpgroup</groupname>
+              <sources>
+                <source>
+                  <location>src/main/conf</location>
+                </source>
+              </sources>
+            </mapping>
+            <mapping>
+              <directory>/usr/local/log/landfill</directory>
+              <filemode>750</filemode>
+              <username>dumper</username>
+              <groupname>dumpgroup</groupname>
+            </mapping>
+          </mappings>
+          <preinstallScriptlet>
+            <script>echo "installing now"</script>
+          </preinstallScriptlet>
+          <postinstallScriptlet>
+            <scriptFile>src/main/scripts/postinstall</scriptFile>
+            <fileEncoding>utf-8</fileEncoding>
+          </postinstallScriptlet>
+          <preremoveScriptlet>
+            <scriptFile>src/main/scripts/preremove</scriptFile>
+            <fileEncoding>utf-8</fileEncoding>
+          </preremoveScriptlet>
+        </configuration>
+      </plugin>
+    </plugins>
+    
+    
+  </build>
+
+  <reporting>
+    <plugins>
+ 
+
+
+    </plugins>
+  </reporting>
+
+  <dependencies>
+
+    <dependency>
+      <groupId>org.apache.slider</groupId>
+      <artifactId>slider-core</artifactId>
+      <version>${project.version}</version>
+    </dependency>
+
+    <!--
+     needed to order the build and ensure the agent tar is found
+     the test scope ensures that it isn't copied into the lib dir
+     -->
+    <dependency>
+      <groupId>org.apache.slider</groupId>
+      <artifactId>slider-agent</artifactId>
+      <version>${project.version}</version>
+      <scope>test</scope>
+      <type>tar.gz</type>
+    </dependency>
+
+    <dependency>
+      <groupId>com.beust</groupId>
+      <artifactId>jcommander</artifactId>
+    </dependency>
+
+
+    <dependency>
+      <groupId>org.apache.hadoop</groupId>
+      <artifactId>hadoop-client</artifactId>
+    </dependency>
+ 
+  </dependencies>
+
+
+</project>


[6/6] git commit: Merge branch 'feature/SLIDER-221_Create_an_RPM_for_slider' into develop

Posted by st...@apache.org.
Merge branch 'feature/SLIDER-221_Create_an_RPM_for_slider' into develop


Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/729b5623
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/729b5623
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/729b5623

Branch: refs/heads/develop
Commit: 729b5623903e0ef3cb971cdcde032c1641d27c8d
Parents: 3427b6e 27fe84d
Author: Steve Loughran <st...@apache.org>
Authored: Wed Jul 9 17:04:48 2014 +0100
Committer: Steve Loughran <st...@apache.org>
Committed: Wed Jul 9 17:04:48 2014 +0100

----------------------------------------------------------------------
 pom.xml                                        |   2 +
 slider-assembly/pom.xml                        | 183 +++++++++++++++++++-
 slider-assembly/src/conf-hdp/log4j.properties  |  58 +++++++
 slider-assembly/src/conf-hdp/slider-client.xml |  77 ++++++++
 slider-assembly/src/conf/slider-client.xml     |   3 -
 slider-install/pom.xml                         | 111 ++++++++++++
 6 files changed, 426 insertions(+), 8 deletions(-)
----------------------------------------------------------------------



[5/6] git commit: SLIDER-221 tuning RPM install after testing

Posted by st...@apache.org.
SLIDER-221 tuning RPM install after testing


Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/27fe84d0
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/27fe84d0
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/27fe84d0

Branch: refs/heads/develop
Commit: 27fe84d02aee5bcabf9c69240f5ced70d95ae14f
Parents: 4e02654
Author: Steve Loughran <st...@apache.org>
Authored: Wed Jul 9 16:40:55 2014 +0100
Committer: Steve Loughran <st...@apache.org>
Committed: Wed Jul 9 16:40:55 2014 +0100

----------------------------------------------------------------------
 slider-assembly/pom.xml | 55 +++++++++++++++++++++++++++++++++++++-------
 1 file changed, 47 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/27fe84d0/slider-assembly/pom.xml
----------------------------------------------------------------------
diff --git a/slider-assembly/pom.xml b/slider-assembly/pom.xml
index 8bc8f12..9fff10c 100644
--- a/slider-assembly/pom.xml
+++ b/slider-assembly/pom.xml
@@ -19,11 +19,7 @@
   <artifactId>slider-assembly</artifactId>
   <name>Slider Assembly</name>
   <packaging>pom</packaging>
-  <description>
-    
-    This is the module that does the packaging and shell entry
-    points for Slider
-  </description>
+  <description>Apache Slider is a tool for dynamically deploying distributed applications to an Apache YARN cluster</description>
   <parent>
     <groupId>org.apache.slider</groupId>
     <artifactId>slider</artifactId>
@@ -32,14 +28,16 @@
 
 
   <properties>
-    <rpm.basedir>/usr/local/slider</rpm.basedir>
+    <rpm.basedir>/usr/lib/slider</rpm.basedir>
     <rpm.confdir>${rpm.basedir}/conf</rpm.confdir>
     <rpm.bindir>${rpm.basedir}/bin</rpm.bindir>
     <rpm.libdir>${rpm.basedir}/lib</rpm.libdir>
+    <rpm.agentdir>${rpm.basedir}/agent</rpm.agentdir>
     <rpm.username>mapred</rpm.username>
-    <rpm.groupname>mapred</rpm.groupname>
+    <rpm.groupname>hadoop</rpm.groupname>
     <src.confdir>src/conf-hdp</src.confdir>
     <src.libdir>${project.build.directory}/lib</src.libdir>
+   <src.agent.ini.dir>${project.build.directory}/../../slider-agent/conf</src.agent.ini.dir>
   </properties>
 
   <build>
@@ -225,6 +223,10 @@
             <configuration>
               <license>http://www.apache.org/licenses/LICENSE-2.0</license>
               <name>slider</name>
+              <version>${project.version}</version>
+<!--
+              <release>${project.version}</release>
+-->
               <!---->
               <distribution></distribution>
               <group>Applications/Engineering</group>
@@ -296,13 +298,50 @@
                   </sources>
                 </mapping>
 
+                <!-- agent -->
+                <mapping>
+                  <directory>${rpm.agentdir}</directory>
+                  <configuration>true</configuration>
+                  <filemode>0755</filemode>
+                  <username>${rpm.username}</username>
+                  <groupname>${rpm.groupname}</groupname>
+                  <sources>
+                    <source>
+                      <location>${project.build.directory}/agent</location>
+      <includes>
+        <include>slider-agent.tar.gz</include>
+      </includes>
+                    </source>
+                  </sources>
+                </mapping>
+
+                <!-- agent.ini -->
+                <mapping>
+                  <directory>${rpm.agentdir}/conf</directory>
+                  <configuration>true</configuration>
+                  <filemode>0755</filemode>
+                  <username>${rpm.username}</username>
+                  <groupname>${rpm.groupname}</groupname>
+                  <sources>
+                    <source>
+                      <location>${src.agent.ini.dir}</location>
+<includes>
+<include>*.ini
+</include>
+</includes>
+                    </source>
+                  </sources>
+                </mapping>
               </mappings>
               <!--
-              Scripts. 
+              Scripts. Very dangerous in RPMs unless you know exactly what you are doing.
+              It's very easy to break the uninstall process, in particular.
               -->
+<!--
               <preinstallScriptlet>
                 <script>echo "installing slider"</script>
               </preinstallScriptlet>
+-->
               <!--
                         <postinstallScriptlet>
                           <scriptFile>src/main/scripts/postinstall</scriptFile>


[3/6] git commit: SLIDER-221 rpm is only built on the -Prpm profile

Posted by st...@apache.org.
SLIDER-221 rpm is only built on the -Prpm profile


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

Branch: refs/heads/develop
Commit: d44d4c1bf0e4a57d0cebb7408936d8f8a546442f
Parents: f62539b
Author: Steve Loughran <st...@apache.org>
Authored: Wed Jul 9 14:17:48 2014 +0100
Committer: Steve Loughran <st...@apache.org>
Committed: Wed Jul 9 14:17:48 2014 +0100

----------------------------------------------------------------------
 slider-assembly/pom.xml | 235 +++++++++++++++++++++++--------------------
 1 file changed, 124 insertions(+), 111 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/d44d4c1b/slider-assembly/pom.xml
----------------------------------------------------------------------
diff --git a/slider-assembly/pom.xml b/slider-assembly/pom.xml
index adfd875..95df363 100644
--- a/slider-assembly/pom.xml
+++ b/slider-assembly/pom.xml
@@ -189,117 +189,7 @@
         </executions>
       </plugin>
 
-      <!-- RPM -->
-
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>rpm-maven-plugin</artifactId>
-        <version>${maven-rpm-plugin.version}</version>
-        <executions>
-          <execution>
-            <id>generate-rpm</id>
-            <goals>
-              <goal>rpm</goal>
-            </goals>
-          </execution>
-        </executions>
-        <configuration>
-          <license>http://www.apache.org/licenses/LICENSE-2.0</license>
-          <name>slider</name>
-<!---->          <distribution></distribution>
-          <group>Applications/Engineering</group>
-          <!--<icon>src/main/resources/icon.gif</icon>-->
-          <!--<packager>ASF</packager>-->
-          <prefix>${rpm.basedir}</prefix>
-          <!--
-                    <changelogFile>src/changelog</changelogFile>
-          -->
-          <!--          <defineStatements>
-                      <defineStatement>_unpackaged_files_terminate_build 0</defineStatement>
-                    </defineStatements>-->
-          <provides>
-            <provide>apache-slider</provide>
-          </provides>
-          <mappings>
-            <mapping>
-              <directory>${rpm.basedir}</directory>
-              <!-- RW.R..R.. -->
-              <filemode>644</filemode>
-              
-              <username>${rpm.username}</username>
-              <groupname>${rpm.groupname}</groupname>
-              <sources>
-                <source>
-                  <location>target/classes</location>
-                </source>
-              </sources>
-            </mapping>
-            
-            <!-- binaries -->
-            <mapping>
-              <directory>${rpm.bindir}</directory>
-              <!-- RWXR.XR.X -->
-              <filemode>0755</filemode>
-              <username>${rpm.username}</username>
-              <groupname>${rpm.groupname}</groupname>
-              <sources>
-                <source>
-                  <location>src/main/scripts</location>
-                </source>
-              </sources>
-            </mapping>
-            
-            <!-- library -->
-            <mapping>
-              <directory>${rpm.libdir}</directory>
-              <!-- RW.R..R.. -->
-              <filemode>644</filemode>
-
-              <username>${rpm.username}</username>
-              <groupname>${rpm.groupname}</groupname>
-              <sources>
-                <source>
-                  <location>${src.libdir}</location>
-                </source>
-              </sources>
-            </mapping>
-                  
-          <!-- configuration -->
-            <mapping>
-              <directory>${rpm.confdir}</directory>
-              <configuration>true</configuration>
-              <filemode>0755</filemode>
-              <username>${rpm.username}</username>
-              <groupname>${rpm.groupname}</groupname>
-              <sources>
-                <source>
-                  <location>${src.confdir}</location>
-                </source>
-              </sources>
-            </mapping>
-
-          </mappings>
-<!--
-Scripts. 
--->
-          <preinstallScriptlet>
-            <script>echo "installing slider"</script>
-          </preinstallScriptlet>
-<!--
-          <postinstallScriptlet>
-            <scriptFile>src/main/scripts/postinstall</scriptFile>
-            <fileEncoding>utf-8</fileEncoding>
-          </postinstallScriptlet>
--->
-<!--
-          <preremoveScriptlet>
-            <scriptFile>src/main/scripts/preremove</scriptFile>
-            <fileEncoding>utf-8</fileEncoding>
-          </preremoveScriptlet>
--->
-        </configuration>
-      </plugin>
-
+ 
     </plugins>
     
     
@@ -313,6 +203,129 @@ Scripts.
     </plugins>
   </reporting>
 
+  <profiles>
+    <profile>
+      <id>rpm</id>
+      <build>
+        <plugins>
+          <!-- RPM -->
+
+          <plugin>
+            <groupId>org.codehaus.mojo</groupId>
+            <artifactId>rpm-maven-plugin</artifactId>
+            <version>${maven-rpm-plugin.version}</version>
+            <executions>
+              <execution>
+                <id>generate-rpm</id>
+                <goals>
+                  <goal>rpm</goal>
+                </goals>
+              </execution>
+            </executions>
+            <configuration>
+              <license>http://www.apache.org/licenses/LICENSE-2.0</license>
+              <name>slider</name>
+              <!---->
+              <distribution></distribution>
+              <group>Applications/Engineering</group>
+              <!--<icon>src/main/resources/icon.gif</icon>-->
+              <!--<packager>ASF</packager>-->
+              <prefix>${rpm.basedir}</prefix>
+              <!--
+                        <changelogFile>src/changelog</changelogFile>
+              -->
+              <!--          <defineStatements>
+                          <defineStatement>_unpackaged_files_terminate_build 0</defineStatement>
+                        </defineStatements>-->
+              <provides>
+                <provide>apache-slider</provide>
+              </provides>
+              <mappings>
+                <mapping>
+                  <directory>${rpm.basedir}</directory>
+                  <!-- RW.R..R.. -->
+                  <filemode>644</filemode>
+
+                  <username>${rpm.username}</username>
+                  <groupname>${rpm.groupname}</groupname>
+                  <sources>
+                    <source>
+                      <location>target/classes</location>
+                    </source>
+                  </sources>
+                </mapping>
+
+                <!-- binaries -->
+                <mapping>
+                  <directory>${rpm.bindir}</directory>
+                  <!-- RWXR.XR.X -->
+                  <filemode>0755</filemode>
+                  <username>${rpm.username}</username>
+                  <groupname>${rpm.groupname}</groupname>
+                  <sources>
+                    <source>
+                      <location>src/main/scripts</location>
+                    </source>
+                  </sources>
+                </mapping>
+
+                <!-- library -->
+                <mapping>
+                  <directory>${rpm.libdir}</directory>
+                  <!-- RW.R..R.. -->
+                  <filemode>644</filemode>
+
+                  <username>${rpm.username}</username>
+                  <groupname>${rpm.groupname}</groupname>
+                  <sources>
+                    <source>
+                      <location>${src.libdir}</location>
+                    </source>
+                  </sources>
+                </mapping>
+
+                <!-- configuration -->
+                <mapping>
+                  <directory>${rpm.confdir}</directory>
+                  <configuration>true</configuration>
+                  <filemode>0755</filemode>
+                  <username>${rpm.username}</username>
+                  <groupname>${rpm.groupname}</groupname>
+                  <sources>
+                    <source>
+                      <location>${src.confdir}</location>
+                    </source>
+                  </sources>
+                </mapping>
+
+              </mappings>
+              <!--
+              Scripts. 
+              -->
+              <preinstallScriptlet>
+                <script>echo "installing slider"</script>
+              </preinstallScriptlet>
+              <!--
+                        <postinstallScriptlet>
+                          <scriptFile>src/main/scripts/postinstall</scriptFile>
+                          <fileEncoding>utf-8</fileEncoding>
+                        </postinstallScriptlet>
+              -->
+              <!--
+                        <preremoveScriptlet>
+                          <scriptFile>src/main/scripts/preremove</scriptFile>
+                          <fileEncoding>utf-8</fileEncoding>
+                        </preremoveScriptlet>
+              -->
+            </configuration>
+          </plugin>
+
+        </plugins>
+      </build>
+    </profile>
+
+  </profiles>
+
   <dependencies>
 
     <dependency>


[4/6] git commit: SLIDER-221 RPM is building; contents manually verified

Posted by st...@apache.org.
SLIDER-221 RPM is building; contents manually verified


Project: http://git-wip-us.apache.org/repos/asf/incubator-slider/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-slider/commit/4e026548
Tree: http://git-wip-us.apache.org/repos/asf/incubator-slider/tree/4e026548
Diff: http://git-wip-us.apache.org/repos/asf/incubator-slider/diff/4e026548

Branch: refs/heads/develop
Commit: 4e0265487073f22b4f37b57e183891561ed7e21e
Parents: d44d4c1
Author: Steve Loughran <st...@hortonworks.com>
Authored: Wed Jul 9 15:32:07 2014 +0100
Committer: Steve Loughran <st...@hortonworks.com>
Committed: Wed Jul 9 15:32:07 2014 +0100

----------------------------------------------------------------------
 slider-assembly/pom.xml | 12 +++++-------
 1 file changed, 5 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/4e026548/slider-assembly/pom.xml
----------------------------------------------------------------------
diff --git a/slider-assembly/pom.xml b/slider-assembly/pom.xml
index 95df363..8bc8f12 100644
--- a/slider-assembly/pom.xml
+++ b/slider-assembly/pom.xml
@@ -33,12 +33,12 @@
 
   <properties>
     <rpm.basedir>/usr/local/slider</rpm.basedir>
-    <rpm.confdir>${basedir}/conf</rpm.confdir>
-    <rpm.bindir>${basedir}/bin</rpm.bindir>
-    <rpm.libdir>${basedir}/lib</rpm.libdir>
+    <rpm.confdir>${rpm.basedir}/conf</rpm.confdir>
+    <rpm.bindir>${rpm.basedir}/bin</rpm.bindir>
+    <rpm.libdir>${rpm.basedir}/lib</rpm.libdir>
     <rpm.username>mapred</rpm.username>
     <rpm.groupname>mapred</rpm.groupname>
-    <src.confdir>src/conf/hdp</src.confdir>
+    <src.confdir>src/conf-hdp</src.confdir>
     <src.libdir>${project.build.directory}/lib</src.libdir>
   </properties>
 
@@ -249,9 +249,7 @@
                   <username>${rpm.username}</username>
                   <groupname>${rpm.groupname}</groupname>
                   <sources>
-                    <source>
-                      <location>target/classes</location>
-                    </source>
+
                   </sources>
                 </mapping>
 


[2/6] git commit: SLIDER-221 rpm in assembly package; specific config for HDP created; rpm currently runs on "package" target

Posted by st...@apache.org.
SLIDER-221 rpm in assembly package; specific config for HDP created; rpm currently runs on "package" target


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

Branch: refs/heads/develop
Commit: f62539bfee095944c1a5cc1b4527bd75a8fa233d
Parents: 497d11c
Author: Steve Loughran <st...@apache.org>
Authored: Wed Jul 9 14:13:16 2014 +0100
Committer: Steve Loughran <st...@apache.org>
Committed: Wed Jul 9 14:13:16 2014 +0100

----------------------------------------------------------------------
 slider-assembly/pom.xml                        | 123 +++++++++++++++++++
 slider-assembly/src/conf-hdp/log4j.properties  |  58 +++++++++
 slider-assembly/src/conf-hdp/slider-client.xml |  77 ++++++++++++
 slider-assembly/src/conf/slider-client.xml     |   3 -
 slider-install/pom.xml                         | 127 +-------------------
 5 files changed, 264 insertions(+), 124 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/f62539bf/slider-assembly/pom.xml
----------------------------------------------------------------------
diff --git a/slider-assembly/pom.xml b/slider-assembly/pom.xml
index 9431fbc..adfd875 100644
--- a/slider-assembly/pom.xml
+++ b/slider-assembly/pom.xml
@@ -30,6 +30,18 @@
     <version>0.31.0-incubating-SNAPSHOT</version>
   </parent>
 
+
+  <properties>
+    <rpm.basedir>/usr/local/slider</rpm.basedir>
+    <rpm.confdir>${basedir}/conf</rpm.confdir>
+    <rpm.bindir>${basedir}/bin</rpm.bindir>
+    <rpm.libdir>${basedir}/lib</rpm.libdir>
+    <rpm.username>mapred</rpm.username>
+    <rpm.groupname>mapred</rpm.groupname>
+    <src.confdir>src/conf/hdp</src.confdir>
+    <src.libdir>${project.build.directory}/lib</src.libdir>
+  </properties>
+
   <build>
     <plugins>
       <!--read in a build.properties file if defined-->
@@ -177,6 +189,117 @@
         </executions>
       </plugin>
 
+      <!-- RPM -->
+
+      <plugin>
+        <groupId>org.codehaus.mojo</groupId>
+        <artifactId>rpm-maven-plugin</artifactId>
+        <version>${maven-rpm-plugin.version}</version>
+        <executions>
+          <execution>
+            <id>generate-rpm</id>
+            <goals>
+              <goal>rpm</goal>
+            </goals>
+          </execution>
+        </executions>
+        <configuration>
+          <license>http://www.apache.org/licenses/LICENSE-2.0</license>
+          <name>slider</name>
+<!---->          <distribution></distribution>
+          <group>Applications/Engineering</group>
+          <!--<icon>src/main/resources/icon.gif</icon>-->
+          <!--<packager>ASF</packager>-->
+          <prefix>${rpm.basedir}</prefix>
+          <!--
+                    <changelogFile>src/changelog</changelogFile>
+          -->
+          <!--          <defineStatements>
+                      <defineStatement>_unpackaged_files_terminate_build 0</defineStatement>
+                    </defineStatements>-->
+          <provides>
+            <provide>apache-slider</provide>
+          </provides>
+          <mappings>
+            <mapping>
+              <directory>${rpm.basedir}</directory>
+              <!-- RW.R..R.. -->
+              <filemode>644</filemode>
+              
+              <username>${rpm.username}</username>
+              <groupname>${rpm.groupname}</groupname>
+              <sources>
+                <source>
+                  <location>target/classes</location>
+                </source>
+              </sources>
+            </mapping>
+            
+            <!-- binaries -->
+            <mapping>
+              <directory>${rpm.bindir}</directory>
+              <!-- RWXR.XR.X -->
+              <filemode>0755</filemode>
+              <username>${rpm.username}</username>
+              <groupname>${rpm.groupname}</groupname>
+              <sources>
+                <source>
+                  <location>src/main/scripts</location>
+                </source>
+              </sources>
+            </mapping>
+            
+            <!-- library -->
+            <mapping>
+              <directory>${rpm.libdir}</directory>
+              <!-- RW.R..R.. -->
+              <filemode>644</filemode>
+
+              <username>${rpm.username}</username>
+              <groupname>${rpm.groupname}</groupname>
+              <sources>
+                <source>
+                  <location>${src.libdir}</location>
+                </source>
+              </sources>
+            </mapping>
+                  
+          <!-- configuration -->
+            <mapping>
+              <directory>${rpm.confdir}</directory>
+              <configuration>true</configuration>
+              <filemode>0755</filemode>
+              <username>${rpm.username}</username>
+              <groupname>${rpm.groupname}</groupname>
+              <sources>
+                <source>
+                  <location>${src.confdir}</location>
+                </source>
+              </sources>
+            </mapping>
+
+          </mappings>
+<!--
+Scripts. 
+-->
+          <preinstallScriptlet>
+            <script>echo "installing slider"</script>
+          </preinstallScriptlet>
+<!--
+          <postinstallScriptlet>
+            <scriptFile>src/main/scripts/postinstall</scriptFile>
+            <fileEncoding>utf-8</fileEncoding>
+          </postinstallScriptlet>
+-->
+<!--
+          <preremoveScriptlet>
+            <scriptFile>src/main/scripts/preremove</scriptFile>
+            <fileEncoding>utf-8</fileEncoding>
+          </preremoveScriptlet>
+-->
+        </configuration>
+      </plugin>
+
     </plugins>
     
     

http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/f62539bf/slider-assembly/src/conf-hdp/log4j.properties
----------------------------------------------------------------------
diff --git a/slider-assembly/src/conf-hdp/log4j.properties b/slider-assembly/src/conf-hdp/log4j.properties
new file mode 100644
index 0000000..3c0d08c
--- /dev/null
+++ b/slider-assembly/src/conf-hdp/log4j.properties
@@ -0,0 +1,58 @@
+# 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.
+#
+
+# log4j configuration used during build and unit tests
+
+log4j.rootLogger=INFO,stdout
+log4j.threshhold=ALL
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+
+# log layout skips stack-trace creation operations by avoiding line numbers and method
+log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c{2} - %m%n
+
+# debug edition is much more expensive
+#log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} [%t] %-5p %c{2} (%F:%M(%L)) - %m%n
+
+
+log4j.appender.subprocess=org.apache.log4j.ConsoleAppender
+log4j.appender.subprocess.layout=org.apache.log4j.PatternLayout
+log4j.appender.subprocess.layout.ConversionPattern=[%c{1}]: %m%n
+#log4j.logger.org.apache.slider.yarn.appmaster.SliderAppMasterer.master=INFO,subprocess
+
+# for debugging Slider
+#log4j.logger.org.apache.slider=DEBUG
+#log4j.logger.org.apache.slider=DEBUG
+
+# uncomment to debug service lifecycle issues
+#log4j.logger.org.apache.hadoop.yarn.service.launcher=DEBUG
+#log4j.logger.org.apache.hadoop.yarn.service=DEBUG
+
+# uncomment for YARN operations
+#log4j.logger.org.apache.hadoop.yarn.client=DEBUG
+
+# uncomment this to debug security problems
+#log4j.logger.org.apache.hadoop.security=DEBUG
+
+#crank back on some noise
+log4j.logger.org.apache.hadoop.util.NativeCodeLoader=ERROR
+log4j.logger.org.apache.hadoop.hdfs=WARN
+
+
+log4j.logger.org.apache.hadoop.yarn.server.nodemanager.containermanager.monitor=WARN
+log4j.logger.org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl=WARN
+log4j.logger.org.apache.zookeeper=WARN

http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/f62539bf/slider-assembly/src/conf-hdp/slider-client.xml
----------------------------------------------------------------------
diff --git a/slider-assembly/src/conf-hdp/slider-client.xml b/slider-assembly/src/conf-hdp/slider-client.xml
new file mode 100644
index 0000000..f844106
--- /dev/null
+++ b/slider-assembly/src/conf-hdp/slider-client.xml
@@ -0,0 +1,77 @@
+<?xml version="1.0"?>
+<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
+<!--
+   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.
+-->
+
+<!--
+  Properties set here are picked up in the client.
+  They are not passed to the AM -though the filesystem
+  binding details (URL And principal) are added to the
+  hbase-site.xml file when a cluster is created.
+-->
+<configuration>
+
+  <property>
+    <name>yarn.log-aggregation-enable</name>
+    <value>true</value>
+  </property>
+  
+
+  <property>
+    <name>slider.yarn.queue</name>
+    <value>default</value>
+    <description>YARN queue for the Application Master</description>
+  </property>
+
+
+  <property>
+    <name>yarn.application.classpath</name>
+    <value>
+      /etc/hadoop/conf,/usr/lib/hadoop/*,/usr/lib/hadoop/lib/*,/usr/lib/hadoop-hdfs/*,/usr/lib/hadoop-hdfs/lib/*,/usr/lib/hadoop-yarn/*,/usr/lib/hadoop-yarn/lib/*,/usr/lib/hadoop-mapreduce/*,/usr/lib/hadoop-mapreduce/lib/*
+    </value>
+  </property>
+  
+<!--
+
+  <property>
+    <name>yarn.resourcemanager.address</name>
+    <value>master:8032</value>
+  </property>
+
+  <property>
+    <name>fs.defaultFS</name>
+    <value>hdfs://master:9090</value>
+  </property>
+
+  <property>
+    <name>yarn.resourcemanager.principal</name>
+    <value>yarn/master@MINICLUSTER</value>
+  </property>
+
+  <property>
+    <name>slider.security.enabled</name>
+    <value>true</value>
+  </property>
+
+  <property>
+    <name>dfs.namenode.kerberos.principal</name>
+    <value>hdfs/master@MINICLUSTER</value>
+  </property>
+-->
+
+
+</configuration>

http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/f62539bf/slider-assembly/src/conf/slider-client.xml
----------------------------------------------------------------------
diff --git a/slider-assembly/src/conf/slider-client.xml b/slider-assembly/src/conf/slider-client.xml
index d0c8f69..bd17254 100644
--- a/slider-assembly/src/conf/slider-client.xml
+++ b/slider-assembly/src/conf/slider-client.xml
@@ -19,9 +19,6 @@
 
 <!--
   Properties set here are picked up in the client.
-  They are not passed to the AM -though the filesystem
-  binding details (URL And principal) are added to the
-  hbase-site.xml file when a cluster is created.
 -->
 <configuration>
   <property>

http://git-wip-us.apache.org/repos/asf/incubator-slider/blob/f62539bf/slider-install/pom.xml
----------------------------------------------------------------------
diff --git a/slider-install/pom.xml b/slider-install/pom.xml
index a00dca9..df061a7 100644
--- a/slider-install/pom.xml
+++ b/slider-install/pom.xml
@@ -31,6 +31,12 @@
     <version>0.31.0-incubating-SNAPSHOT</version>
   </parent>
 
+  <properties>
+    <basedir>/usr/local/slider</basedir>
+    <confdir>${basedir}/conf</confdir>
+    <bindir>${basedir}/bin</bindir>
+  </properties>
+  
   <build>
     <plugins>
       <!--read in a build.properties file if defined-->
@@ -55,127 +61,6 @@
         </executions>
       </plugin>
 
-
-      <plugin>
-        <groupId>org.codehaus.mojo</groupId>
-        <artifactId>rpm-maven-plugin</artifactId>
-        <version>${maven-rpm-plugin.version}</version>
-        <executions>
-          <execution>
-            <id>generate-rpm</id>
-            <goals>
-              <goal>rpm</goal>
-            </goals>
-          </execution>
-        </executions>
-        <configuration>
-          <license>http://www.apache.org/licenses/LICENSE-2.0</license>
-          <distribution>Trash 2005</distribution>
-          <group>Application/Collectors</group>
-          <icon>src/main/resources/icon.gif</icon>
-          <packager>SWWDC</packager>
-          <prefix>/usr/local</prefix>
-          <changelogFile>src/changelog</changelogFile>
-          <defineStatements>
-            <defineStatement>_unpackaged_files_terminate_build 0</defineStatement>
-          </defineStatements>
-          <mappings>
-            <mapping>
-              <directory>/usr/local/bin/landfill</directory>
-              <filemode>440</filemode>
-              <username>dumper</username>
-              <groupname>dumpgroup</groupname>
-              <sources>
-                <source>
-                  <location>target/classes</location>
-                </source>
-              </sources>
-            </mapping>
-            <mapping>
-              <directory>/usr/local/doc/landfill</directory>
-              <documentation>true</documentation>
-              <filemode>444</filemode>
-              <username>dumper</username>
-              <groupname>dumpgroup</groupname>
-              <sources>
-                <source>
-                  <location>target/site</location>
-                </source>
-              </sources>
-            </mapping>
-            <mapping>
-              <directory>/usr/local/lib</directory>
-              <filemode>750</filemode>
-              <username>dumper</username>
-              <groupname>dumpgroup</groupname>
-              <dependency>
-                <includes>
-                  <include>jmock:jmock</include>
-                  <include>javax.servlet:servlet-api:2.4</include>
-                </includes>
-                <excludes>
-                  <exclude>junit:junit</exclude>
-                </excludes>
-              </dependency>
-            </mapping>
-            <mapping>
-              <directory>/usr/local/bin</directory>
-              <filemode>750</filemode>
-              <username>dumper</username>
-              <groupname>dumpgroup</groupname>
-              <sources>
-                <source>
-                  <location>src/main/bin</location>
-                </source>
-                <softlinkSource>
-                  <location>/usr/local/bin/new.sh</location>
-                  <destination>old.sh</destination>
-                </softlinkSource>
-              </sources>
-            </mapping>
-            <mapping>
-              <directory>/usr/local/oldbin</directory>
-              <filemode>750</filemode>
-              <username>dumper</username>
-              <groupname>dumpgroup</groupname>
-              <sources>
-                <softlinkSource>
-                  <location>/usr/local/bin</location>
-                </softlinkSource>
-              </sources>
-            </mapping>
-            <mapping>
-              <directory>/usr/local/conf/landfill</directory>
-              <configuration>true</configuration>
-              <filemode>640</filemode>
-              <username>dumper</username>
-              <groupname>dumpgroup</groupname>
-              <sources>
-                <source>
-                  <location>src/main/conf</location>
-                </source>
-              </sources>
-            </mapping>
-            <mapping>
-              <directory>/usr/local/log/landfill</directory>
-              <filemode>750</filemode>
-              <username>dumper</username>
-              <groupname>dumpgroup</groupname>
-            </mapping>
-          </mappings>
-          <preinstallScriptlet>
-            <script>echo "installing now"</script>
-          </preinstallScriptlet>
-          <postinstallScriptlet>
-            <scriptFile>src/main/scripts/postinstall</scriptFile>
-            <fileEncoding>utf-8</fileEncoding>
-          </postinstallScriptlet>
-          <preremoveScriptlet>
-            <scriptFile>src/main/scripts/preremove</scriptFile>
-            <fileEncoding>utf-8</fileEncoding>
-          </preremoveScriptlet>
-        </configuration>
-      </plugin>
     </plugins>