r - Getting error on rhive.env(): cant't connect to a Rserver at x.x.x.x -


i run hadoop cluster (master + 3 slaves)+hive server , want use rhive on it. installed r environment on every computer. rserve installed on every node , rhive installed on master. error trying run rhive on master:

> rhive.env() hive home directory : {hive home directory} hadoop home directory : {hadoop home directory} hadoop conf directory : {hadoop configuration directory} default rserve list x.x.x.8     hadoop-slave1 x.x.x.9     hadoop-slave2 x.x.x.10    hadoop-slave3 warning: cant't connect rserver @ x.x.x.8     hadoop-slave1:6311 warning: cant't connect rserver @ x.x.x.9     hadoop-slave2:6311 warning: cant't connect rserver @ x.x.x.10    hadoop-slave3:6311 disconnected hiveserver , hdfs warning messages: 1: in socketconnection(host, port, open = "a+b", blocking = true) :   x.x.x.8     hadoop-slave1:6311 cannot opened 2: in socketconnection(host, port, open = "a+b", blocking = true) :   x.x.x.9     hadoop-slave2:6311 cannot opened 3: in socketconnection(host, port, open = "a+b", blocking = true) :   x.x.x.10    hadoop-slave3:6311 cannot opened 

rserve listens on tcp port 6311 on slave1, slave2 , slave3. tested with:

nc -z hadoop-slave1 6311 connection hadoop-slave1  6311 port [tcp/*] succeeded! 

what connection problem?

rhive calls rserve url 'hadoop-slave1:6311' listed in {hadoop home}/conf/slaves

i opened r , testd connction url:

% r   > library("rserve")   > c <- rsconnect(host = " hadoop-slave1", port = 6311) 

then connection failed.

i tried connect ip , succeed!

the problem dns configurations!!!

there 2 possible solutions: 1. fix dns server, connecting name work 2. open {hadoop home}/conf/slaves , fix slave names ip's


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -