From bdcc7f126a9ee4ee19ad3554ca2249734063fdd1 Mon Sep 17 00:00:00 2001 From: Michael Stack Date: Thu, 10 Jun 2010 23:21:45 +0000 Subject: [PATCH] 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 --- CHANGES.txt | 1 + bin/hbase | 24 +++---- pom.xml | 67 ++++++++++-------- src/assembly/bin.xml | 5 +- .../hbase-webapps/static/hbase_logo_med.gif | Bin 0 -> 3592 bytes 5 files changed, 49 insertions(+), 48 deletions(-) create mode 100644 src/main/resources/hbase-webapps/static/hbase_logo_med.gif diff --git a/CHANGES.txt b/CHANGES.txt index d1654658b26..d21cfff5410 100644 --- a/CHANGES.txt +++ b/CHANGES.txt @@ -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 diff --git a/bin/hbase b/bin/hbase index b5293b6b17d..0882d3ac210 100755 --- a/bin/hbase +++ b/bin/hbase @@ -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 '' $HBASE_HOME/pom.xml | head -1 | sed 's/.*\(.*\)<\/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 diff --git a/pom.xml b/pom.xml index 03c6ec84209..87b5bd49fa4 100644 --- a/pom.xml +++ b/pom.xml @@ -7,13 +7,11 @@ jar 0.21.0-SNAPSHOT HBase - 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. - http://hbase.apache.org @@ -286,15 +284,15 @@ - src/main/resources + src/main/resources/ + + hbase-default.xml + - src/main/hbase-webapps + ${project.build.directory} - */.gif - */.css - */.html - */.xml + hbase-webapps/** @@ -375,32 +373,43 @@ maven-antrun-plugin - JSPC + generate generate-sources + + + + + + + + + + + + + + - - - - - - run - - - - package-info - generate-sources - - + + + + + + + - + diff --git a/src/assembly/bin.xml b/src/assembly/bin.xml index 95227c9858b..4705d2f9a8b 100644 --- a/src/assembly/bin.xml +++ b/src/assembly/bin.xml @@ -34,11 +34,8 @@ - target/classes/hbase-webapps + target/hbase-webapps hbase-webapps - - **/*.jsp - target/site diff --git a/src/main/resources/hbase-webapps/static/hbase_logo_med.gif b/src/main/resources/hbase-webapps/static/hbase_logo_med.gif new file mode 100644 index 0000000000000000000000000000000000000000..36d3e3c9127d8e203ce975785f332b904d6d29d3 GIT binary patch literal 3592 zcmV+j4)^g#Nk%w1VSNBq0Qdg@jfj-6th9oCipa*xt*x!y-Q7h+MV67A;^N|AVPUzp zy+9<@G&FE(c*@Al zmX?-=fsIf}Td}dR(9YA7kDBZ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