单选题
针对每行数据内容为”Timestamp Url”的数据文件,在用JobConf对象conf设置conf.setInputFormat(WhichInputFormat.class)来读取这个文件时,WhichInputFormat应该为以下的()。无
A、
TextInput Format
B、
KeyValue TextInput Format
C、
Sequence FileInput Format
D、
NLineInput Format
【正确答案】
B
【答案解析】
四项主要的InputFormat类。KeyValueTextInputFormat以每行第一个分隔符为界,分隔符前为key,之后为value,默认制表符为\t。
提交答案
关闭