2013-03-21 148 views
1

嗨,我能夠在蜂巢終端運行蜂巢命令,但是當我嘗試通過Oozie的運行它,我無法運行它收到的一些錯誤ANS日誌文件看起來像下面Oozie的蜂巢Hadoop作業

2013-03-21 11:55:48,973 INFO ActionStartXCommand:539 - USER[biadmin] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000005-130314190356094-oozie-biad-W] ACTION[[email protected]] Start action [[email protected]] with user-retry state : userRetryCount [0], userRetryMax [0], userRetryInterval [10] 
2013-03-21 11:55:57,940 WARN HiveActionExecutor:542 - USER[biadmin] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000005-130314190356094-oozie-biad-W] ACTION[[email protected]] credentials is null for the action 
2013-03-21 11:55:57,940 WARN HiveActionExecutor:542 - USER[biadmin] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000005-130314190356094-oozie-biad-W] ACTION[[email protected]] Could not find credentials properties for: null 
2013-03-21 11:56:04,940 INFO HiveActionExecutor:539 - USER[biadmin] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000005-130314190356094-oozie-biad-W] ACTION[[email protected]] checking action, external ID [job_201303141654_0020] status [RUNNING] 
2013-03-21 11:56:04,955 WARN ActionStartXCommand:542 - USER[biadmin] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000005-130314190356094-oozie-biad-W] ACTION[[email protected]] [***[email protected]***]Action status=RUNNING 
2013-03-21 11:56:05,334 WARN ActionStartXCommand:542 - USER[biadmin] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000005-130314190356094-oozie-biad-W] ACTION[[email protected]] [***[email protected]***]Action updated in DB! 
2013-03-21 11:56:33,520 INFO CallbackServlet:539 - USER[-] GROUP[-] TOKEN[-] APP[-] JOB[0000005-130314190356094-oozie-biad-W] ACTION[[email protected]] callback for action [[email protected]] 
2013-03-21 11:56:34,214 INFO HiveActionExecutor:539 - USER[biadmin] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000005-130314190356094-oozie-biad-W] ACTION[[email protected]] action completed, external ID [job_201303141654_0020] 
2013-03-21 11:56:34,365 WARN HiveActionExecutor:542 - USER[biadmin] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000005-130314190356094-oozie-biad-W] ACTION[[email protected]] Launcher ERROR, reason: Main class [org.apache.oozie.action.hadoop.HiveMain], exit code [10] 
2013-03-21 11:56:35,059 INFO ActionEndXCommand:539 - USER[biadmin] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000005-130314190356094-oozie-biad-W] ACTION[[email protected]] ERROR is considered as FAILED for SLA 
2013-03-21 11:56:35,364 WARN CoordActionUpdateXCommand:542 - USER[biadmin] GROUP[-] TOKEN[] APP[hive-wf] JOB[0000005-130314190356094-oozie-biad-W] ACTION[-] E1100: Command precondition does not hold before execution, [, coord action is null], Error Code: E1100 

回答

1

這看起來像Oozie作業日誌,它往往不能提供足夠的信息來找到問題的根源。您應該查看地圖縮小作業的任務日誌。找到它的最簡單的方法是去Oozie的Web控制檯(即http://example.example.com:11000/oozie/),對有問題的Oozie的工作雙擊打開它的工作方式,對失敗的蜂巢行動作業信息選項卡中雙擊。在進入選項卡的操作中應該有一個控制檯URL字段。打開該地址並單擊鏈接以查找有關任務的更多信息(甚至成功的任務,因爲oozie可以吞併配置單元失敗並向任務跟蹤器報告成功。根據我的經驗,有用的日誌一直處於成功的映射任務中)。看看日誌,希望但不一定,你會發現一些東西會從「蜂巢失敗」中縮小。

這不是真正的問題的答案,因此,如果有人想張貼此作爲註釋和標記這個答案刪除,請做。

0

錯誤是由Oozie的,工作流程並沒有通過協調即啓動,但如果你用root用戶啓動了Oozie停止服務並重新啓動與您安裝了Oozie用戶Oozie的。現在重新運行工作流程。

這將解決您的問題!

0

上面的錯誤是因爲,你使用Hadoop和配置單元的版本不匹配。要清除此錯誤,請使用所需版本重新生成oozie。 要使用所需版本重新編譯oozie,請在OOZIE_HOME中編輯pom.xml文件。

<hadoop.version>x.x.x</hadoop.version> 
<hive.version>0.x.x</hive.version> 
<pig.version>0.x.x</pig.version> 

編輯pom文件後,運行OOZIE_HOME/bin/mkdistro.sh -DskipTests。