ubuntu - How to view the terminal log when executing a remote Apache Pig script -
i have written script in apache pig being executed on hadoop cluster. loads ~55 thousand of .gz files , takes 35 hours complete. should store results in file, didn't, want debug happened.
i execute script typing:
pig script.pig in terminal of ubuntu virtual machine see information messages progress of job , on. how can view these messages when shutting down local machine? need keep local machine running full 35 hours see these messages?
i know can type command in ubuntu , store response typing:
command > logfile.txt but think won't work here, since connection between hadoop hdfs system , virtual machine lost during shutting down local machine, log messages must stored on hadoop cluster. how achieve this, or done automatically , don't know look?
if run local machine if process gets killed (e.g. shutting down machine) hadoop kill job. that's why you'd want start long running jobs machine in cluster or portal node runs 24/7.
if available you, can use oozie run job, oozie server take care of running job , provide logs.
Comments
Post a Comment