Re: How to store data into hbase by using Pig

2011-04-27 Thread Dmitriy Ryaboy
1) 2011-04-27 10:29:32,953 [main] INFO org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher - HadoopJobId: job_201104251150_0071 2011-04-27 10:29:32,954 [main] INFO org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher - More information at: http

Re: How to store data into hbase by using Pig

2011-04-27 Thread byambajargal
Hello I am using pig version pig 0.8.0 A = load '/passwd' using PigStorage(':');B = foreach A generate $0 as id, $2 as value;dump B; the result of first part is here: (twilli,6259) (saamodt,6260) (hailu268,6261) (oddsen,6262) (neuhaus,6263) (zoila,6264) (elinmn,6265) (diego,6266) (fsudmann,626

Re: How to store data into hbase by using Pig

2011-04-26 Thread Bill Graham
What version of Pig are you running and what errors are you seeing on the task trackers? On Tue, Apr 26, 2011 at 4:46 AM, byambajargal wrote: > Hello ... > I have a question for you > > I am doing a pig job as following that read from hdfs simply to store hbase > when i start the job first part w

Re: How to store data into hbase by using Pig

2011-04-26 Thread byambajargal
Hello ... I have a question for you I am doing a pig job as following that read from hdfs simply to store hbase when i start the job first part works fine and second part was failure. Could you give me a direction how to move data from hdfs to Hbase A = load '/passwd' using PigStorage(':');B =

Re: How to store data into hbase by using Pig

2011-04-26 Thread byambajargal
I have just remove 'hbase://' from the second part it works fine thanks byambajargal On 4/25/11 18:26, Dmitriy Ryaboy wrote: The first element of the relation you store must be the row key. You aren't loading the row key, so load> store isn't working. Try my_data = LOAD 'hbase://table1' usin

Re: How to store data into hbase by using Pig

2011-04-26 Thread byambajargal
Thank you Dmitriy i have tried as you said my_data = LOAD 'hbase://table1' using org.apache.pig.backend.hadoop.hbase.HBaseStorage('cf:1', '-loadKey') ; store my_data into 'hbase://table2' using org.apache.pig.backend.hadoop.hbase.HBaseStorage('cf:1','-loadKey'); the first part of relation

Re: How to store data into hbase by using Pig

2011-04-25 Thread Dmitriy Ryaboy
The first element of the relation you store must be the row key. You aren't loading the row key, so load > store isn't working. Try my_data = LOAD 'hbase://table1' using org.apache.pig.backend.hadoop.hbase.HBaseStorage('cf:1', '-loadKey') ; On Mon, Apr 25, 2011 at 5:32 AM, byambajargal wrote: > >