[pig] encountered errors at the first time
2013-10-30 12:19
288 查看
1. Error Handling : -stop_on_failure
Ooops! Some job has failed! Specify -stop_on_failure if you want Pig to stop immediately on failure.
[This option is recommended by
performance and Efficiency in http://pig.apache.org/docs/r0.9.1/perf.html ]
With multi-query execution Pig processes an entire script or a batch of statements at once. By default Pig tries to run all the jobs that result from that, regardless of whether some jobs fail during execution. To check which jobs have succeeded or failed
use one of these options.
First, Pig logs all successful and failed store commands. Store commands are identified by output path. At the end of execution a summary line indicates success, partial failure or failure of all store commands.
Second, Pig returns different code upon completion for these scenarios:
Return code 0: All jobs succeeded
Return code 1: Used for retrievable errors
Return code 2: All jobs have failed
Return code 3: Some jobs have failed
In some cases it might be desirable to fail the entire script upon detecting the first failed job. This can be achieved with the "-F" or "-stop_on_failure" command line flag. If used, Pig will stop execution when the first failed job is detected and discontinue
further processing. This also means that file commands that come after a failed store in the script will not be executed (this can be used to create "done" files).
This is how the flag is used:
$ pig -F myscript.pig or $ pig -stop_on_failure myscript.pig
2. UnknownHostException
Failed Jobs: JobId Alias Feature Message Outputs N/A A,B MAP_ONLY Message: java.net.UnknownHostException: sonora.peking.corp.com: sonora.peking.corp.com Caused by: java.net.UnknownHostException: sonora.peking.corp.com
Solution:
add the hostname: sonora.peking.corp.com to your host's configuration file: /etc/hosts
127.0.0.1 localhost sonora.peking.corp.com
相关文章推荐
- Cannot update paths and switch to branch 'snapshot_mixuse' at the same time.
- cpan安装报错Invalid host name on line 1 at *FirstTime.pm line 1857.
- Secure File Transfer Client错误提示 "encountered 1 errors during the transfer"
- Our 6 Must Reads for First-Time Managers to Hit the Ground Running
- Encountered 1 errors during the transfer
- Part 50 - Detect errors in views at compile time
- How can a database be in-memory and durable at the same time?
- A First Look at the Android Testing Framework
- The operation overflows at compile time in checked mode
- Failed to load JavaHL Library. These are the errors that were encountered:
- Love at the First Sight – 浅谈手机产品设计中的用户教育
- kubuntu之another application seems to be using the package system at this time问题即muon无法安装更新的问题
- Get the Degree of Angle Between Hour and Minute Hand of a Clock at Anytime
- Could I use NEON and VFP at the same time in my application?
- the first time
- Liferay 6.0 R2 run log at first time
- URAL 2046 The First Day at School(模拟)
- Android ndk 编译出现'Build Project' has encountered a problem.Errors occurred during the build
- Failed to load JavaHL Library. These are the errors that were encountered: n
- Failed to load JavaHL Library. These are the errors that were encountered: