After some days looking for how to solve this annoying exception:
ERROR 2999: Unexpected internal error. Failed to create DataStorage
I think that this is best solution (after all is on Apache-FAQ): Apache – FAQ – Q: What shall I do if I saw «Failed to create DataStorage»?
On few words:
- deploy with ant: «ant»
- copy your hadoop jars (core and test) to /path/to/pig/build/ivy/lib/Pig
- I did something else: modify at libraries.properties the version of hadoop (core and test). This file is at /path/to/pig/ivy/libraries.properties.
- deploy with ant: «ant» again
- copy your pig.jar and rename as pig-<version>-core.jar
and it should work!
P.S.: This issue will be solved in Pig 0.9.1 and beyond.