[pig] encountered errors at the first time
来源:互联网 发布:网络奇兵1游侠 编辑:程序博客网 时间:2024/06/11 18:39
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 byperformance 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.pigor$ pig -stop_on_failure myscript.pig
2. UnknownHostException
Failed Jobs:JobId Alias Feature Message OutputsN/A A,B MAP_ONLY Message: java.net.UnknownHostException: sonora.peking.corp.com: sonora.peking.corp.comCaused 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
- [pig] encountered errors at the first time
- The First Pig Task
- ssh encountered 1 errors during the transfer
- Encountered 1 errors during the transfer
- Encountered 1 errors during the transfer
- ssh: encountered 1 errors during the transfer
- encountered 1 errors during the transfer
- Encountered 1 errors during the transfer
- 出现 encountered * errors during the transfer 错误
- Encountered 1 errors during the transfer
- SSH encountered 1 errors during the transfer
- For the first time!
- the first time
- The first time using
- The first time
- The first time
- the first time
- the first time
- LOCAL_SHARED_LIBRARIES 与 LOCAL_LDLIBS,LOCAL_LDFLAGS的区别
- Ubuntu下的计划任务 -- cron的基本知识
- 进程间共享内存
- POJ 1260 Pearls (基础DP)
- EF提供的三种查询方式
- [pig] encountered errors at the first time
- Pro Android学习笔记(四七):Dialog(4):一些补充和思考
- IUnKNown接口——QueryInterface函数
- Spring mvc中log4j的配置与使用
- JNI调用
- win7计算机管理 资源管理器停止工作
- 测试SQLPLUS的ARRAYSIZE对性能的影响
- asp.net页面处理流程 - 处理 PostBack回来的数据 - LoadAllState 和 ProcessPostData
- 排序算法总结