def is_local(self, hadoop_conf=None, hadoop_home=None):
conf = self.hadoop_params(hadoop_conf, hadoop_home)<EOL>keys = ('<STR_LIT>',<EOL>'<STR_LIT>',<EOL>'<STR_LIT>')<EOL>for k in keys:<EOL><INDENT>if conf.get(k, '<STR_LIT>').lower() != '<STR_LIT>':<EOL><INDENT>return False<EOL><DEDENT><DEDENT>return True<EOL>
\
        Is Hadoop configured to run in local mode?

        By default, it is. [pseudo-]distributed mode must be
        explicitly configured.