2013-12-12 82 views

回答

1

默认情况下,Hive将其日志存储在/tmp/currentuser位置。在Unix/Linux提示符下使用hive命令调用Hive shell时,Hive会在显示Hive提示符之前使用行Hive history file=location of the log显示日志的位置。下面的实施例输出被示出:

[[email protected] root]# hive
Logging initialized using configuration in jar:file:/usr/lib/hive/lib/hive-common-0.10.0-cdh4.4.0.jar!/hive-log4j.properties
Hive history file=/tmp/root/hive_job_log_46a27ee2-7ac1-43f5-a66b-20d6ea982421_849420221.txt
hive>

如果蜂房查询生成MapReduce工作,这些日志可通过JobTracker的网页,其中是通过浏览器访问的观看。

日志的路径为:
Mapper logs: Job Tracker Page -> Completed Jobs -> Jobid -> map -> task id -> Task Logs
Reducer logs: Job Tracker Page -> Completed Jobs -> Jobid -> reduce -> task id -> Task Logs