Hi All,
I successfully set up PIG, Cassandra and Hadoop. Can execute my PIG scripts
on Cassandra from grunt.
Also, I successfully set up PIG, Cassandra and Hadoop on eclipse and
created an application which gets PIG scripts and runs on cassandra with
the below mentioned change.
Added the following packages inn the PigContext.packageImportList
list.add("org.apache.pig.builtin.");
PigServer.store(String id, String filename) throws Could not resolve
PigStorage exeception. I guess this is because of the the fully qualified
class name of PigStorage used in the PigServer.store function i.e
PigStorage.class.getName() is used which returns me
org.apache.pig.builtin.PigStorage and this is sent to the
PigContext.resolveClassName().
The PigContext.resolveClassName() uses this fully qualified class
PigStorage class name and appends with the package names available in the
ArrayList returned by PigContext.getPackageImportList().
And that is why the resolveClassName() could not resolve PigStorage because
it is actually searching for
org.apache.pig.builtin.org.apache.pig.builtin.PigStorage
I do not know if this is a bug or a requirement.
And without all these changes it works perfectly in the grunt.
--
Thanks & Regards
Deepak Rosario Pancras
*Achiever/Responsibility/Arranger/Maximizer/Harmony*