hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Enis Soztutar (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-7269) Testing in place does not work if not building with default profile
Date Tue, 04 Dec 2012 21:34:58 GMT

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

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

@JD running clean + compile + classpath would be too long to be executed from the bin/hbase
script I am afraid. If we had save classpath, you can do clean compile before switching to
h2. 
                
> 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

Mime
View raw message