繁体   English   中英

Oozie Xml工作流程架构验证错误

[英]Oozie Xml Workflow Schema Validation error

当我运行oozie为的是调度HBASE通过sqoop就业增量追加。

我收到以下错误:

<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 ,它需要在工作流.xml中升级到0.4。

谁能为我提供在oozie中将xml版本升级到0.4的步骤。

在配置上方修改您的job-xml,无需升级到xml 0.2到xml 0.4,直接退出0.4,因为在oozie-site.xml中,我们有xsd文件,用于获取由于Job-xml而导致的错误应该放在组态。 并根据版本检查罐子并修改workflow.xml

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM