【问题标题】:Oozie Xml Workflow Schema Validation errorOozie Xml 工作流模式验证错误
【发布时间】:2016-05-27 12:36:49
【问题描述】:

当我运行 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的步骤。

【问题讨论】:

    标签: hadoop hbase sqoop oozie


    【解决方案1】:

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

    【讨论】:

      猜你喜欢
      • 2020-03-03
      • 1970-01-01
      • 2017-09-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-01-30
      • 1970-01-01
      相关资源
      最近更新 更多