[R] Rserve-PHP client warning
sagarnikam123
sagarnikam123 at gmail.com
Tue Oct 23 13:30:53 CEST 2012
i connected Rserver successfully. can do some functions like
rnorm(),print(),etc...
i am connecting R with Hive-hadoop
i have installed library "RHive" which will take care of connection
but when i am connecting it throws warning..like
"Warning: type 7 is currently not implemented in the PHP client."
code:-->
===================================================================================
//connecting to Rserve
$socket=Rserve_connect();
print "Socket:----------------->".$x_socket;
echo "<br>";
//setting path variables
Rserve_eval($socket,"Sys.setenv(HADOOP_HOME='/home/trendwise/Hadoop/hadoop-0.20.2')");
Rserve_eval($socket,"Sys.setenv(HIVE_HOME='/home/trendwise/Hadoop/hive-0.7.1')");
//loading RHive library
$library=Rserve_eval($socket,"library(RHive)");
echo "Loaded library:- ";
foreach($library as $value){echo $value." ";}
echo "<br>"."initializing..."."<br>";
//initializaing RHive library
$kum_faya=Rserve_eval($socket,"rhive.init()");
echo "<br>"."connecting..."."<br>";
//connecting R-Hive
$kesar=Rserve_eval($socket,"rhive.connect()");
foreach($kesar as $value){
print $value."<br>";
}
===================================================================================
output:->
Loaded library:- RHive Rserve rJava stats graphics grDevices utils datasets
methods base
initializing...
connecting...
Warning: type 7 is currently not implemented in the PHP client.Warning: type
7 is currently not implemented in the PHP client.Warning: type 7 is
currently not implemented in the PHP client.Warning: type 7 is currently not
implemented in the PHP client.Warning: type 7 is currently not implemented
in the PHP client.
Array
localhost
Array
hdfs://localhost:54310
-----
Sagar Nikam
B.Pharm, M.Sc(Bioinformatics)
Software Engineer (Data Research Analyst )
Trendwise Analytics,Bangalore
India
--
View this message in context: http://r.789695.n4.nabble.com/Rserve-PHP-client-warning-tp4647110.html
Sent from the R help mailing list archive at Nabble.com.
More information about the R-help
mailing list