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