def _update_spark_env(self):
        conf_file = os.path.join(self.get_path(), 'resources', 'spark', 'conf',
                                 'spark-env.sh')
        env = self.get_env()
        content = []
        with open(conf_file, 'r') as f:
            for line in f.readlines():
                for spark_var in env.keys():
                    if line.startswith(spark_var % 'export %s='):
                        line = 'export %s=%s' % (spark_var, env[spark_var])
                        break
                content.append(line)

        with open(conf_file, 'w') as f:
            f.writelines(content)
dataset/ETHPy150Open pcmanus/ccm/ccmlib/dse_node.py/DseNode._update_spark_env/swapped operands of `%`