E0803:IO错误,无法为输出方法“ xml”加载属性文件“ output_xml.properties”(检查CLASSPATH)

时间:2018-12-04 05:48:47

标签: hadoop bigdata sqoop oozie oozie-workflow

我正在尝试使用Apache oozie创建一个sqoop工作流,但是当我执行脚本时,出现以下错误:

Caused by: com.sun.org.apache.xml.internal.serializer.utils.WrappedRuntimeException: Could not load the propery file 'output_xml.properties' for output method 'xml' (check CLASSPATH)

当我检查日志时,它说错误是由:

引起的
Caused by:com.sun.org.apache.xml.internal.serializer.utils.WrappedRuntimeException: Could not load the propery file 'output_xml.properties' for output method 'xml' (check CLASSPATH)

Workflow.xml

<?xml version="1.0" encoding="UTF-8"?>
<workflow-app xmlns="uri:oozie:workflow:0.2" name="sqoop-wf">
<start to="sqoop-node" />
<action name="sqoop-node">
<sqoop xmlns="uri:oozie:sqoop-action:0.2">
       <job-tracker>${jobTracker}</job-tracker>
    <name-node>${nameNode}</name-node>
    <job-xml>sqoop-site.xml</job-xml>
    <configuration>
        <property>
            <name>mapred.compress.map.output</name>
            <value>true</value>
        </property>
        <property>
            <name>mapred.job.queue.name</name>
                <value>${queueName}</value>
        </property>
    </configuration>
    <command>import --libjars /usr/lib/sqoop/mysql-connector-java-5.1.30-bin.jar --driver com.mysql.jdbc.Driver --connect "jdbc:mysql://mydatabase_Name.rds.amazonaws.com:3306/DB_NAME" --username NAGESHC --password nagesh@1234 --table TABLE_FIN --target-dir /user/hive/ooziesqoop -m 1 </command>
    <file>/usr/lib/sqoop/mysql-connector-java-5.1.30-bin.jar</file>
 </sqoop>
  <ok to="end"/>
  <error to="fail"/>
 </action>
 <kill name="fail">
     <message>Sqoop failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
</kill>

Job.properties

nameNode=hdfs://ip-xxxxxxxxxxx.compute.internal:8020
jobTracker=ip-xxxxxxxxxxx.compute.internal:8032
queueName=default
oozie.wf.application.path=hdfs://ip- 
xxxxxxxxxxx.compute.internal:8020/user/oozie/workflow.xml
outputDir=distcp
oozie.use.system.libpath=true
oozie.libpath=${nameNode}/user/oozie/

我正在使用以下命令执行脚本:

  

oozie作业-oozie http://ip-xxxxxxxxxxx.compute.internal:11000/oozie -config /home/job.properties-提交

我猜它与CLASSPATH有关吗?

0 个答案:

没有答案