Question: can hadoop run on mac?
Answer: install hadoop with the command, $brew install hadoop.
Inside the folder usr/local/Cellar/hadoop/3.1.0/libexec/etc/hadoop and added the commands in the file hadoop-env.sh ,