How can i dump hbase table in a text file?
-
i need to take a dump of one table in HBase and need it in a text file/csv format? I looked for scan , export and get commands in HBase shell , but it doesnt work . Need help!
-
Answer:
There are a lot of ways to get data out of an HBase table like running the export map/reduce job. You can read about this and other here http://blog.sematext.com/2011/03/11/hbase-backup-options/ If you want to control which rows/cells are written you can do that with http://pig.apache.org/ x = LOAD 'hbase://<sourceDatabaseName>' USING org.apache.pig.backend.hadoop.hbase.HBaseStorage( '<family:qualifier>', '<family:qualifier2>','-loadKey true') AS (ID: bytearray , Value1:chararray , Value2:chararray); STORE x INTO '<destFileName>' USING CSVExcelStorage(['<delimiter>' [,{'YES_MULTILINE' | 'NO_MULTILINE'} [,{'UNIX' | 'WINDOWS' | 'UNCHANGED'}]]]);
visit.paridhi at Stack Overflow Visit the source
Related Q & A:
- How can I lower the resolution on a video I recorded?Best solution by Yahoo! Answers
- How can i export my contacts to a csv file?Best solution by Yahoo! Answers
- How can I get the font size of text in elements within a webpage?Best solution by Stack Overflow
- How can I play my PS3 using a laptop as a monitor?Best solution by Yahoo! Answers
- Why can I only express myself in a text message?Best solution by answers.yahoo.com
Just Added Q & A:
- How many active mobile subscribers are there in China?Best solution by Quora
- How to find the right vacation?Best solution by bookit.com
- How To Make Your Own Primer?Best solution by thekrazycouponlady.com
- How do you get the domain & range?Best solution by ChaCha
- How do you open pop up blockers?Best solution by Yahoo! Answers
For every problem there is a solution! Proved by Solucija.
-
Got an issue and looking for advice?
-
Ask Solucija to search every corner of the Web for help.
-
Get workable solutions and helpful tips in a moment.
Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.