0

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.

SynozeN Technologies
  • 1,337
  • 1
  • 14
  • 19

1 Answers1

0

I might suggest to do it in 2 phases.

  1. Use hbase shell to scan table and extract content to file Get output from scans in hbase shell

  2. Use 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