Hi Sowmya,
I have also faced the same issue with some of the functions, you might
be using newer version of Rhipe where some of the functions got
deprecated like rhs2m(function for sequential to map)not tried
rhlapply...well whats the problem you are trying to solve?
U should also check whether you are able to load the Rhipe library or
not???
for checking whether the Rhipe is working properly or not, try a very
basic problem consisting of simple map expression and let there be
identity reducerThen use rhmr function for encapsulating the map and
reduce expressions and Hadoop related parameters and use rhex for
submitting the job.
Well for installing Rhipe, follow the procedure given below:
The version of R i am using is 2.12.0
protobuf.pc:2.3.0
Rhipe: 0.63
Installing protobuf.pc
I.Download protobuf.pc (protobuf-2.3.0.tar.gz) from
http://code.google.com/p/protobuf/downloads/list .
II. Execute the following commands serially after unzipping the
contents
A. sh configure
B. make
C. make install
Create an environment variable PKG_CONFIG_PATH=/usr/local/lib/
pkgconfig .
III. Check for the proper installation of protobuf.pc
Execute the command : pkg-config –-modversion protobuf
The output should be 2.3.0
IV. Check for the proper installation ofprotobuf libraries.
Execute the command : pkg-config –libs protobuf
Installing RHIPE
I. Download RHIPE from
http://www.stat.purdue.edu/~sguha/rhipe/ and
place the contents in a directory Rhipe. For example : /home/user/
Rhipe
II. Create the following environment variables in .bashrc
HADOOP = location to hadoop installation
HADOOP_LIB = $HADOOP/lib
HADOOP_CONF_DIR=$HADOOP/conf
III. Execute the following command from the directory /home/user/
Rhipe.
R CMD INSTALL Rhipe
As a check open the R console and load the Rhipe library using the
command library(Rhipe),it shouldn’t throw error.
The installation will fail if the libraries are not properly linked.
The error is as shown below:
Error in dyn.load(file, DLLpath = DLLpath, ...) :
unable to load shared object '/usr/lib64/R/library/Rhipe/libs/
Rhipe.so':
libprotobuf.so.6: cannot open shared object file: No such file or
directory
ERROR: loading failed
* removing â/usr/lib64/R/library/Rhipeâ
In order to link the libraries to LD_LIBRARY_PATH, create the file
Protobuf-x86.conf under /etc/ld.so.conf.d/ and add the line /usr/local/
lib to the file.
Sometimes even after creating the file Protobuf-x86.conf, library
libprotobuf.so is not found. This is because of the presence of stale
cache ld.so.cache. For removing the stale cache execute the command
ldconfig.
Let us know if you are still facing some problem
Regards,
Som Shekhar
On Apr 13, 11:20 pm, sowmya sree <
sowmyasree.bhagavat...@gmail.com>
wrote:
> hello,
>
> i installed Rhipe ..when i try to run the code given inhttp://
www.stat.purdue.edu/~sguha/rhipe/ (the map reduce code), im