sp_cop failed with error "Could NOT create /splex-xxxxxx - error(Permission denied)" on linux/Unix system
说明
sp_cop fails on linux/Unix system with error Could NOT create /splex-xxxxxx - error(Permission denied)
- exiting
原因
sp_cop is looking for temporary directory to create tmp file on linux/Unix system. As it cannot locate the temp directory, it is trying to create a file under the root directory. It fails because of insufficient privileges.
解决办法
Resolution 1:
Check your env for TMPDIR variable. If its empty or set to a location not accessible by the user, set it to /tmp.
export TMPDIR=/tmp
Run the command env and check whether the value has been changed. Re-start sp_cop.