We have set the env variable at Global Init script as below,
sudo echo DATAENV=DEV >> /etc/environment
and we try to access the variable in notebook that run with "Shared" cluster mode.
import os
print(os.getenv("DATAENV"))
But the env variable is not accessible and getting value as "None".
However, when run the notebook with "No Isolation Shared" cluster, then the env variable is accessed successfully.
Any idea, is there any restriction in accessing environment variables at cluster mode level?