Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当多个进程尝试同时写入同一个文件时会发生什么?甚至可能吗?是否有某种缓冲?
hadoop fs -put通过 API 将文件写入 HDFS 是原子的。一次写入将失败,因为该文件已经存在,而另一次将写出其内容。
hadoop fs -put