Uploaded image for project: 'Falcon'
  1. Falcon
  2. FALCON-1787

Ooozie pig-action.xml requires hive sharelib for HCatalog use

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.6.1
    • 0.10
    • oozie
    • None
    • HDP-2.3.2.0-2950
      Pig 0.15.0.2.3
      Hive 1.2.1.2.3
      Oozie 4.2.0.2.3
      Falcon 0.6.1.2.3

    Description

      I have a Pig script that I am using as the workflow for my Falcon process. The pig script uses HCatalogStorer to write to a HCatalog URI that is the output feed defined in my Falcon Process Entity. The Pig action in the resulting Ooozie Workflow generated by Falcon fails with the attached stack trace. The root is that it is missing a class definitions of org/apache/hadoop/hive/shims/ShimLoader.

      Running the script manually using pig -x tex -useHCatalog <all the -params passed by Oozie> <path to pig script> results in a successful execution. It's only once this is called as a Pig activity in the Falcon-generated Oozie workflow that the missing class definitions manifests.

      After some investigation I found that the Oozie workflow.xml is missing a required sharelib decleration.

      From the workflow.xml generated by Falcon:
      <property>
      <name>oozie.action.sharelib.for.pig</name>
      <value>pig,hcatalog</value>
      </property>

      If I modify the value to include hive sharelib then the Pig action succeeds and does not throw a missing class definition error.

      Modified workflow.xml property (works):
      <property>
      <name>oozie.action.sharelib.for.pig</name>
      <value>hive,pig,hcatalog</value>
      </property>

      Attachments

        1. Workflow Pig Action Configuration.txt
          2 kB
          Mark Greene
        2. Workflow Job Configuration.txt
          7 kB
          Mark Greene
        3. Stack Trace.txt
          7 kB
          Mark Greene
        4. prf_of_dlvr_lz_to_cz.pig
          0.2 kB
          Mark Greene
        5. FALCON-1787.V0.patch
          0.6 kB
          Sowmya Ramesh
        6. EDL-COMMON-PRF-OF-DLVR-LOAD.xml
          0.9 kB
          Mark Greene
        7. EDL-COMMON-LOAD-DLVR-RCPT.xml
          1 kB
          Mark Greene
        8. EDL-COMMON-CERTIFIED-PRF-OF-DLVR.xml
          0.8 kB
          Mark Greene

        Activity

          People

            sowmyaramesh Sowmya Ramesh
            markgreene Mark Greene
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: