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

Daniel Vimont commented on HBASE-14879:
---------------------------------------

I did a fresh clone of the hbase.git repository, applied the patch, ran a 
"clean install", generated a map-reduce project using the new archetype, then 
successfully ran a "clean install" on the newly-generated mapreduce project. 
All its tests ran successfully.

One important thing to note: I did NOT have a local instance of HBase running 
when I did all this.

While I was NOT able to recreate your problem, I DID encounter a problem when I 
started up a local instance of HBase and reran the "clean install" on the 
newly-generated mapreduce project. In that case the test failed due to port 
contention:
{code}
     2016-05-11 12:02:07,183 ERROR [main] regionserver.HRegionServer: Failed 
binding http info server to port: 16010
     2016-05-11 12:02:07,184 ERROR [main] hbase.MiniHBaseCluster: Error 
starting cluster
     java.lang.RuntimeException: Failed construction of Master: class 
org.apache.hadoop.hbase.master.HMasterAddress already in use
{code}
I did some googling about to try to get to the root of this, and found an old 
1.0.x JIRA entry that seemed to relate: HBASE-13479

Following the advice implied in this JIRA entry, I added an hbase-site.xml file 
to the the src/test/resources directory of my newly-generated mapreduce project 
as follows (using completely arbritrarily-chosen port numbers, to differentiate 
from the default 16010, 16020, and 16030 ports):
{code:xml}
    <configuration>
        <property>
            <name>hbase.regionserver.port</name>
            <value>16050</value>
        </property>
        <property>
            <name>hbase.master.info.port</name>
            <value>16060</value>
        </property>
        <property>
            <name>hbase.regionserver.info.port</name>
            <value>16070</value>
        </property>
    </configuration>
{code}
After I put this hbase-site.xml file in place, a "clean install" in the new 
project completes successfully, even when a local instance of HBase is running.

Now, since I as yet have no idea as to the nature of the problem you are 
experiencing, I don't know whether the addition of an hbase-site.xml file (with 
the above properties) to your new project's src/test/resources directory will 
resolve your problem or not.

> maven archetype: mapreduce application
> --------------------------------------
>
>                 Key: HBASE-14879
>                 URL: https://issues.apache.org/jira/browse/HBASE-14879
>             Project: HBase
>          Issue Type: Sub-task
>          Components: build, Usability
>            Reporter: Nick Dimiduk
>            Assignee: Daniel Vimont
>              Labels: beginner
>         Attachments: HBASE-14879-v1.patch, HBASE-14879-v2.patch, 
> archetype_mr_prototype.zip
>
>




--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to