hadoop - Unable to connect to Hbase remotly -


i have set hadoop , hbase in pseudo distributed mode on machine a. running client ( java program ) machine b.(machine , b can communicate each other). facing problem in doing so.

my client code looks :

configuration config = hbaseconfiguration.create();
config.set("hbase.zookeeper.quorum" ,zookeeperlocation); config.set("hbase.zookeeper.property.clientport","2181");
htablepool tablepool = new htablepool(config,integer.max_value); htableinterface table = tablepool.gettable(tablename);

my code gets hang on last line( tablepool.gettable() ) , not proceed. in zookeeper logs , see request received connect how did not proceed ahead. confused. please here.

i got solution problem , tried different things 1) replacing hostname ip addresses in configuration files 2) playing /etc/hosts file 3) stopping , starting both hadoop , hbase.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -