You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flume.apache.org by s ravi <sr...@gmail.com> on 2011/12/05 18:02:48 UTC

JSON/HBase/Flume

Hi All,

Good Morning,

Need help with JSON/Hbase/Flume.


I am getting data as JSON obeject and need to send this to HBase. for
this i need to use scripts/commands. If possible could anyone please
guide me with this commands. i can sink data to hbase from file on
collector.
Sample:
config [collector, text("/var/log/flume/test.log"), split( ":", 0 ,
"2hb_core:session_id") split( ":", 1 , "2hb_core:session_state")
split( ":", 2 , "2hb_core:session_type") split( ":", 3 ,
"2hb_core:session_mode") split( ":", 4 , "2hb_core:service_type")
split( ":", 5 , "2hb_txt:raw_query_text") format("%{nanos}:")
split(":", 0, "2hb_") attr2hbase( "flumetest2", "", "", "2hb_",
"1000", "false" ) ]

could you please help me how i can do this with JSON.
Thanks for your time..

Thanks,
Saritha.