Rethinkdb – Compile rethinkdb on ODROID C1

This time we build rethinkdb on ODROID C1. Start with following the tutorial for Raspberry PI. Before start, remember to add swap space (tutorial here) or the compilation will fail.

Unlike RPI tutorial, omit “–with-system-malloc” from make command, otherwise you’ll get “undefined reference to symbol ‘dlsym@@GLIBC_2.4′” error. Take a long break, on my C1 […]

Spark – consumer from Kafka

This tutorial illustrate how to consume messages from kafka using spark shell. Lets start installing kafka:

At this point kafka is up and runnig. Create a new sbt project, edit *.sbt and add the following lines


Now copy the following jars

Start spark shell

On another shell, create kafka.scala […]

Spark – Configure and use log4j

Hello, a little tutorial to configure and use log4j with Scala and Spark

Then create a file called “” and put this code inside

This configuration will log to /var/log/spark.log and on console. I partially review this post: Bye 🙂 Related posts: Spark – consumer from Kafka Python – daemons Pacemaker – […]

Pacemaker – Configure cluster

Today some simple commands to configure a cluster with two ip adresses and a service on two servers with ubuntu 14.04 Let start installing some packages

Than adjust some configuration. The first is to enable pacemaker to run without quorum (you need it if the servers are less than three)

Now edit corosync […]

Python – Send AVRO messages over RabbitMQ

After crawling web sites for a lot of days and find nothing, I can send avro encoded messages with rabbitmq:


Bye 🙂   Related posts: Python – Tornado and Celery integration Python – daemons

Python – daemons

Today a little post on how to create a daemon with python. I started from this article:  and then I added logging and scheduler. Normally I don’t like to coerce sysadmins to install a lot of dependencies, so I try to put this way of thinking in this package. Requirements: python3 If you used […]

Apache – beautify directory index

Have you ever wonder on how to cheange the very ugly apache directory index page? There are various ways to change the look and feel of this page, one of this is h5ai ( Lets start by installing some prerequisites:

Now we can install h5ai:

Modify virtual host settings by insert the row […]

L’Allegoria delle Farfalle

ALLEGORIA DELLE FARFALLE – Attar –    Una notte le farfalle si riunirono in assemblea, volevano conoscere che cosa fosse una candela. E dissero: “Chi andrĂ  a cercar notizie su di essa?” La prima andò a volare intorno a un castello e da lontano, dall’esterno vide una luce che brillava. Tornò e con parole dotte la […]