sflow2hz not working

64 views
Skip to first unread message

Klemen Stanič

unread,
Jul 20, 2017, 10:18:42 AM7/20/17
to Hogzilla Users
Hey,

I have a problem getting sflow2hz to store data to hbase. When i run sflowtool -p 6343 -l | ./sflow2hz -h 127.0.0.1 -p 9090, i get no outputs or errors, even if i run with -v for debug. Just sflowtool works fine and produces results like :


FLOW,10.0.0.254,0,0,00902773db08,001083265e00,0x0800,0,0,10.0.0.1,10.0.0.254,17,0x00,64,35690,161,0x00,143,125,80


Now, sflow2hz being a binary file, i cant really see what might be going wrong, so i was wondering if you could provide the source code for sflow2hz, or give me some info on how the data is stored in hbase, or maybe tell me if i am using the wrong port or something like that.

Kind regards,

Klemen

Paulo

unread,
Jul 20, 2017, 12:13:03 PM7/20/17
to Klemen Stanič, Hogzilla Users
Hi Klemen,

    sFlow2Hz reads 2500 FLOW lines to open a new thread and insert them into HBase. This approach is used to have performance. When a new thread is opened, you should get a notice "Open new thread: i" in the output.  Did you wait enough?

    You can check in HBase if the sflows have been saved by counting the records in table hogzilla_sflows following the steps below.

a) Run HBase shell

$ ~/hbase/bin/hbase shell


b) Count table

hbase(main):001:0> count 'hogzilla_sflows'

    Attached is the procedure's source code, if you need to take a look.

    Let us know if you succeed (or not) .

regards,

Paulo Angelo

--
You received this message because you are subscribed to the Google Groups "Hogzilla Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hogzilla+unsubscribe@googlegroups.com.
To post to this group, send email to hogz...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/hogzilla/571d358b-e630-4c97-beec-dd14857a90a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

sflow2hz.c
Reply all
Reply to author
Forward
0 new messages