[Rd] How to write R data frame to HDFS using rhdfs?

2013-10-09 Thread Gaurav Dasgupta
Hello, I am trying to write the default "OrchardSprays" R data frame into HDFS using the "rhdfs" package. I want to write this data frame directly into HDFS without first storing it into any file in local file system. Which rhdfs command i should use? Can some one help me? I am very new to R and

[Rd] Unable to execute Java MapReduce (Hadoop) code from R using rJava

2013-09-23 Thread Gaurav Dasgupta
Hi All, I have written a Java MapReduce code that runs on Hadoop. My intention is to create an R package which will call the Java code and execute the job. Hence, I have written a similar R function. But when I call this function from R terminal, the Hadoop job is not running. Its just printing fe

[Rd] ClassNotFoundException when running distributed job using rJava package

2013-02-07 Thread Gaurav Dasgupta
Hi, I have a MapReduce Java code, which I am calling from R using rJava. I have prepared the R package and tested that successfully. But when I deployed the package in a cluster and executed it, I am getting ClassNotFoundException. If I run the same job directly without integrating with R, it runs

[Rd] How to call Java main method using rJava package?

2013-01-16 Thread Gaurav Dasgupta
Hi, I am trying to integrate my Java program with R using rJava package. I want to execute the whole Java program from R. The main() method in my Java code calls all the other defined methods. So, I guess I have to call the main() method in .jcall. An example Java code: *class A { public