If HDFS umask (fs.permissions.umask-mode) has limited scope say 077 then file/dir permission will not be wider than 700. HDFS client has to set permission explicitly if required.
During SecureBulkLoadEndpoint CP start, RegionServer creates (if not exist) the staging directory with the specified permission and later throws IllegalStateException if staging directory permission is not set to 711.
HBASE-17861, we are setting staging dir permission explicitly only when it exist. In case of fresh cluster startup staging dir permission wont be 711 when umask defined as 077 which cause RS to abort.
We should set permission explicitly to 711 after staging directory creation.