> Yes, it helps a lot. One question remains, how can I construct a > recursive schema programmatically? > I have a couple options for the pig Tuple avro schema -- write it in JSON > and put that in the source code or programmatically construct it. > I'm currently programmatically constructing a schema specific to the Pig > schema that is serialized, which is straightforward until I hit the map > type and recursion.
For my benchmark, I put the schema in jar (or wherever the class files are located) and then used ClassLoader.getResourceAsStream(). This reduces the possibility that the schema file is not found during runtime. Thanks Thiru
