Hearen / HadoopInitializer

Using pure shell to configure hadoop 2.7.1 environment in CentOS 7.1 cluster
GNU General Public License v3.0
1 stars 0 forks source link

the working directory should be handled properly to enable the tools/scripts to work #16

Closed Hearen closed 7 years ago

Hearen commented 7 years ago

currently I am trying to utilize pwd to retrieve the absolute directory to execute the tools/scripts but it's quite ugly and easy to crash

Hearen commented 7 years ago

utilize a specialized script to handle this specifically but still it's limited to only the current case - the parent directory and the tools.

Hearen commented 7 years ago

substring in shell: http://landoflinux.com/linux_bash_scripting_substring_tests.html

Hearen commented 7 years ago

using the absolute path can nicely handle this issue - check conf_loader.sh