2

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

arsalan.jawed
  • 73
  • 1
  • 1
  • 6

1 Answers1

5

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.

Charles Menguy
  • 40,830
  • 17
  • 95
  • 117