1. When running the sh-scripts hadoop, they always ask me for the root password (I did not perform any manipulations with the rights). This is stressful, because you have to enter it 3-5 times. Can I fix this somehow?

  2. It turns out that I can run the sh-script as sh <scriptName> , and I can simply <scriptName> . What is the difference?

    1 answer 1

    1. Probably, in the script itself there are several calls of commands that require rights higher than that of the current user. Try running the entire script as sudo scriptname as sudo scriptname .
    2. The difference in the command interpreter that will be used to execute script commands. There are several of them (sh, bash, csh, etc.), and the implementation is slightly different.