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
Post a Comment