Created
February 4, 2020 05:46
-
-
Save andizzle/b8f3f098c59cb120b36553d73a30aa63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -x | |
ARGS=$(ls /etc/spark/conf | grep -v "[a-z]") | |
for i in ${ARGS} | |
do | |
envvar=$(cat "/etc/spark/conf/${i^^}" | tr "-" "_") | |
if [ "${envvar}" != "" ] | |
then | |
export ${i^^}="${envvar}" | |
fi | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment