-
Notifications
You must be signed in to change notification settings - Fork 4
HOWTO
Vytautas Krakauskas edited this page Jun 9, 2013
·
2 revisions
A brief example how to setup nfsen on for distributed processing.
The setup is based on tools available in Debian GNU/Linux distribution. Most of the commands should be run as root.
To use nfdump with nfdist you need some patches. They are available in my nufdump repo nfdist branch.
cd /usr/local/src
git clone https://github.com/vytautas/nfdump
cd nfdump
./configure --prefix=/opt/nfdump --enable-nfprofile
make install
See nfdump's README for more details
comming soon
To use nfsen with nfdist you need some patches for nfsen They are available in nfsen repo nfdist branch.
aptitude install librrds-perl libmailtools-perl libsocket6-perl
adduser --system --home /opt/nfsen --group --disabled-password --disabled-login netflow
adduser netflow www-data
cd /usr/local/src
git clone https://github.com/vytautas/nfsen
cd nfsen
cp etc/nfsen-dist.conf etc/nfsen.conf
editor etc/nfsen.conf
./install.pl etc/nfsen.conf
See nfsen's README for more details.
aptitude install libapache2-mod-php
Alias /nfsen /opt/nfsen/html
<Directory /opt/nfsen/html>
DirectoryIndex nfsen.php
</Directory>
I recommend using Claudera's CDH4 Hadoop distribution. Everything should work with other Hadoop distributions too.
aptitude install hadoop-hdfs-fuse
hadoop-fuse-dfs#dfs://NAMENODE_ADDRESS:8020 /mnt/hdfs fuse _netdev 0 0
mount /mnt/hdfs
mv /opt/nfsen/profiles-data /mnt/hdfs/netflow
ln -s /mnt/hdfs/netflow /opt/nfsen/profiles-data
N.B. system's netflow user must have write permissions to /mnt/hdfs/netflow
/opt/nfsen/bin/nfsen start