ERROR 4010: Cannot find hadoop configurations in classpath

Setting up pig for e2e tests isn’t a daily-work task, it requires patience and sometimes more patience.

Let me first explain the situation: Hadoop 1.0.1-SNAPSHOT, Apache Pig version 0.10.0-SNAPSHOT (r1156275) and Pig version 0.8.1 (obviously, you need an old towards tests).

One common exception thrown while configuring old pig was this:

ERROR 4010: Cannot find hadoop configurations in classpath

It requires in some way to specify the path to core-site.xml or hadoop-site.xml (for older versions). I solved this by adding an env var PIG_CONF_DIR with the path to  «hadoop configuration directory».

And that’s it. And as usual: It should works!

Esta entrada fue publicada en Hadoop, Pig y etiquetada , , , . Guarda el enlace permanente.

Deja un comentario

Tu dirección de correo electrónico no será publicada. Los campos obligatorios están marcados con *