HBASE-2703 ui not working in distributed context

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@953495 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael Stack 2010-06-10 23:21:45 +00:00
parent d3fb45f189
commit bdcc7f126a
5 changed files with 49 additions and 48 deletions

View File

@ -380,6 +380,7 @@ Release 0.21.0 - Unreleased
HBASE-2616 TestHRegion.testWritesWhileGetting flaky on trunk HBASE-2616 TestHRegion.testWritesWhileGetting flaky on trunk
HBASE-2684 TestMasterWrongRS flaky in trunk HBASE-2684 TestMasterWrongRS flaky in trunk
HBASE-2691 LeaseStillHeldException totally ignored by RS, wrongly named HBASE-2691 LeaseStillHeldException totally ignored by RS, wrongly named
HBASE-2703 ui not working in distributed context
IMPROVEMENTS IMPROVEMENTS
HBASE-1760 Cleanup TODOs in HTable HBASE-1760 Cleanup TODOs in HTable

View File

@ -136,19 +136,6 @@ add_maven_test_classes_to_classpath() {
fi 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 # Add maven target directory
if $in_sources_dir; then if $in_sources_dir; then
add_maven_deps_to_classpath add_maven_deps_to_classpath
@ -158,11 +145,18 @@ fi
# For releases, add hbase & webapps to CLASSPATH # For releases, add hbase & webapps to CLASSPATH
# Webapps must come first else it messes up Jetty # 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 CLASSPATH=${CLASSPATH}:$HBASE_HOME
fi fi
if [ -d "$HBASE_HOME/target/hbase-webapps" ]; then
CLASSPATH="${CLASSPATH}:${HBASE_HOME}/target"
fi
for f in $HBASE_HOME/hbase*.jar; do 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; CLASSPATH=${CLASSPATH}:$f;
fi fi
done done

63
pom.xml
View File

@ -7,13 +7,11 @@
<packaging>jar</packaging> <packaging>jar</packaging>
<version>0.21.0-SNAPSHOT</version> <version>0.21.0-SNAPSHOT</version>
<name>HBase</name> <name>HBase</name>
<!-- START SNIPPET: description -->
<description> <description>
HBase is the &amp;lt;a href="http://hadoop.apache.org"&amp;rt;Hadoop&lt;/a&amp;rt; database. Use it when you need random, realtime read/write access to your Big Data. HBase is the &amp;lt;a href="http://hadoop.apache.org"&amp;rt;Hadoop&lt;/a&amp;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 This project's goal is the hosting of very large tables -- billions of rows X millions of columns -- atop clusters
of commodity hardware. of commodity hardware.
</description> </description>
<!-- END SNIPPET: description -->
<url>http://hbase.apache.org</url> <url>http://hbase.apache.org</url>
<licenses> <licenses>
@ -286,15 +284,15 @@
<resources> <resources>
<resource> <resource>
<directory>src/main/resources</directory> <directory>src/main/resources/</directory>
<includes>
<include>hbase-default.xml</include>
</includes>
</resource> </resource>
<resource> <resource>
<directory>src/main/hbase-webapps</directory> <directory>${project.build.directory}</directory>
<includes> <includes>
<include>*/.gif</include> <include>hbase-webapps/**</include>
<include>*/.css</include>
<include>*/.html</include>
<include>*/.xml</include>
</includes> </includes>
</resource> </resource>
</resources> </resources>
@ -375,32 +373,43 @@
<artifactId>maven-antrun-plugin</artifactId> <artifactId>maven-antrun-plugin</artifactId>
<executions> <executions>
<execution> <execution>
<id>JSPC</id> <id>generate</id>
<phase>generate-sources</phase> <phase>generate-sources</phase>
<configuration> <configuration>
<tasks> <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"/> <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" <mkdir dir="${build.webapps}/master/WEB-INF"/>
<jspcompiler uriroot="${src.webapps}/master"
outputdir="${generated.sources}"
package="org.apache.hadoop.hbase.generated.master" package="org.apache.hadoop.hbase.generated.master"
webxml="${basedir}/src/main/resources/hbase-webapps/master/WEB-INF/web.xml"/> webxml="${build.webapps}/master/WEB-INF/web.xml"/>
<jspcompiler uriroot="${basedir}/src/main/resources/hbase-webapps/regionserver"
outputdir="${project.build.directory}/jspc" <mkdir dir="${build.webapps}/regionserver/WEB-INF"/>
<jspcompiler uriroot="${src.webapps}/regionserver"
outputdir="${generated.sources}"
package="org.apache.hadoop.hbase.generated.regionserver" package="org.apache.hadoop.hbase.generated.regionserver"
webxml="${basedir}/src/main/resources/hbase-webapps/regionserver/WEB-INF/web.xml"/> webxml="${build.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>
<exec executable="sh"> <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> </exec>
</tasks> </tasks>
</configuration> </configuration>

View File

@ -34,11 +34,8 @@
</includes> </includes>
</fileSet> </fileSet>
<fileSet> <fileSet>
<directory>target/classes/hbase-webapps</directory> <directory>target/hbase-webapps</directory>
<outputDirectory>hbase-webapps</outputDirectory> <outputDirectory>hbase-webapps</outputDirectory>
<excludes>
<exclude>**/*.jsp</exclude>
</excludes>
</fileSet> </fileSet>
<fileSet> <fileSet>
<directory>target/site</directory> <directory>target/site</directory>

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB