Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 08-18-2014 11:06 AM - edited 09-16-2022 02:05 AM
Hi,
I am new to Hadoop. I am trying to run below basic statement in Pig Editor. I am using Cloudera Quickstart VM.
sample_07 = LOAD 'sample_07' USING org.apache.hcatalog.pig.HCatLoader();
However, I am getting below error while running the script. I have not added any properties at the time of run. Please help.
ErrorCode [EJ001], Message [Could not locate Oozie sharelib]
Thanks
Sach
Created 08-27-2014 09:01 PM
Hi,
After adding site_hive.xml file to pig script using properties, I am able to run pig scripts.
Thanks for all your help.
Sach
Created 08-18-2014 06:59 PM
Hi,
Please help on this.
Thanks
Sach
Created 08-19-2014 04:57 AM
Hi.
I had the same problem. It turns out that they have a bug in the VM, misconfigured oozie service.
What I did is:
1. Open CDH VM in VMWare Player / Workstation
2. Open system console - appears on top desktop's toolbar
3. Write the following lines:
3.1. sudo service oozie stop
3.2. sudo oozie-setup sharelib create -fs /user/oozie/share/lib/mr1 -locallib /usr/lib/oozie/oozie-sharelib-mr1.tar.gz
3.3. sudo service oozie start
Then try running Pig script again. Worked for me.
What this does is reinstalling share/lib required libraries.
See details here: http://www.cloudera.com/content/cloudera-content/cloudera-docs/CDH5/latest/CDH5-Installation-Guide/c...
Hope it helps you too.
David.
Created 08-19-2014 10:32 AM
Thanks a lot, David.
I am able to move forward and stuck with below error while running Pig script.
[main] ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2245: Cannot get schema from loadFunc org.apache.hcatalog.pig.HCatLoader
Please advice.
Thanks
Sach
Created 08-20-2014 01:04 AM
I am not familiar with this error but Googling around leads me to this, maybe it helps: http://stackoverflow.com/questions/22304947/cannot-load-hive-table-into-pig-via-hcatalog
Created 08-27-2014 09:00 PM
Created 08-27-2014 09:01 PM
Hi,
After adding site_hive.xml file to pig script using properties, I am able to run pig scripts.
Thanks for all your help.
Sach