AnsweredAssumed Answered

HBase Java API - Specify cluster to connect to?

Question asked by john.humphreys on Dec 11, 2017
Latest reply on Dec 21, 2017 by raviyellelli

A co-worker of mine is having an issue.

 

He's using the HBase Java API but is finding that it always targets the first entry in mapr-clusters.conf by default, and he has two clusters in there.

 

He has tried setting the zoo-keeper quorum but it takes effect at a later stage, so it's not a viable solution.  It is worth noting that he's setting it in Spring though, so it is potentially possible that that would work but is happening too late in the initialization process; he's looking into that.

 

What is the usual way to target a specific cluster when you have more than one in the mapr-clusters.conf file?


Also a a second question; can you target a specific cluster with the command line utility?

Outcomes