فهرست منبع

HADOOP-962. In contrib/ec2: make scripts executable, etc. Contributed by Tom White.

git-svn-id: https://svn.apache.org/repos/asf/lucene/hadoop/trunk@502024 13f79535-47bb-0310-9956-ffa450edef68
Doug Cutting 18 سال پیش
والد
کامیت
bedffa00e2
4فایلهای تغییر یافته به همراه35 افزوده شده و 9 حذف شده
  1. 4 0
      CHANGES.txt
  2. 22 9
      build.xml
  3. 9 0
      src/contrib/ec2/README.txt
  4. 0 0
      src/contrib/ec2/bin/hadoop-ec2-env.sh.template

+ 4 - 0
CHANGES.txt

@@ -118,6 +118,10 @@ Trunk (unreleased changes)
     permitting it to take advantage of native compression facilities.
     (Sanjay Dahiya via cutting)
 
+37. HADOOP-962.  In contrib/ec2: make scripts executable in tar file;
+    add a README; make the environment file use a template.
+    (Tom White via cutting)
+
 
 Release 0.10.1 - 2007-01-10
 

+ 22 - 9
build.xml

@@ -20,6 +20,7 @@
   <property name="lib.dir" value="${basedir}/lib"/>
   <property name="conf.dir" value="${basedir}/conf"/>
   <property name="docs.dir" value="${basedir}/docs"/>
+  <property name="contrib.dir" value="${basedir}/src/contrib"/>
   <property name="docs.src" value="${basedir}/src/web"/>
   <property name="libhdfs.src" value="${basedir}/src/c++/libhdfs"/>
 
@@ -111,6 +112,7 @@
     <mkdir dir="${test.build.testjar}"/>
     <touch datetime="01/25/1971 2:00 pm">
       <fileset dir="${conf.dir}" includes="**/*.template"/>
+      <fileset dir="${contrib.dir}" includes="**/*.template"/>
     </touch>
 
     <!-- copy all of the jsp and static files -->
@@ -125,6 +127,11 @@
       <mapper type="glob" from="*.template" to="*"/>
     </copy>
 
+    <copy todir="${contrib.dir}" verbose="true">
+      <fileset dir="${contrib.dir}" includes="**/*.template"/>
+      <mapper type="glob" from="*.template" to="*"/>
+    </copy>
+
     <exec executable="sh">
        <arg line="src/saveVersion.sh ${version}"/>
     </exec>
@@ -266,7 +273,7 @@
 
   <target name="compile-contrib" depends="compile-core">
      <subant target="deploy">
-        <fileset file="${basedir}/src/contrib/build.xml"/>
+        <fileset file="${contrib.dir}/build.xml"/>
      </subant>  	
   </target>
   
@@ -449,7 +456,7 @@
 
   <target name="test-contrib" depends="compile-core, compile-core-test">
     <subant target="test">
-       <fileset file="${basedir}/src/contrib/build.xml"/>
+       <fileset file="${contrib.dir}/build.xml"/>
     </subant> 
   </target>   
   
@@ -561,10 +568,6 @@
       <fileset dir="${conf.dir}" excludes="**/*.template"/>
     </copy>
 
-    <chmod perm="ugo+x" type="file">
-        <fileset dir="${dist.dir}/bin"/>
-    </chmod>
-
     <copy todir="${dist.dir}/docs">
       <fileset dir="${build.docs}"/>
     </copy>
@@ -576,11 +579,17 @@
     </copy>
 
     <copy todir="${dist.dir}/src" includeEmptyDirs="true">
-      <fileset dir="src"/>
+      <fileset dir="src" excludes="**/*.template"/>
     </copy>
-
+  	
     <copy todir="${dist.dir}/" file="build.xml"/>
 
+    <chmod perm="ugo+x" type="file">
+        <fileset dir="${dist.dir}/bin"/>
+        <fileset dir="${dist.dir}/src/contrib/ec2/bin"/>
+        <fileset dir="${dist.dir}/src/contrib/ec2/bin/image"/>
+    </chmod>
+
   </target>
 
   <!-- ================================================================== -->
@@ -590,11 +599,15 @@
     <tar compression="gzip" longfile="gnu"
       destfile="${build.dir}/${final.name}.tar.gz">
       <tarfileset dir="${build.dir}" mode="664">
-	<exclude name="${final.name}/bin/*" />
+        <exclude name="${final.name}/bin/*" />
+        <exclude name="${final.name}/src/contrib/ec2/bin/*" />
+        <exclude name="${final.name}/src/contrib/ec2/bin/image/*" />
         <include name="${final.name}/**" />
       </tarfileset>
       <tarfileset dir="${build.dir}" mode="755">
         <include name="${final.name}/bin/*" />
+        <include name="${final.name}/src/contrib/ec2/bin/*" />
+        <include name="${final.name}/src/contrib/ec2/bin/image/*" />
       </tarfileset>
     </tar>
   </target>

+ 9 - 0
src/contrib/ec2/README.txt

@@ -0,0 +1,9 @@
+Hadoop EC2
+
+This collection of scripts allows you to run Hadoop clusters on Amazon.com's Elastic Compute Cloud (EC2) service described at:
+
+  http://aws.amazon.com/ec2
+
+For full instructions, please visit the Hadoop wiki at:
+
+  http://wiki.apache.org/lucene-hadoop/AmazonEC2#AutomatedScripts

+ 0 - 0
src/contrib/ec2/bin/hadoop-ec2-env.sh → src/contrib/ec2/bin/hadoop-ec2-env.sh.template