Oozie Xml工作流架构验证错误

时间:2016-05-27 12:36:50

标签: hadoop hbase sqoop oozie

当我运行oozie以安排HBASEsqoop作业增量追加时。

我收到以下错误:

    

<action name="sqoop-import">
    <sqoop xmlns="uri:oozie:sqoop-action:0.2">
        <job-tracker>${jobTracker}</job-tracker>
        <name-node>${nameNode}</name-node>

        <prepare>
            <delete path="${nameNode}/user/${wf:user()}/${examplesRoot}/output-data/sqoop"/>
            <mkdir path="${nameNode}/user/${wf:user()}/${examplesRoot}/output-data"/>
        </prepare>                                                                                                                               
        <configuration>                                                                                                                          
            <property>                                                                                                                           
                <name>mapred.job.queue.name</name>                                                                                               
                <value>${queueName}</value>                                                                                                      
            </property>                                                                                                                          


        </configuration>                                                                                                                         

    <job-xml>/user/root/hbase-site.xml</job-xml>                                                                                                 
       <command>import --connect "jdbc:sqlserver://localhost:1433;database=test" --table test_plan_package --username sa --password pass 
       --incremental append --check-column testid --hbase-table test_plan --column-family testid</command>                            


  <file>/user/root/sqljdbc4.jar#sqljdbc4.jar</file>                                                                                                  
  <file>/user/root/hbase/hbase-client.jar#hbase-client.jar</file>                                                                                    
  <file>/user/root/hbase/hbase-common.jar#hbase-common.jar</file>                                                                                    
  <file>/user/root/hbase/hbase-protocol.jar#hbase/hbase-protocol.jar</file>                                                                          
  <file>/user/root/hbase/htrace-core3.1.0-incubating.jar#htrace-core3.1.0-incubating.jar</file>                                                      
  <file>/user/root/hbase/hbase-server.jar#hbase-server.jar</file>                                                                                    
  <file>/user/root/hbase/hbase-hadoop-compat.jar#hbase-hadoop-compat.jar</file>                                                                      
  <file>/user/root/hbase/high-scale-lib-1.1.1.jar#high-scale-lib-1.1.1.jar</file>   



    </sqoop>                                                                                                                                     
    <ok to="end"/>                                                                                                                               
    <error to="fail"/>                                                                                                                           
</action>                                                                                                                                        

<kill name="fail">                                                                                                                               
    <message>Sqoop failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>                                                       
</kill>                                                                                                                                          
<end name="end"/>                                                                                                                                

我尝试了各种门户网站,并发现问题出在xml架构版本0.2上,需要在workflow.xml中升级到0.4。

任何人都可以向我提供在oozie中将xml版本升级到0.4的步骤。

1 个答案:

答案 0 :(得分:0)

在配置之上修改你的job-xml并且不需要升级到xml 0.2到xml 0.4直接退出0.4,因为在oozie-site.xml中我们有xsd文件,因为Job-xml你得到的错误应该是置于配置之上。 并根据版本检查jar并修改workflow.xml

相关问题