运行oozie工作流时的connectionexception

rkttyhzu  于 2021-05-29  发布在  Hadoop
关注(0)|答案(0)|浏览(265)

当尝试用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)

我可以使用命令行cli运行这里使用的jar yarn 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.

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题