Created 02-25-2016 07:53 AM
Hi ,
Please help on the text file to parquet file conversion using pig.
Got this syntax.
store A into '/test-warehouse/tinytable' USING parquet.pig.ParquetStorer; using this am getting error. whether text file has to be loaded first into alias A. and then run the above store command. "/test-warehouse/tinytable" - this path is parquet file put path ?
Created 02-25-2016 08:02 AM
@prakash pal I am assuming that you are using CDH or following this
A --> You are loading text file using parquet.pig.ParquetLoader
now, storing A as paruqet using parquet.pig.ParquetStorer
Answer: You will load text file=A
and then store A as parquet
Created 02-25-2016 08:02 AM
@prakash pal I am assuming that you are using CDH or following this
A --> You are loading text file using parquet.pig.ParquetLoader
now, storing A as paruqet using parquet.pig.ParquetStorer
Answer: You will load text file=A
and then store A as parquet
Created 02-25-2016 08:04 AM
Created 02-25-2016 09:11 AM
Thanks Neeraj for reply. It worked after syntactical changes. I loaded using PigStorage and stored using parquet.pig.ParquetStorer. Hope this is correct.
And original file is created as /user/folder/pig_file_par/part-m-00000.parquet.
Created 02-26-2016 01:09 AM
@prakash pal Perfect! Please close the thread by accepting the answer.