escheduler_env.py 368 B

123456789101112
  1. import os
  2. HADOOP_HOME="/opt/soft/hadoop"
  3. SPARK_HOME1="/opt/soft/spark1"
  4. SPARK_HOME2="/opt/soft/spark2"
  5. PYTHON_HOME="/opt/soft/python"
  6. JAVA_HOME="/opt/soft/java"
  7. HIVE_HOME="/opt/soft/hive"
  8. PATH=os.environ['PATH']
  9. PATH="%s/bin:%s/bin:%s/bin:%s/bin:%s/bin:%s/bin:%s"%(HIVE_HOME,HADOOP_HOME,SPARK_HOME1,SPARK_HOME2,JAVA_HOME,PYTHON_HOME,PATH)
  10. os.putenv('PATH','%s'%PATH)