我正在尝试运行我的第一个Hive查询,它可以启动map-reduce作业。我已经按照"http://doc.mapr.com/display/MapR/Hive"中给出的所有步骤进行操作。
"web_log"表已装箱,数据加载已完成,没有错误。但是当尝试执行"选择web_log。从web_log web_log.url 喜欢"%doc"*"的地方,我得到了以下异常。
Number of reduce tasks is set to 0 since there's no reduce operator Starting Job = job_1429420954627_0002,
Tracking URL = http://yarn-training:8088/proxy/application_1429420954627_0002/
Kill Command = /opt/mapr/bin/hadoop job -kill job_1429420954627_0002 Hadoop job information for Stage-1: number of mappers: 0; number of reducers: 0 2015-04-19 00:19:15,690 Stage-1 map = 0%, reduce = 0% Ended Job = job_1429420954627_0002 with errors Error during job, obtaining debugging information... FAILED:
Hi
有人可以指导我吗?
您的化简器数量 = 0,因为您的作业是仅映射作业。现在这是你的查询吗?我认为您的选择语句缺少一些东西。
SELECT web_log.* FROM web_log WHERE web_log.url LIKE '%doc';