
## File could not be replicated

message:

15/08/04 14:22:15 INFO mapreduce.JobSubmitter: Cleaning up the staging area /user/ryba/.staging/job_1438696002584_0015
org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /user/ryba/.staging/job_1438696002584_0015/job.jar could only be replicated to 0 nodes instead of minReplication (=1).  There are 2 datanode(s) running and no node(s) are excluded in this operation.

cause:

HDFS DN saturation, logs were printing [DataXceiver errors](../hdfs_dn/doctor.md).

## Invalid Permissions on Staging Directories

Caused by: org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.AccessControlException): Permission denied: user=ryba, access=WRITE, inode="/user/history/done_intermediate":mapred:hadoop:drwxr-xr-x

Remove the directory and restart the Job History Server. It should the be
created with valid permissions.
