Grokbase Groups Pig dev June 2011
FAQ
Persisting to hbase via pig using org.apache.pig.backend.hadoop.hbase.HBaseStorage when originating for a delimited text file does not work
-------------------------------------------------------------------------------------------------------------------------------------------

Key: PIG-2105
URL: https://issues.apache.org/jira/browse/PIG-2105
Project: Pig
Issue Type: Bug
Affects Versions: 0.8.1
Reporter: Albert Sunwoo


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');

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Search Discussions

  • Dmitriy V. Ryaboy (JIRA) at Jun 6, 2011 at 12:04 am
    [ https://issues.apache.org/jira/browse/PIG-2105?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044655#comment-13044655 ]

    Dmitriy V. Ryaboy commented on PIG-2105:
    ----------------------------------------

    Could you provide some more info, such as error logs, etc?
    Are you sure your configuration is correct?
    Persisting to hbase via pig using org.apache.pig.backend.hadoop.hbase.HBaseStorage when originating for a delimited text file does not work
    -------------------------------------------------------------------------------------------------------------------------------------------

    Key: PIG-2105
    URL: https://issues.apache.org/jira/browse/PIG-2105
    Project: Pig
    Issue Type: Bug
    Affects Versions: 0.8.1
    Reporter: Albert Sunwoo

    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');
    --
    This message is automatically generated by JIRA.
    For more information on JIRA, see: http://www.atlassian.com/software/jira

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupdev @
categoriespig, hadoop
postedJun 1, '11 at 9:39p
activeJun 6, '11 at 12:04a
posts2
users1
websitepig.apache.org

1 user in discussion

Dmitriy V. Ryaboy (JIRA): 2 posts

People

Translate

site design / logo © 2022 Grokbase