I am trying to export a folder from my local file system to hdfs . I am running code through R . How may I be able to do it?
Hope for suggestions
I am trying to export a folder from my local file system to hdfs . I am running code through R . How may I be able to do it?
Hope for suggestions
You should use the system
command to do that easily:
system("hadoop fs -put /path/to/file /path/in/hdfs")
You can also use the rhdfs project, particularly the functions hdfs.write
or hdfs.copy
which should do the same.