Why System command does not work in Rstudio?

I am trying to merge some .csv files with the hdfs dfs -getmerge /path/folderfile filename.csv command. If I run this command from a terminal, from rstudio's internal terminal or in R, it works fine. If I execute the same command through Rstudio using system("hdfs dfs -getmerge /path/folderfile /destinationpath/filename.csv") it returns the following error:

sh: hdfs: command not found
Warning message:
In system("hdfs dfs -getmerge /path/folderfile /destinationpath/filename.csv") :
  error in running command

Thanks for suggestions

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.