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-7269) Testing in place does not work if not building with default profile
Date Thu, 06 Dec 2012 20:59:09 GMT

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

Elliott Clark commented on HBASE-7269:
--------------------------------------

hbase-it has everything else on it's class path (hbase-common, hbase-hadoop-compat, hbase-hadoop1-compat,
hbase-server, hbase-examples).  When maven runs the last module in the list is the one that
writes out the classpath.  So I wanted to make sure that a module that included as much as
possible was always last no matter what happened.
                
> 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
>         Attachments: 7269.v1.patch
>
>
> 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

Mime
View raw message