I have a question similar to the below link in stackoverflow
R+Hadoop: How to read CSV file from HDFS and execute mapreduce?
I am tring to read a file from location "/somnath/logreg_data/ds1.10.csv" in HDFS, reduce its number of columns from 10 to 5 and then write to another location "/somnath/logreg_data/reduced/ds1.10.reduced.csv" in HDFS using the below
The function definition is
But I am receiving an error
When I am trying to load a file from hdfs using the below commands, I am getting the below error:
Any help will be highly appreciated
Basically found a solution to the problem that I stated above.
Below is the entire modified function:
Hope this helps and don't forget to give points if you find it useful. Thanks ahead