You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Enis Soztutar (JIRA)" <ji...@apache.org> on 2012/12/04 06:03:59 UTC

[jira] [Commented] (HBASE-7269) Testing in place does not work if not building with default profile

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

Enis Soztutar commented on HBASE-7269:
--------------------------------------

Maybe bin/hbase should not even invoke mvn, but just refer to cached classpath. We can save the classpath in mvn compile. 
                
> Testing in place does not work if not building with default profile
> -------------------------------------------------------------------
>
>                 Key: HBASE-7269
>                 URL: https://issues.apache.org/jira/browse/HBASE-7269
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 0.96.0
>            Reporter: Andrew Purtell
>
> If I build with the Hadoop 2 profile, for example:
> {{mvn -Dhadoop.profile=2.0 -Dhadoop.version=2.0.3-SNAPSHOT}}
> and then try to run daemons like so:
> {{./bin/hbase master start}}
> this will fail, because the launch script will invoke Maven to build the cached classpath selecting whatever is the default profile, currently Hadoop 1. Startup will actually get pretty far, until:
> {noformat}
> 12/12/04 11:42:13 WARN regionserver.HRegionServer: error telling master we are up
> com.google.protobuf.ServiceException: java.lang.NoClassDefFoundError: org/apache/hadoop/net/SocketInputWrapper
> 	at org.apache.hadoop.hbase.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:189)
> 	at $Proxy10.regionServerStartup(Unknown Source)
> 	at org.apache.hadoop.hbase.regionserver.HRegionServer.reportForDuty(HRegionServer.java:1844)
> 	at org.apache.hadoop.hbase.regionserver.HRegionServer.run(HRegionServer.java:843)
> 	at java.lang.Thread.run(Thread.java:679)
> Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/net/SocketInputWrapper
> 	at org.apache.hadoop.hbase.ipc.HBaseClient.createConnection(HBaseClient.java:317)
> 	at org.apache.hadoop.hbase.ipc.HBaseClient.getConnection(HBaseClient.java:1415)
> 	at org.apache.hadoop.hbase.ipc.HBaseClient.call(HBaseClient.java:1278)
> 	at org.apache.hadoop.hbase.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:177)
> 	... 4 more
> Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.net.SocketInputWrapper
> {noformat}
> There doesn't appear to be a way to supply additional arguments to the launch script for directing Maven which profile(s) to activate.

--
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