hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Elliott Clark (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-6961) In place scripts fail if mvn install hasn't been run
Date Tue, 09 Oct 2012 06:28:03 GMT

    [ https://issues.apache.org/jira/browse/HBASE-6961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472172#comment-13472172
] 

Elliott Clark commented on HBASE-6961:
--------------------------------------

This is only for in place runs by developers, when trying to run bin/hbase out of the source
repository.  This patch only changes that.  Nothing about the normal start up classpath is
changed.  Right now on local dev builds maven is already required.  The only thing about the
maven start up that's changing is if the dev hasn't ever done a package/compile the start
up will take longer because it runs a package along with dependency:build-classpath.  On trunk
when no test jars are available only the first module runs before maven errors out so most
jars aren't in the class path file.

Currently in trunk the order of precedence is:

# Things in your mavan repo
# Main Classes locally compiled
# Test Classes locally compiled


{code}
[trunk ✓] $ bin/hbase classpath
/Users/eclark/Code/public/hbase/bin/../conf:/Library/Java/Home/lib/tools.jar:/Users/eclark/Code/public/hbase/bin/../hbase-server/target:/Users/eclark/.m2/repository/asm/asm/3.1/asm-3.1.jar:/Users/eclark/.m2/repository/com/github/stephenc/high-scale-lib/high-scale-lib/1.1.1/high-scale-lib-1.1.1.jar:/Users/eclark/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar:/Users/eclark/.m2/repository/com/google/guava/guava/12.0.1/guava-12.0.1.jar:/Users/eclark/.m2/repository/com/google/protobuf/protobuf-java/2.4.1/protobuf-java-2.4.1.jar:/Users/eclark/.m2/repository/com/sun/jersey/jersey-core/1.8/jersey-core-1.8.jar:/Users/eclark/.m2/repository/com/sun/jersey/jersey-json/1.8/jersey-json-1.8.jar:/Users/eclark/.m2/repository/com/sun/jersey/jersey-server/1.8/jersey-server-1.8.jar:/Users/eclark/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.3-1/jaxb-impl-2.2.3-1.jar:/Users/eclark/.m2/repository/com/yammer/metrics/metrics-core/2.1.2/metrics-core-2.1.2.jar:/Users/eclark/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar:/Users/eclark/.m2/repository/commons-beanutils/commons-beanutils-core/1.8.0/commons-beanutils-core-1.8.0.jar:/Users/eclark/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar:/Users/eclark/.m2/repository/commons-codec/commons-codec/1.7/commons-codec-1.7.jar:/Users/eclark/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar:/Users/eclark/.m2/repository/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar:/Users/eclark/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar:/Users/eclark/.m2/repository/commons-el/commons-el/1.0/commons-el-1.0.jar:/Users/eclark/.m2/repository/commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1.jar:/Users/eclark/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar:/Users/eclark/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/Users/eclark/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/Users/eclark/.m2/repository/commons-net/commons-net/1.4.1/commons-net-1.4.1.jar:/Users/eclark/.m2/repository/io/netty/netty/3.5.0.Final/netty-3.5.0.Final.jar:/Users/eclark/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/Users/eclark/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar:/Users/eclark/.m2/repository/junit/junit/4.10-HBASE-1/junit-4.10-HBASE-1.jar:/Users/eclark/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/Users/eclark/.m2/repository/org/apache/commons/commons-math/2.1/commons-math-2.1.jar:/Users/eclark/.m2/repository/org/apache/ftpserver/ftplet-api/1.0.0/ftplet-api-1.0.0.jar:/Users/eclark/.m2/repository/org/apache/ftpserver/ftpserver-core/1.0.0/ftpserver-core-1.0.0.jar:/Users/eclark/.m2/repository/org/apache/ftpserver/ftpserver-deprecated/1.0.0-M2/ftpserver-deprecated-1.0.0-M2.jar:/Users/eclark/.m2/repository/org/apache/hadoop/hadoop-core/1.0.3/hadoop-core-1.0.3.jar:/Users/eclark/.m2/repository/org/apache/hadoop/hadoop-test/1.0.3/hadoop-test-1.0.3.jar:/Users/eclark/.m2/repository/org/apache/hbase/hbase-common/0.95-SNAPSHOT/hbase-common-0.95-SNAPSHOT.jar:/Users/eclark/.m2/repository/org/apache/hbase/hbase-common/0.95-SNAPSHOT/hbase-common-0.95-SNAPSHOT-tests.jar:/Users/eclark/.m2/repository/org/apache/hbase/hbase-hadoop-compat/0.95-SNAPSHOT/hbase-hadoop-compat-0.95-SNAPSHOT.jar:/Users/eclark/.m2/repository/org/apache/hbase/hbase-hadoop1-compat/0.95-SNAPSHOT/hbase-hadoop1-compat-0.95-SNAPSHOT.jar:/Users/eclark/.m2/repository/org/apache/hbase/hbase-server/0.95-SNAPSHOT/hbase-server-0.95-SNAPSHOT.jar:/Users/eclark/.m2/repository/org/apache/hbase/hbase-server/0.95-SNAPSHOT/hbase-server-0.95-SNAPSHOT-tests.jar:/Users/eclark/.m2/repository/org/apache/httpcomponents/httpclient/4.1.2/httpclient-4.1.2.jar:/Users/eclark/.m2/repository/org/apache/httpcomponents/httpcore/4.1.3/httpcore-4.1.3.jar:/Users/eclark/.m2/repository/org/apache/mina/mina-core/2.0.0-M5/mina-core-2.0.0-M5.jar:/Users/eclark/.m2/repository/org/apache/thrift/libthrift/0.8.0/libthrift-0.8.0.jar:/Users/eclark/.m2/repository/org/apache/zookeeper/zookeeper/3.4.3/zookeeper-3.4.3.jar:/Users/eclark/.m2/repository/org/cloudera/htrace/htrace/1.49/htrace-1.49.jar:/Users/eclark/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.8.8/jackson-core-asl-1.8.8.jar:/Users/eclark/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.8.8/jackson-jaxrs-1.8.8.jar:/Users/eclark/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.8.8/jackson-mapper-asl-1.8.8.jar:/Users/eclark/.m2/repository/org/codehaus/jackson/jackson-xc/1.8.8/jackson-xc-1.8.8.jar:/Users/eclark/.m2/repository/org/codehaus/jettison/jettison/1.3.1/jettison-1.3.1.jar:/Users/eclark/.m2/repository/org/eclipse/jdt/core/3.1.1/core-3.1.1.jar:/Users/eclark/.m2/repository/org/jamon/jamon-runtime/2.3.1/jamon-runtime-2.3.1.jar:/Users/eclark/.m2/repository/org/jboss/netty/netty/3.2.2.Final/netty-3.2.2.Final.jar:/Users/eclark/.m2/repository/org/jruby/jruby-complete/1.6.8/jruby-complete-1.6.8.jar:/Users/eclark/.m2/repository/org/mockito/mockito-all/1.9.0/mockito-all-1.9.0.jar:/Users/eclark/.m2/repository/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.jar:/Users/eclark/.m2/repository/org/mortbay/jetty/jetty-util/6.1.26/jetty-util-6.1.26.jar:/Users/eclark/.m2/repository/org/mortbay/jetty/jsp-2.1/6.1.14/jsp-2.1-6.1.14.jar:/Users/eclark/.m2/repository/org/mortbay/jetty/jsp-api-2.1/6.1.14/jsp-api-2.1-6.1.14.jar:/Users/eclark/.m2/repository/org/mortbay/jetty/servlet-api-2.5/6.1.14/servlet-api-2.5-6.1.14.jar:/Users/eclark/.m2/repository/org/slf4j/slf4j-api/1.4.3/slf4j-api-1.4.3.jar:/Users/eclark/.m2/repository/org/slf4j/slf4j-log4j12/1.4.3/slf4j-log4j12-1.4.3.jar:/Users/eclark/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar:/Users/eclark/.m2/repository/tomcat/jasper-compiler/5.5.23/jasper-compiler-5.5.23.jar:/Users/eclark/.m2/repository/tomcat/jasper-runtime/5.5.23/jasper-runtime-5.5.23.jar:/Users/eclark/.m2/repository/xmlenc/xmlenc/0.52/xmlenc-0.52.jar:/Users/eclark/Code/public/hbase/bin/../hbase-common/target/classes:/Users/eclark/Code/public/hbase/bin/../hbase-hadoop-compat/target/classes:/Users/eclark/Code/public/hbase/bin/../hbase-hadoop1-compat/target/classes:/Users/eclark/Code/public/hbase/bin/../hbase-hadoop2-compat/target/classes:/Users/eclark/Code/public/hbase/bin/../hbase-it/target/classes:/Users/eclark/Code/public/hbase/bin/../hbase-server/target/classes:/Users/eclark/Code/public/hbase/bin/../hbase-common/target/test-classes:/Users/eclark/Code/public/hbase/bin/../hbase-hadoop-compat/target/test-classes:/Users/eclark/Code/public/hbase/bin/../hbase-hadoop1-compat/target/test-classes:/Users/eclark/Code/public/hbase/bin/../hbase-hadoop2-compat/target/test-classes:/Users/eclark/Code/public/hbase/bin/../hbase-it/target/test-classes:/Users/eclark/Code/public/hbase/bin/../hbase-server/target/test-classes:/Users/eclark/Code/public/hbase/bin/../lib/*.jar:
{code}
After the patch the order will be:

# Main Classes locally compiled
# Test Classes locally compiled
# Things in your mavan repo


{code}[HBASE-6961 ✓] $ bin/hbase classpath
/Users/eclark/Code/public/hbase/bin/../conf:/Library/Java/Home/lib/tools.jar:/Users/eclark/Code/public/hbase/bin/../hbase-server/target:/Users/eclark/Code/public/hbase/bin/../hbase-common/target/classes:/Users/eclark/Code/public/hbase/bin/../hbase-hadoop-compat/target/classes:/Users/eclark/Code/public/hbase/bin/../hbase-hadoop1-compat/target/classes:/Users/eclark/Code/public/hbase/bin/../hbase-hadoop2-compat/target/classes:/Users/eclark/Code/public/hbase/bin/../hbase-it/target/classes:/Users/eclark/Code/public/hbase/bin/../hbase-server/target/classes:/Users/eclark/Code/public/hbase/bin/../hbase-common/target/test-classes:/Users/eclark/Code/public/hbase/bin/../hbase-hadoop-compat/target/test-classes:/Users/eclark/Code/public/hbase/bin/../hbase-hadoop1-compat/target/test-classes:/Users/eclark/Code/public/hbase/bin/../hbase-hadoop2-compat/target/test-classes:/Users/eclark/Code/public/hbase/bin/../hbase-it/target/test-classes:/Users/eclark/Code/public/hbase/bin/../hbase-server/target/test-classes:/Users/eclark/.m2/repository/asm/asm/3.1/asm-3.1.jar:/Users/eclark/.m2/repository/com/github/stephenc/high-scale-lib/high-scale-lib/1.1.1/high-scale-lib-1.1.1.jar:/Users/eclark/.m2/repository/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar:/Users/eclark/.m2/repository/com/google/guava/guava/12.0.1/guava-12.0.1.jar:/Users/eclark/.m2/repository/com/google/protobuf/protobuf-java/2.4.1/protobuf-java-2.4.1.jar:/Users/eclark/.m2/repository/com/sun/jersey/jersey-core/1.8/jersey-core-1.8.jar:/Users/eclark/.m2/repository/com/sun/jersey/jersey-json/1.8/jersey-json-1.8.jar:/Users/eclark/.m2/repository/com/sun/jersey/jersey-server/1.8/jersey-server-1.8.jar:/Users/eclark/.m2/repository/com/sun/xml/bind/jaxb-impl/2.2.3-1/jaxb-impl-2.2.3-1.jar:/Users/eclark/.m2/repository/com/yammer/metrics/metrics-core/2.1.2/metrics-core-2.1.2.jar:/Users/eclark/.m2/repository/commons-beanutils/commons-beanutils/1.7.0/commons-beanutils-1.7.0.jar:/Users/eclark/.m2/repository/commons-beanutils/commons-beanutils-core/1.8.0/commons-beanutils-core-1.8.0.jar:/Users/eclark/.m2/repository/commons-cli/commons-cli/1.2/commons-cli-1.2.jar:/Users/eclark/.m2/repository/commons-codec/commons-codec/1.7/commons-codec-1.7.jar:/Users/eclark/.m2/repository/commons-collections/commons-collections/3.2.1/commons-collections-3.2.1.jar:/Users/eclark/.m2/repository/commons-configuration/commons-configuration/1.6/commons-configuration-1.6.jar:/Users/eclark/.m2/repository/commons-digester/commons-digester/1.8/commons-digester-1.8.jar:/Users/eclark/.m2/repository/commons-el/commons-el/1.0/commons-el-1.0.jar:/Users/eclark/.m2/repository/commons-httpclient/commons-httpclient/3.0.1/commons-httpclient-3.0.1.jar:/Users/eclark/.m2/repository/commons-io/commons-io/2.4/commons-io-2.4.jar:/Users/eclark/.m2/repository/commons-lang/commons-lang/2.6/commons-lang-2.6.jar:/Users/eclark/.m2/repository/commons-logging/commons-logging/1.1.1/commons-logging-1.1.1.jar:/Users/eclark/.m2/repository/commons-net/commons-net/1.4.1/commons-net-1.4.1.jar:/Users/eclark/.m2/repository/io/netty/netty/3.5.0.Final/netty-3.5.0.Final.jar:/Users/eclark/.m2/repository/javax/activation/activation/1.1/activation-1.1.jar:/Users/eclark/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar:/Users/eclark/.m2/repository/junit/junit/4.10-HBASE-1/junit-4.10-HBASE-1.jar:/Users/eclark/.m2/repository/log4j/log4j/1.2.17/log4j-1.2.17.jar:/Users/eclark/.m2/repository/org/apache/commons/commons-math/2.1/commons-math-2.1.jar:/Users/eclark/.m2/repository/org/apache/ftpserver/ftplet-api/1.0.0/ftplet-api-1.0.0.jar:/Users/eclark/.m2/repository/org/apache/ftpserver/ftpserver-core/1.0.0/ftpserver-core-1.0.0.jar:/Users/eclark/.m2/repository/org/apache/ftpserver/ftpserver-deprecated/1.0.0-M2/ftpserver-deprecated-1.0.0-M2.jar:/Users/eclark/.m2/repository/org/apache/hadoop/hadoop-core/1.0.3/hadoop-core-1.0.3.jar:/Users/eclark/.m2/repository/org/apache/hadoop/hadoop-test/1.0.3/hadoop-test-1.0.3.jar:/Users/eclark/.m2/repository/org/apache/hbase/hbase-common/0.95-SNAPSHOT/hbase-common-0.95-SNAPSHOT.jar:/Users/eclark/.m2/repository/org/apache/hbase/hbase-common/0.95-SNAPSHOT/hbase-common-0.95-SNAPSHOT-tests.jar:/Users/eclark/.m2/repository/org/apache/hbase/hbase-hadoop-compat/0.95-SNAPSHOT/hbase-hadoop-compat-0.95-SNAPSHOT.jar:/Users/eclark/.m2/repository/org/apache/hbase/hbase-hadoop1-compat/0.95-SNAPSHOT/hbase-hadoop1-compat-0.95-SNAPSHOT.jar:/Users/eclark/.m2/repository/org/apache/hbase/hbase-server/0.95-SNAPSHOT/hbase-server-0.95-SNAPSHOT.jar:/Users/eclark/.m2/repository/org/apache/hbase/hbase-server/0.95-SNAPSHOT/hbase-server-0.95-SNAPSHOT-tests.jar:/Users/eclark/.m2/repository/org/apache/httpcomponents/httpclient/4.1.2/httpclient-4.1.2.jar:/Users/eclark/.m2/repository/org/apache/httpcomponents/httpcore/4.1.3/httpcore-4.1.3.jar:/Users/eclark/.m2/repository/org/apache/mina/mina-core/2.0.0-M5/mina-core-2.0.0-M5.jar:/Users/eclark/.m2/repository/org/apache/thrift/libthrift/0.8.0/libthrift-0.8.0.jar:/Users/eclark/.m2/repository/org/apache/zookeeper/zookeeper/3.4.3/zookeeper-3.4.3.jar:/Users/eclark/.m2/repository/org/cloudera/htrace/htrace/1.49/htrace-1.49.jar:/Users/eclark/.m2/repository/org/codehaus/jackson/jackson-core-asl/1.8.8/jackson-core-asl-1.8.8.jar:/Users/eclark/.m2/repository/org/codehaus/jackson/jackson-jaxrs/1.8.8/jackson-jaxrs-1.8.8.jar:/Users/eclark/.m2/repository/org/codehaus/jackson/jackson-mapper-asl/1.8.8/jackson-mapper-asl-1.8.8.jar:/Users/eclark/.m2/repository/org/codehaus/jackson/jackson-xc/1.8.8/jackson-xc-1.8.8.jar:/Users/eclark/.m2/repository/org/codehaus/jettison/jettison/1.3.1/jettison-1.3.1.jar:/Users/eclark/.m2/repository/org/eclipse/jdt/core/3.1.1/core-3.1.1.jar:/Users/eclark/.m2/repository/org/jamon/jamon-runtime/2.3.1/jamon-runtime-2.3.1.jar:/Users/eclark/.m2/repository/org/jboss/netty/netty/3.2.2.Final/netty-3.2.2.Final.jar:/Users/eclark/.m2/repository/org/jruby/jruby-complete/1.6.8/jruby-complete-1.6.8.jar:/Users/eclark/.m2/repository/org/mockito/mockito-all/1.9.0/mockito-all-1.9.0.jar:/Users/eclark/.m2/repository/org/mortbay/jetty/jetty/6.1.26/jetty-6.1.26.jar:/Users/eclark/.m2/repository/org/mortbay/jetty/jetty-util/6.1.26/jetty-util-6.1.26.jar:/Users/eclark/.m2/repository/org/mortbay/jetty/jsp-2.1/6.1.14/jsp-2.1-6.1.14.jar:/Users/eclark/.m2/repository/org/mortbay/jetty/jsp-api-2.1/6.1.14/jsp-api-2.1-6.1.14.jar:/Users/eclark/.m2/repository/org/mortbay/jetty/servlet-api-2.5/6.1.14/servlet-api-2.5-6.1.14.jar:/Users/eclark/.m2/repository/org/slf4j/slf4j-api/1.4.3/slf4j-api-1.4.3.jar:/Users/eclark/.m2/repository/org/slf4j/slf4j-log4j12/1.4.3/slf4j-log4j12-1.4.3.jar:/Users/eclark/.m2/repository/stax/stax-api/1.0.1/stax-api-1.0.1.jar:/Users/eclark/.m2/repository/tomcat/jasper-compiler/5.5.23/jasper-compiler-5.5.23.jar:/Users/eclark/.m2/repository/tomcat/jasper-runtime/5.5.23/jasper-runtime-5.5.23.jar:/Users/eclark/.m2/repository/xmlenc/xmlenc/0.52/xmlenc-0.52.jar:/Users/eclark/Code/public/hbase/bin/../lib/*.jar:{code}


I verified this by removing everything in my maven repo (rm -rf ~/.m2).  Changing the Title
of the Master status page to include "INSTALLED JAR", then I ran mvn clean package install
-DskipTests.  Then I changed the master status page back and ran mvn clean package -DskipTests
&& bin/start-hbase.sh  When I navigated to localhost:60010 the title of the page was
"INSTALLED JAR Master".  This indicates that things from the .m2/repository are taking precedence.

I then checked out the HBASE-6961 branch and ran bin/stop-hbase.sh && bin/start-hbase.sh
I then went to localhost:60010 and the new title was tittled correctly.
                
> In place scripts fail if mvn install hasn't been run
> ----------------------------------------------------
>
>                 Key: HBASE-6961
>                 URL: https://issues.apache.org/jira/browse/HBASE-6961
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Elliott Clark
>            Assignee: Elliott Clark
>         Attachments: HBASE-6961-0.patch
>
>
> bin/hbase tries to get dependencies of the project however it fails if mvn install hasn't
already satisfied hbase-hadoop-compat test-jar.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message