cannot set niceness : Permission denied

tried to run hadoop several times, which always throw out an exception

localhost: nice: cannot set niceness: Permission denied

checking jps, the only brought up nameNode and resourceManager.

Tried several approaches on set niceness with no avail. somehow actually calling the daemon to start the datanode directly works. (event the permission denied still exist.)

lwpro2@DESKTOP-G92MK3N:~/hadoop/hadoop-2.9.1$ sbin/ start datanode
starting datanode, logging to /home/lwpro2/hadoop/hadoop-2.9.1/logs/hadoop-lwpro2-datanode-DESKTOP-.out
nice: cannot set niceness: Permission denied


SSH on Windows 10 Subsystem

Been cost me quite sometime to set up ssh on ubuntu (within windows 10), turns out the .ssh directory and authorized_keys file permissions needs to be corrected:

chmod 700 ~/.ssh
chmod 600 ~/.ssh/authorized_keys