HBASE_9955 Make hadoop2 the default and deprecate hadoop1; RETRY
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1548374 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
fe5b28625a
commit
57b8613688
|
@ -343,36 +343,36 @@ applyPatch () {
|
|||
}
|
||||
|
||||
###############################################################################
|
||||
### Attempt to compile against the hadoop 2.0
|
||||
### Attempt to compile against the hadoop 1.1
|
||||
checkHadoop20Compile () {
|
||||
echo ""
|
||||
echo ""
|
||||
echo "======================================================================"
|
||||
echo "======================================================================"
|
||||
echo " Checking against hadoop 2.0 build"
|
||||
echo " Checking against hadoop 1.1 build"
|
||||
echo "======================================================================"
|
||||
echo "======================================================================"
|
||||
echo ""
|
||||
echo ""
|
||||
|
||||
patchForHadoop2=`$GREP -c -i 'hadoop.profile=2.0' $PATCH_DIR/patch`
|
||||
patchForHadoop2=`$GREP -c -i 'hadoop.profile=1.1' $PATCH_DIR/patch`
|
||||
if [[ $patchForHadoop2 != 0 ]] ; then
|
||||
return 0;
|
||||
fi
|
||||
|
||||
export MAVEN_OPTS="${MAVEN_OPTS}"
|
||||
# build core and tests
|
||||
$MVN clean test help:active-profiles -X -DskipTests -Dhadoop.profile=2.0 -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/trunk2.0JavacWarnings.txt 2>&1
|
||||
$MVN clean test help:active-profiles -X -DskipTests -Dhadoop.profile=1.1 -D${PROJECT_NAME}PatchProcess > $PATCH_DIR/trunk1.1JavacWarnings.txt 2>&1
|
||||
if [[ $? != 0 ]] ; then
|
||||
JIRA_COMMENT="$JIRA_COMMENT
|
||||
|
||||
{color:red}-1 hadoop2.0{color}. The patch failed to compile against the hadoop 2.0 profile."
|
||||
{color:red}-1 hadoop1.1{color}. The patch failed to compile against the hadoop 1.1 profile."
|
||||
submitJiraComment 1
|
||||
cleanupAndExit 1
|
||||
fi
|
||||
JIRA_COMMENT="$JIRA_COMMENT
|
||||
|
||||
{color:green}+1 hadoop2.0{color}. The patch compiles against the hadoop 2.0 profile."
|
||||
{color:green}+1 hadoop1.1{color}. The patch compiles against the hadoop 1.1 profile."
|
||||
return 0
|
||||
}
|
||||
|
||||
|
|
|
@ -163,7 +163,7 @@
|
|||
<activation>
|
||||
<property>
|
||||
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
||||
<!--h1--><name>!hadoop.profile</name>
|
||||
<!--h1--><name>hadoop.profile</name><value>1.1</value>
|
||||
</property>
|
||||
</activation>
|
||||
<dependencies>
|
||||
|
@ -183,7 +183,7 @@
|
|||
<activation>
|
||||
<property>
|
||||
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
||||
<!--h2--><name>hadoop.profile</name><value>2.0</value>
|
||||
<!--h2--><name>!hadoop.profile</name>
|
||||
</property>
|
||||
</activation>
|
||||
<dependencies>
|
||||
|
|
|
@ -230,7 +230,7 @@
|
|||
<activation>
|
||||
<property>
|
||||
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
||||
<!--h1--><name>!hadoop.profile</name>
|
||||
<!--h1--><name>hadoop.profile</name><value>1.1</value>
|
||||
</property>
|
||||
</activation>
|
||||
<dependencies>
|
||||
|
@ -241,7 +241,7 @@
|
|||
</dependencies>
|
||||
</profile>
|
||||
|
||||
<!-- profile against Hadoop 1.0.x:
|
||||
<!-- profile against Hadoop 1.0.x:
|
||||
mvn -Dhadoop.profile=1.0
|
||||
-->
|
||||
<profile>
|
||||
|
@ -273,7 +273,7 @@
|
|||
<activation>
|
||||
<property>
|
||||
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
||||
<!--h2--><name>hadoop.profile</name><value>2.0</value>
|
||||
<!--h2--><name>!hadoop.profile</name>
|
||||
</property>
|
||||
</activation>
|
||||
<dependencies>
|
||||
|
|
|
@ -132,7 +132,7 @@ if we can combine these profiles somehow -->
|
|||
<activation>
|
||||
<property>
|
||||
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
||||
<!--h1--><name>!hadoop.profile</name>
|
||||
<!--h1--><name>hadoop.profile</name><value>1.1</value>
|
||||
</property>
|
||||
</activation>
|
||||
<dependencies>
|
||||
|
@ -155,7 +155,7 @@ if we can combine these profiles somehow -->
|
|||
<activation>
|
||||
<property>
|
||||
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
||||
<!--h2--><name>hadoop.profile</name><value>2.0</value>
|
||||
<!--h2--><name>!hadoop.profile</name>
|
||||
</property>
|
||||
</activation>
|
||||
<dependencies>
|
||||
|
|
|
@ -219,7 +219,7 @@
|
|||
<activation>
|
||||
<property>
|
||||
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
||||
<!--h1--><name>!hadoop.profile</name>
|
||||
<!--h1--><name>hadoop.profile</name><value>1.1</value>
|
||||
</property>
|
||||
</activation>
|
||||
<dependencies>
|
||||
|
@ -262,7 +262,7 @@
|
|||
<activation>
|
||||
<property>
|
||||
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
||||
<!--h2--><name>hadoop.profile</name><value>2.0</value>
|
||||
<!--h2--><name>!hadoop.profile</name>
|
||||
</property>
|
||||
</activation>
|
||||
<dependencies>
|
||||
|
|
|
@ -104,7 +104,7 @@
|
|||
<activation>
|
||||
<property>
|
||||
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
||||
<!--h1--><name>!hadoop.profile</name>
|
||||
<!--h1--><name>hadoop.profile</name><value>1.1</value>
|
||||
</property>
|
||||
</activation>
|
||||
<dependencies>
|
||||
|
@ -138,7 +138,7 @@
|
|||
<activation>
|
||||
<property>
|
||||
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
||||
<!--h2--><name>hadoop.profile</name><value>2.0</value>
|
||||
<!--h2--><name>!hadoop.profile</name>
|
||||
</property>
|
||||
</activation>
|
||||
<dependencies>
|
||||
|
|
|
@ -522,7 +522,7 @@
|
|||
<activation>
|
||||
<property>
|
||||
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
||||
<!--h1--><name>!hadoop.profile</name>
|
||||
<!--h1--><name>hadoop.profile</name><value>1.1</value>
|
||||
</property>
|
||||
</activation>
|
||||
<dependencies>
|
||||
|
@ -564,7 +564,7 @@
|
|||
<activation>
|
||||
<property>
|
||||
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
||||
<!--h2--><name>hadoop.profile</name><value>2.0</value>
|
||||
<!--h2--><name>!hadoop.profile</name>
|
||||
</property>
|
||||
</activation>
|
||||
<dependencies>
|
||||
|
|
|
@ -282,7 +282,7 @@
|
|||
<activation>
|
||||
<property>
|
||||
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
||||
<!--h1--><name>!hadoop.profile</name>
|
||||
<!--h1--><name>hadoop.profile</name><value>1.1</value>
|
||||
</property>
|
||||
</activation>
|
||||
<dependencies>
|
||||
|
@ -324,7 +324,7 @@
|
|||
<activation>
|
||||
<property>
|
||||
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
||||
<!--h2--><name>hadoop.profile</name><value>2.0</value>
|
||||
<!--h2--><name>!hadoop.profile</name>
|
||||
</property>
|
||||
</activation>
|
||||
<dependencies>
|
||||
|
|
|
@ -121,7 +121,7 @@
|
|||
<activation>
|
||||
<property>
|
||||
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
||||
<!--h1--><name>!hadoop.profile</name>
|
||||
<!--h1--><name>hadoop.profile</name><value>1.1</value>
|
||||
</property>
|
||||
</activation>
|
||||
<dependencies>
|
||||
|
@ -167,7 +167,7 @@
|
|||
<activation>
|
||||
<property>
|
||||
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
||||
<!--h2--><name>hadoop.profile</name><value>2.0</value>
|
||||
<!--h2--><name>!hadoop.profile</name>
|
||||
</property>
|
||||
</activation>
|
||||
<dependencies>
|
||||
|
@ -253,4 +253,4 @@
|
|||
</dependencies>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
</project>
|
||||
|
|
|
@ -223,7 +223,7 @@ the same time. -->
|
|||
<activation>
|
||||
<property>
|
||||
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
||||
<!--h1--><name>!hadoop.profile</name>
|
||||
<!--h1--><name>hadoop.profile</name><value>1.1</value>
|
||||
</property>
|
||||
</activation>
|
||||
<dependencies>
|
||||
|
@ -266,7 +266,7 @@ the same time. -->
|
|||
<activation>
|
||||
<property>
|
||||
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
||||
<!--h2--><name>hadoop.profile</name><value>2.0</value>
|
||||
<!--h2--><name>!hadoop.profile</name>
|
||||
</property>
|
||||
</activation>
|
||||
<dependencies>
|
||||
|
|
4
pom.xml
4
pom.xml
|
@ -1487,7 +1487,7 @@
|
|||
<activation>
|
||||
<property>
|
||||
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
||||
<!--h1--><name>!hadoop.profile</name>
|
||||
<!--h1--><name>hadoop.profile</name><value>1.1</value>
|
||||
</property>
|
||||
</activation>
|
||||
<modules>
|
||||
|
@ -1606,7 +1606,7 @@
|
|||
<activation>
|
||||
<property>
|
||||
<!--Below formatting for dev-support/generate-hadoopX-poms.sh-->
|
||||
<!--h2--><name>hadoop.profile</name><value>2.0</value>
|
||||
<!--h2--><name>!hadoop.profile</name>
|
||||
</property>
|
||||
</activation>
|
||||
<modules>
|
||||
|
|
Loading…
Reference in New Issue