HBASE-2583 Make webapps work in distributed mode again and make webapps deploy at / instead of at /webapps/master/master.jsp
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@946571 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
79b8669dbf
commit
3d5c3a66b3
|
@ -346,6 +346,8 @@ Release 0.21.0 - Unreleased
|
||||||
HBASE-2576 TestHRegion.testDelete_mixed() failing on hudson
|
HBASE-2576 TestHRegion.testDelete_mixed() failing on hudson
|
||||||
HBASE-2581 Bloom commit broke some tests... fix
|
HBASE-2581 Bloom commit broke some tests... fix
|
||||||
HBASE-2582 TestTableSchemaModel not passing after commit of blooms
|
HBASE-2582 TestTableSchemaModel not passing after commit of blooms
|
||||||
|
HBASE-2583 Make webapps work in distributed mode again and make webapps
|
||||||
|
deploy at / instead of at /webapps/master/master.jsp
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
HBASE-1760 Cleanup TODOs in HTable
|
HBASE-1760 Cleanup TODOs in HTable
|
||||||
|
|
25
bin/hbase
25
bin/hbase
|
@ -105,21 +105,32 @@ CLASSPATH="${HBASE_CONF_DIR}"
|
||||||
CLASSPATH=${CLASSPATH}:$JAVA_HOME/lib/tools.jar
|
CLASSPATH=${CLASSPATH}:$JAVA_HOME/lib/tools.jar
|
||||||
|
|
||||||
add_maven_deps_to_classpath() {
|
add_maven_deps_to_classpath() {
|
||||||
f="/tmp/hbase-core-test-classpath.txt"
|
# The maven build dir is called 'target'
|
||||||
${MVN} -f core/pom.xml dependency:build-classpath -Dmdep.outputFile="${f}" &> /dev/null
|
target="${HBASE_HOME}/target"
|
||||||
# Add tests classes
|
if [ ! -d "${HBASE_HOME}/target" ]
|
||||||
|
then
|
||||||
|
mkdir "${target}"
|
||||||
|
fi
|
||||||
|
# Need to generate classpath from maven pom. This is costly so generate it
|
||||||
|
# and cache it. Save the file into our target dir so a mvn clean will get
|
||||||
|
# clean it up and force us create a new one.
|
||||||
|
f="${target}/cached_classpath.txt"
|
||||||
|
if [ ! -f "${f}" ]
|
||||||
|
then
|
||||||
|
${MVN} -f "${HBASE_HOME}/pom.xml" dependency:build-classpath -Dmdep.outputFile="${f}" &> /dev/null
|
||||||
|
fi
|
||||||
CLASSPATH=${CLASSPATH}:`cat "${f}"`
|
CLASSPATH=${CLASSPATH}:`cat "${f}"`
|
||||||
}
|
}
|
||||||
|
|
||||||
add_maven_main_classes_to_classpath() {
|
add_maven_main_classes_to_classpath() {
|
||||||
if [ -d "$HBASE_HOME/core/target/classes" ]; then
|
if [ -d "$HBASE_HOME/target/classes" ]; then
|
||||||
CLASSPATH=${CLASSPATH}:$HBASE_HOME/core/target/classes
|
CLASSPATH=${CLASSPATH}:$HBASE_HOME/target/classes
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
add_maven_test_classes_to_classpath() {
|
add_maven_test_classes_to_classpath() {
|
||||||
# For developers, add hbase classes to CLASSPATH
|
# For developers, add hbase classes to CLASSPATH
|
||||||
f="$HBASE_HOME/core/target/test-classes"
|
f="$HBASE_HOME/target/test-classes"
|
||||||
if [ -d "${f}" ]; then
|
if [ -d "${f}" ]; then
|
||||||
CLASSPATH=${CLASSPATH}:${f}
|
CLASSPATH=${CLASSPATH}:${f}
|
||||||
fi
|
fi
|
||||||
|
@ -215,7 +226,7 @@ elif $in_sources_dir && [ "$COMMAND" = "shell-tests" ] ; then
|
||||||
add_maven_main_classes_to_classpath
|
add_maven_main_classes_to_classpath
|
||||||
add_maven_test_classes_to_classpath
|
add_maven_test_classes_to_classpath
|
||||||
# Start the tests
|
# Start the tests
|
||||||
CORESRC="${HBASE_HOME}/core/src"
|
CORESRC="${HBASE_HOME}/src"
|
||||||
CLASS="org.jruby.Main -I${CORESRC}/main/ruby -I${CORESRC}/test/ruby ${CORESRC}/test/ruby/tests_runner.rb"
|
CLASS="org.jruby.Main -I${CORESRC}/main/ruby -I${CORESRC}/test/ruby ${CORESRC}/test/ruby/tests_runner.rb"
|
||||||
elif [ "$COMMAND" = "master" ] ; then
|
elif [ "$COMMAND" = "master" ] ; then
|
||||||
CLASS='org.apache.hadoop.hbase.master.HMaster'
|
CLASS='org.apache.hadoop.hbase.master.HMaster'
|
||||||
|
|
12
pom.xml
12
pom.xml
|
@ -292,6 +292,7 @@
|
||||||
<excludes>
|
<excludes>
|
||||||
<exclude>org/apache/jute/**</exclude>
|
<exclude>org/apache/jute/**</exclude>
|
||||||
<exclude>org/apache/zookeeper/**</exclude>
|
<exclude>org/apache/zookeeper/**</exclude>
|
||||||
|
<exclude>**/*.jsp</exclude>
|
||||||
</excludes>
|
</excludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
@ -599,6 +600,17 @@
|
||||||
<artifactId>jasper-runtime</artifactId>
|
<artifactId>jasper-runtime</artifactId>
|
||||||
<version>${jasper.version}</version>
|
<version>${jasper.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<!--If this is not in the runtime lib, we get odd
|
||||||
|
"2009-02-27 11:38:39.504::WARN: failed jsp
|
||||||
|
java.lang.NoSuchFieldError: IS_SECURITY_ENABLED"
|
||||||
|
exceptions out of jetty deploying webapps.
|
||||||
|
St.Ack Thu May 20 01:04:41 PDT 2010
|
||||||
|
-->
|
||||||
|
<groupId>tomcat</groupId>
|
||||||
|
<artifactId>jasper-compiler</artifactId>
|
||||||
|
<version>${jasper.version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jruby</groupId>
|
<groupId>org.jruby</groupId>
|
||||||
|
|
|
@ -33,6 +33,13 @@
|
||||||
<include>*.jar</include>
|
<include>*.jar</include>
|
||||||
</includes>
|
</includes>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
|
<fileSet>
|
||||||
|
<directory>target/classes/webapps</directory>
|
||||||
|
<outputDirectory>webapps</outputDirectory>
|
||||||
|
<excludes>
|
||||||
|
<exclude>**/*.jsp</exclude>
|
||||||
|
</excludes>
|
||||||
|
</fileSet>
|
||||||
</fileSets>
|
</fileSets>
|
||||||
<dependencySets>
|
<dependencySets>
|
||||||
<dependencySet>
|
<dependencySet>
|
||||||
|
|
Loading…
Reference in New Issue