我是 R 语言的新手。我正在用 R 在 spark 中编写程序。我想将输出保存到 hdfs 路径。我尝试了该sink
方法
sink("/user/new/output/test.txt")
但它会引发错误。任何帮助将不胜感激。
确切的错误信息是
error in file(file, ifelse(append, "a", "w")) :
cannot open the connection
Calls: sink -> file
In addition: Warning message:
In file(file, ifelse(append, "a", "w")) :
cannot open file '/user/new/output/text.txt': No such file or directory
Execution halted