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

Persisting to hbase via pig using org.apache.pig.backend.hadoop.hbase.HBaseStorage when originating for a delimited text file does not work

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.8.1
    • None
    • None

    Description

      Using hbase table created via shell:
      create 'hbase_test', 'cf'

      The following pig example could not persist to hbase_test:

      FIELDS_FROM_FILE = LOAD '/<some dir>/data-00000' USING PigStorage('\u0001') AS (
      field1:long,
      field2:chararray
      );

      HBASE_FIELDS = FOREACH FIELDS_FROM_FILE GENERATE field1 as field1, field2 as field2;

      STORE HBASE_FIELDS into 'hbase_test' USING org.apache.pig.backend.hadoop.hbase.HBaseStorage('cf:field2');

      Attachments

        Activity

          People

            Unassigned Unassigned
            asunwoo Albert Sunwoo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: