I have used flume agent to transfer image(.jpg) to HBase. Now I want to fetch that image and store in the disk(local file system), Is there a utility which can convert an image(stored as Avro) to actual image & store in the disk.
Asked
Active
Viewed 311 times
1 Answers
0
I might suggest to do it in 2 phases.
Use
hbase shell
toscan
table and extract content to file Get output from scans in hbase shellUse avrò-tools to convert avrò file into original file (image?)
java -jar ~/avro-tools-1.7.4.jar fromjson

vvg
- 6,325
- 19
- 36
-
I could import data into a file but im unable to convert file to image using avro-tools available options... – sandeep nag May 31 '17 at 12:49
-
Available tools: compile . concat fragtojson fromjson fromtext getmeta getschema idl induce reflection. jsontofrag recodec rpcprotocol rpcreceive rpcsend Sends a single RPC message. tether tojson totext trevni_random schema.trevni_tojson – sandeep nag May 31 '17 at 12:52