flume-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s ravi <sravi7...@gmail.com>
Subject [No Subject]
Date Mon, 05 Dec 2011 17:02:11 GMT
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.

Mime
View raw message