Skip to content
Snippets Groups Projects
Commit 5f7e44cc authored by Tingyin Ding's avatar Tingyin Ding
Browse files

Fix bugs

parent b5b812d0
No related branches found
No related tags found
No related merge requests found
......@@ -439,6 +439,12 @@ func (rm *ResourceManager) processJuiceJob(job Job) error {
// Step 6: integrate the results and write into sdfs
// Put the results into sdfs
filename := IntermediateFileDir + job.DestFile
f, err := os.OpenFile(filename, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
log.Println(rm.logFlag, "processJuiceJob", "Fail to open local", job.DestFile, err)
return err
}
defer f.Close()
err = rm.sdfs.Put(filename, job.DestFile)
if err != nil {
log.Println(rm.logFlag, "processJuiceJob", "Fail to put file into sdfs", err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment