Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Where and how can I find the peer.adr value in HBase?

avatar
Expert Contributor

Hi,

I need to copy an exiting table from one cluster to another. I will be using the

hbase org.apache.hadoop.hbase.mapreduce.CopyTable 

command to achieve this operation however i need to know a parameter which I should pass along with it i.e peer.adr. Do any body has got any clue on how to get this information from Hbase?

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Alex Raj

Example n1, n2 , n3 = zk address

hbase org.apache.hadoop.hbase.mapreduce.CopyTable --peer.adr=n1,n2,n3:2181:/hbase table

View solution in original post

4 REPLIES 4

avatar
Master Mentor

@Alex Raj

Example n1, n2 , n3 = zk address

hbase org.apache.hadoop.hbase.mapreduce.CopyTable --peer.adr=n1,n2,n3:2181:/hbase table

avatar
Expert Contributor

Thanks for your response, Neeraj. I have already been through the example however my question is on how to find the peer address of the HBase cluster. Is there any command or should I be looking into any config file to get the address? I can talk with my devops if you have any clue.

Much appreciate your time.

avatar

@Alex Raj you can find the right value for peer.adr in your HBASE configuration (hbase-site.xml). The config is called hbase.zookeeper.quorum

avatar
Expert Contributor

Jonas. Thanks a lot for the information. I am gonna try that one now.

Your guys are really swift in helping. Much appreciated.