You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Albert Sunwoo (JIRA)" <ji...@apache.org> on 2011/06/01 23:38:47 UTC

[jira] [Created] (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

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

[jira] [Commented] (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

Posted by "Dmitriy V. Ryaboy (JIRA)" <ji...@apache.org>.
    [ 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