运行Oozie工作流时的ConnectionException

时间:2016-01-29 12:01:14

标签: hadoop oozie cascading connectionexception

尝试使用Java操作运行Oozie工作流时,出现以下错误。

JA006: Call From sandbox.hortonworks.com/10.0.2.15 to sandbox.hortonworks.com:10020 failed 
on connection exception: java.net.ConnectException: Connection refused; 
For more details see: http://wiki.apache.org/hadoop/ConnectionRefused

这是workflow.xml

<workflow-app name="cascading-wordcount" xmlns="uri:oozie:workflow:0.4">
<start to="wordcount_job"/>
<action name="wordcount_job">
    <java>
        <job-tracker>${jobTracker}</job-tracker>
        <name-node>${nameNode}</name-node>
        <configuration>
            <property>
                <name>jobTracker</name>
                <value>sandbox.hortonworks.com:8050</value>
            </property>
        </configuration>
        <main-class>com.test.cascading.WordCount</main-class>
        <arg>/user/hue/oozie/test/cascading-in/rain.txt</arg>
        <arg>/user/hue/oozie/test/cascading-out</arg>
        <capture-output/>
    </java>
    <ok to="end"/>
    <error to="kill"/>
</action>
<kill name="kill">
    <message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>
<end name="end"/>

我甚至无法查看与工作相关的日志。当我尝试时,它给出了

Could not find job job_1453962161829_0005.
Job job_1453962161829_0005 could not be found: HTTPConnectionPool(host='sandbox.hortonworks.com', port=19888): Max retries exceeded with url: /ws/v1/history/mapreduce/jobs/job_1453962161829_0005 (Caused by <class 'socket.error'>: [Errno 111] Connection refused)

我可以使用命令yarn jar使用CLI运行此处使用的相同jar。我是这些的新手。我担心我可能犯了一个愚蠢的错误。

修改

这是我在尝试通过CLI查看日志时得到的内容,如snies所说。

impl.TimelineClientImpl: Timeline service address: http://sandbox.hortonworks.com:8188/ws/v1/timeline/
client.RMProxy: Connecting to ResourceManager at sandbox.hortonworks.com/10.0.2.15:8050
/app-logs/root/logs/application_1453962161829_0005 does not exist.
Log aggregation has not completed or is not enabled.

0 个答案:

没有答案