Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-2054

Need to clarify globbing on command line vs in load statement

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.9.0
    • documentation
    • None
    • Reviewed

    Description

      We had several user reports saying that "globbing in Pig and Hadoop are not the same". They based this assertion on the fact that some patterns work from hadoop command line but would not work in Pig load statement.

      Pig uses Hadoop globbing so the functionality is identical; however, when you run on command line, shell can be doing some of the substitution giving impression that things are different.

      Example:

      hadoop fs -ls /mydata/20110423{00,01,02,03,04,05,06,07,08,09,{10..23}}00//part - this works
      LOAD '/mydata/20110423{00,01,02,03,04,05,06,07,08,09,{10..23}}00//part' - this does not

      We should add a note to the description of globbing

      Attachments

        Activity

          People

            chandec Corinne Chandel
            olgan Olga Natkovich
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: