Hi Chhaya, I totally agree with AbdelRahman. HCatalog is the correct way to do that. See *this*<https://cwiki.apache.org/confluence/display/Hive/HCatalog+LoadStore#HCatalogLoadStore-RunningPigwithHCatalog>for more details.
Warm Regards, Tariq cloudfront.blogspot.com On Wed, Feb 26, 2014 at 11:21 PM, Abdelrahman Shettia < [email protected]> wrote: > Hi Chhaya, > > Why not using HCatalog to store the PIG and Hive schema for easy sharing? > > > Thanks, > Rahman > > On Feb 12, 2014, at 2:32 AM, Chhaya Vishwakarma < > [email protected]> wrote: > > Hi, > > I am trying to read hive table using PIG script but when I run a pig code > to read a table in hive its giving me following error > > > 2014-02-12 15:48:36,143 [main] WARN org.apache.hadoop.hive.conf.HiveConf > - hive-site.xml not found on CLASSPATH > 2014-02-12 15:49:10,781 [main] ERROR org.apache.pig.tools.grunt.Grunt - > ERROR 2997: Unable to recreate exception from backed error: Error: Found > class org.apache.hadoop.mapreduce.TaskAttemptContext, but interface was > expected > > Hadoop version > 1.1.1 > > Hive version > 0.9.0 > > Pig version > 0.10.0 > > *Pig code* > a = LOAD '/user/hive/warehouse/test' USING > org.apache.pig.piggybank.storage.HiveColumnarLoader('name string'); > > Is it due to some version mismatch ? > > > Regards, > Chhaya Vishwakarma > > > ------------------------------ > The contents of this e-mail and any attachment(s) may contain confidential > or privileged information for the intended recipient(s). Unintended > recipients are prohibited from taking action on the basis of information in > this e-mail and using or disseminating the information, and must notify the > sender and delete it from their system. L&T Infotech will not accept > responsibility or liability for the accuracy or completeness of, or the > presence of any virus or disabling code in this e-mail" > > > > CONFIDENTIALITY NOTICE > NOTICE: This message is intended for the use of the individual or entity > to which it is addressed and may contain information that is confidential, > privileged and exempt from disclosure under applicable law. If the reader > of this message is not the intended recipient, you are hereby notified that > any printing, copying, dissemination, distribution, disclosure or > forwarding of this communication is strictly prohibited. If you have > received this communication in error, please contact the sender immediately > and delete it from your system. Thank You.
