GitHub user pdion891 opened a pull request: https://github.com/apache/incubator-spot/pull/151
Fix sudo command, add help, fix ShellCheck warnings While testing a test system for Spot, I ran into some issues with `hdfs_setup.sh` script. So here is few fixes: - Fixed command execution using `sudo` - add `-h | --help` params to the script - hive command support sudo - ShellCheck now only warn about the source line. Tested on CentOS7, cloudera 6.0.0 using hive as database. You can merge this pull request into a Git repository by running: $ git pull https://github.com/pdion891/incubator-spot fix-hdfs_setup Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-spot/pull/151.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #151 ---- commit 0f44ace11d6795face01c8ab2f95fb82fd371fbc Author: Pierre-Luc Dion <pdion891@...> Date: 2018-11-17T19:08:56Z fix sudo command, add help, fix ShellCheck warnings ---- ---