Results 1 to 1 of 1

Thread: How to integrate Spring with Pig using xml file?

  1. #1
    Join Date
    Mar 2013
    Posts
    1

    Default How to integrate Spring with Pig using xml file?

    Hi,
    I recently tried to run pig job from context.xml as i am integrating pig with spring. But i couldnt resolve <hdp : pig-factory> and <hdp : pig-runner> . I have attached the png file below showing my configuration. Please advice. Thanks

    My context.xml file is as follows,
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xmlns:hdp="http://www.springframework.org/schema/hadoop"
    xmlns:context="http://www.springframework.org/schema/context"
    xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schem...ring-beans.xsd
    http://www.springframework.org/schema/hadoop http://www.springframework.org/schem...ing-hadoop.xsd
    http://www.springframework.org/schema/context http://www.springframework.org/schem...ng-context.xsd
    http://www.springframework.org/schema/hadoop http://www.springframework.org/schema/hadoop/spring-hadoop.xsd">

    <context: property-placeholder location="hadoop.properties" />

    <hdp:configuration>
    fs.default.name=${hd.fs}
    </hdp:configuration>

    <hdp : pig properties-location="pig-server.properties" exec-type="MAPREDUCE" />

    <hdp: pig-factory exec-type="LOCAL" job-name="pig-script" configuration-ref="hadoopConfiguration"
    properties-location="pig-server.properties" xmlns="http://www.springframework.org/schema/hadoop">
    source=${pig.script.src}
    <hdp:script location="src/main/resources/ixp.pig">
    <arguments>electric=sea</arguments>
    </hdp:script>
    </hdp: pig-factory>

    </beans>

    Regards,
    George
    Attached Images Attached Images
    Last edited by GeorgeJ; Mar 5th, 2013 at 11:42 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •