-
Notifications
You must be signed in to change notification settings - Fork 52
Description
Hello, we have a setup in our data center that requires both MAGPIE_HOSTNAME_CMD and MAGPIE_NO_LOCAL_DIR to be used. However, the no-local-dir patches use myhostname=`hostname`, so they do not respect MAGPIE_HOSTNAME_CMD or MAGPIE_HOSTNAME_CMD_MAP. As a result, there is a mismatch between the config file directories used by Magpie and the ones that e.g. Hadoop or Spark recognize.
I'm willing to contribute a PR to fix this, though I'm not 100% sure what the best approach is. For Hadoop, I think we could add a magpie_hostname to the hadoop-user-functions.sh and use that for setting myhostname in all the setup scripts. For other software (taking Spark as example), I think we can add MAGPIE_HOSTNAME_CMD and MAGPIE_HOSTNAME_CMD_MAP to spark-env.sh, and add a magpie_hostname function to each of the setup scripts.
Does that approach make sense to you, @chu11? And if so, would you like me to draft a PR implementing this?