本文整理汇总了Python中tests.mr_word_count.MRWordCount.JOBCONF方法的典型用法代码示例。如果您正苦于以下问题:Python MRWordCount.JOBCONF方法的具体用法?Python MRWordCount.JOBCONF怎么用?Python MRWordCount.JOBCONF使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类tests.mr_word_count.MRWordCount
的用法示例。
在下文中一共展示了MRWordCount.JOBCONF方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_empty_jobconf_values
# 需要导入模块: from tests.mr_word_count import MRWordCount [as 别名]
# 或者: from tests.mr_word_count.MRWordCount import JOBCONF [as 别名]
def test_empty_jobconf_values(self):
# value of None means to omit that jobconf
job = MRWordCount()
# no way to pass in None from the command line
job.JOBCONF = {"foo": "", "bar": None}
with job.make_runner() as runner:
self.assertEqual(runner._hadoop_args_for_step(0), ["-D", "foo="])