| 56 | } |
| 57 | |
| 58 | Status WriteDummyFile(const std::string& path, const uint8_t* buffer, int64_t size, |
| 59 | bool append = false, int buffer_size = 0, int16_t replication = 0, |
| 60 | int default_block_size = 0) { |
| 61 | std::shared_ptr<HdfsOutputStream> file; |
| 62 | RETURN_NOT_OK(client_->OpenWritable(path, append, buffer_size, replication, |
| 63 | default_block_size, &file)); |
| 64 | |
| 65 | RETURN_NOT_OK(file->Write(buffer, size)); |
| 66 | RETURN_NOT_OK(file->Close()); |
| 67 | |
| 68 | return Status::OK(); |
| 69 | } |
| 70 | |
| 71 | std::string ScratchPath(const std::string& name) { |
| 72 | std::stringstream ss; |
no test coverage detected