Task: To configure spark-defaults.conf and spark-env.sh file on a remote server using WinSCP
Error: Each time I try to commit changes to the file i keep getting the
error "cannot overwrite remote file Permission denied Error code: 3 Error message from server: Permission denied"
In Putty navigate into one directory before the actual directory
Example: I wanted to edit spark-defaults.conf file located in
So what I did was I cd into
Next type the command
sudo chown username:username directoryname -R
example: sudo chown ashish:ashish conf.dist -R
Now go into WinScp and edit the file ..Notice when you save the file the WinScp screen will flash kind off, indicates change has been comitted. you can check the same by opening the concerned file.