tools/bdconfig/lib/google_hadoop/bdconfig_lib/config_commands.py
def _UpdateHadoopEnv(self):
    """Updates hadoop-env.sh file by adding necessary exports."""
    path = os.path.join(self._flags.hadoop_conf_dir, 'hadoop-env.sh')

    exports = 'export JAVA_HOME="{0}"'.format(self._flags.java_home)
    AddLineToFile(path, exports, self._flags.dry_run)
Updates hadoop-env.sh file by adding necessary exports.
Updates hadoop-env.sh file by adding necessary exports.
Updates hadoop - env . sh file by adding necessary exports .
def _UpdateHadoopEnv(self):
    path = os.path.join(self._flags.hadoop_conf_dir, 'hadoop-env.sh')
    exports = 'export JAVA_HOME="{0}"'.format(self._flags.java_home)
    AddLineToFile(path, exports, self._flags.dry_run)
def _UpdateHadoopEnv ( self ) : path = os . path . join ( self . _flags . hadoop_conf_dir , 'hadoop-env.sh' ) exports = 'export JAVA_HOME="{0}"' . format ( self . _flags . java_home ) AddLineToFile ( path , exports , self . _flags . dry_run )
Updates hadoop-env.sh file by adding necessary exports.
Updates hadoop - env . sh file by adding necessary exports .
"""Updates hadoop-env.sh file by adding necessary exports."""
self