You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by st...@apache.org on 2010/06/11 01:21:46 UTC
svn commit: r953495 - in /hbase/trunk: CHANGES.txt bin/hbase pom.xml
src/assembly/bin.xml
src/main/resources/hbase-webapps/static/hbase_logo_med.gif
Author: stack
Date: Thu Jun 10 23:21:45 2010
New Revision: 953495
URL: http://svn.apache.org/viewvc?rev=953495&view=rev
Log:
HBASE-2703 ui not working in distributed context
Added:
hbase/trunk/src/main/resources/hbase-webapps/static/hbase_logo_med.gif (with props)
Modified:
hbase/trunk/CHANGES.txt
hbase/trunk/bin/hbase
hbase/trunk/pom.xml
hbase/trunk/src/assembly/bin.xml
Modified: hbase/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/hbase/trunk/CHANGES.txt?rev=953495&r1=953494&r2=953495&view=diff
==============================================================================
--- hbase/trunk/CHANGES.txt (original)
+++ hbase/trunk/CHANGES.txt Thu Jun 10 23:21:45 2010
@@ -380,6 +380,7 @@ Release 0.21.0 - Unreleased
HBASE-2616 TestHRegion.testWritesWhileGetting flaky on trunk
HBASE-2684 TestMasterWrongRS flaky in trunk
HBASE-2691 LeaseStillHeldException totally ignored by RS, wrongly named
+ HBASE-2703 ui not working in distributed context
IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable
Modified: hbase/trunk/bin/hbase
URL: http://svn.apache.org/viewvc/hbase/trunk/bin/hbase?rev=953495&r1=953494&r2=953495&view=diff
==============================================================================
--- hbase/trunk/bin/hbase (original)
+++ hbase/trunk/bin/hbase Thu Jun 10 23:21:45 2010
@@ -136,19 +136,6 @@ add_maven_test_classes_to_classpath() {
fi
}
-add_maven_target_dir_to_classpath() {
- # I never seem to *have* such a dir. -tlipcon
- HBASE_VER=`grep '<version>' $HBASE_HOME/pom.xml | head -1 | sed 's/.*<version>\(.*\)<\/version>/\1/'`
- MAVEN_TARGET_DIR=$HBASE_HOME/target/hbase-$HBASE_VER-bin/hbase-$HBASE_VER
- if [ -d "$MAVEN_TARGET_DIR" ]; then
- for f in $MAVEN_TARGET_DIR/*.jar $MAVEN_TARGET_DIR/lib/*.jar; do
- if [ -f $f ]; then
- CLASSPATH=${CLASSPATH}:$f;
- fi
- done
- fi
-}
-
# Add maven target directory
if $in_sources_dir; then
add_maven_deps_to_classpath
@@ -158,11 +145,18 @@ fi
# For releases, add hbase & webapps to CLASSPATH
# Webapps must come first else it messes up Jetty
-if [ -d "$HBASE_HOME/webapps" ]; then
+if [ -d "$HBASE_HOME/hbase-webapps" ]; then
CLASSPATH=${CLASSPATH}:$HBASE_HOME
fi
+if [ -d "$HBASE_HOME/target/hbase-webapps" ]; then
+ CLASSPATH="${CLASSPATH}:${HBASE_HOME}/target"
+fi
for f in $HBASE_HOME/hbase*.jar; do
- if [ -f $f ]; then
+ if [[ $f = *sources.jar ]]
+ then
+ : # Skip sources.jar
+ elif [ -f $f ]
+ then
CLASSPATH=${CLASSPATH}:$f;
fi
done
Modified: hbase/trunk/pom.xml
URL: http://svn.apache.org/viewvc/hbase/trunk/pom.xml?rev=953495&r1=953494&r2=953495&view=diff
==============================================================================
--- hbase/trunk/pom.xml (original)
+++ hbase/trunk/pom.xml Thu Jun 10 23:21:45 2010
@@ -7,13 +7,11 @@
<packaging>jar</packaging>
<version>0.21.0-SNAPSHOT</version>
<name>HBase</name>
- <!-- START SNIPPET: description -->
<description>
HBase is the &lt;a href="http://hadoop.apache.org"&rt;Hadoop</a&rt; database. Use it when you need random, realtime read/write access to your Big Data.
This project's goal is the hosting of very large tables -- billions of rows X millions of columns -- atop clusters
of commodity hardware.
</description>
- <!-- END SNIPPET: description -->
<url>http://hbase.apache.org</url>
<licenses>
@@ -286,15 +284,15 @@
<resources>
<resource>
- <directory>src/main/resources</directory>
+ <directory>src/main/resources/</directory>
+ <includes>
+ <include>hbase-default.xml</include>
+ </includes>
</resource>
<resource>
- <directory>src/main/hbase-webapps</directory>
+ <directory>${project.build.directory}</directory>
<includes>
- <include>*/.gif</include>
- <include>*/.css</include>
- <include>*/.html</include>
- <include>*/.xml</include>
+ <include>hbase-webapps/**</include>
</includes>
</resource>
</resources>
@@ -375,32 +373,43 @@
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
- <id>JSPC</id>
+ <id>generate</id>
<phase>generate-sources</phase>
<configuration>
<tasks>
+ <property name="build.webapps"
+ location="${project.build.directory}/hbase-webapps" />
+ <property name="src.webapps"
+ location="${basedir}/src/main/resources/hbase-webapps" />
+ <property name="generated.sources"
+ location="${project.build.directory}/generated-sources" />
+
+ <mkdir dir="${build.webapps}"/>
+ <copy todir="${build.webapps}">
+ <fileset dir="${src.webapps}">
+ <exclude name="**/*.jsp" />
+ <exclude name="**/.*" />
+ <exclude name="**/*~" />
+ </fileset>
+ </copy>
+
+ <!--The compile.classpath is passed in by maven-->
<taskdef classname="org.apache.jasper.JspC" name="jspcompiler" classpathref="maven.compile.classpath"/>
- <jspcompiler uriroot="${basedir}/src/main/resources/hbase-webapps/master"
- outputdir="${project.build.directory}/jspc"
- package="org.apache.hadoop.hbase.generated.master"
- webxml="${basedir}/src/main/resources/hbase-webapps/master/WEB-INF/web.xml"/>
- <jspcompiler uriroot="${basedir}/src/main/resources/hbase-webapps/regionserver"
- outputdir="${project.build.directory}/jspc"
- package="org.apache.hadoop.hbase.generated.regionserver"
- webxml="${basedir}/src/main/resources/hbase-webapps/regionserver/WEB-INF/web.xml"/>
- </tasks>
- </configuration>
- <goals>
- <goal>run</goal>
- </goals>
- </execution>
- <execution>
- <id>package-info</id>
- <phase>generate-sources</phase>
- <configuration>
- <tasks>
+
+ <mkdir dir="${build.webapps}/master/WEB-INF"/>
+ <jspcompiler uriroot="${src.webapps}/master"
+ outputdir="${generated.sources}"
+ package="org.apache.hadoop.hbase.generated.master"
+ webxml="${build.webapps}/master/WEB-INF/web.xml"/>
+
+ <mkdir dir="${build.webapps}/regionserver/WEB-INF"/>
+ <jspcompiler uriroot="${src.webapps}/regionserver"
+ outputdir="${generated.sources}"
+ package="org.apache.hadoop.hbase.generated.regionserver"
+ webxml="${build.webapps}/regionserver/WEB-INF/web.xml"/>
+
<exec executable="sh">
- <arg line="${basedir}/src/saveVersion.sh ${project.version} ${project.build.directory}/generated-sources"/>
+ <arg line="${basedir}/src/saveVersion.sh ${project.version} ${generated.sources}"/>
</exec>
</tasks>
</configuration>
Modified: hbase/trunk/src/assembly/bin.xml
URL: http://svn.apache.org/viewvc/hbase/trunk/src/assembly/bin.xml?rev=953495&r1=953494&r2=953495&view=diff
==============================================================================
--- hbase/trunk/src/assembly/bin.xml (original)
+++ hbase/trunk/src/assembly/bin.xml Thu Jun 10 23:21:45 2010
@@ -34,11 +34,8 @@
</includes>
</fileSet>
<fileSet>
- <directory>target/classes/hbase-webapps</directory>
+ <directory>target/hbase-webapps</directory>
<outputDirectory>hbase-webapps</outputDirectory>
- <excludes>
- <exclude>**/*.jsp</exclude>
- </excludes>
</fileSet>
<fileSet>
<directory>target/site</directory>
Added: hbase/trunk/src/main/resources/hbase-webapps/static/hbase_logo_med.gif
URL: http://svn.apache.org/viewvc/hbase/trunk/src/main/resources/hbase-webapps/static/hbase_logo_med.gif?rev=953495&view=auto
==============================================================================
Binary file - no diff available.
Propchange: hbase/trunk/src/main/resources/hbase-webapps/static/hbase_logo_med.gif
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream