AnsweredAssumed Answered

Update broke Pig on Ubuntu

Question asked by thealy on May 22, 2015
Latest reply on May 26, 2015 by Hao Zhu
Running 3.1.0.23703.GA, saw that update manager reported update of mapr-pig failed; pig no longer runs, with error below:

<code>
Exception in thread "main" java.io.IOException: Error opening job jar: /opt/mapr/pig/pig-0.14/bin/../pig-0.14.0-mapr-1504-core-h1.jar /opt/mapr/pig/pig-0.14/bin/../pig-core-h1.jar

at org.apache.hadoop.util.RunJar.main(RunJar.java:124)

Caused by: java.io.FileNotFoundException: /opt/mapr/pig/pig-0.14/bin/../pig-0.14.0-mapr-1504-core-h1.jar /opt/mapr/pig/pig-0.14/bin/../pig-core-h1.jar (No such file or directory)
</code>

When I removed and attempted re-install manually, that fails with these errors:

<code>
 sudo apt-get install mapr-pig

Reading package lists... Done

Building dependency tree      
Reading state information... Done

The following NEW packages will be installed:
  mapr-pig

0 upgraded, 1 newly installed, 0 to remove and 31 not upgraded.

Need to get 0 B/102 MB of archives.
After this operation, 0 B of additional disk space will be used.

WARNING: The following packages cannot be authenticated!
  mapr-pig
Install these packages without verification? [y/N] Y

Selecting previously unselected package mapr-pig.

(Reading database ... 273573 files and directories currently installed.)

Preparing to unpack .../mapr-pig_0.14.201505151419_all.deb ...

Unpacking mapr-pig (0.14.201505151419) ...

Setting up mapr-pig (0.14.201505151419) ...

Post Configuration

POST_YARN=0, removing yarn jars

mv: target ‘/opt/mapr/pig/pig-0.14/pig-core-h1.jar’ is not a directory

dpkg: error processing package mapr-pig (--configure):

 subprocess installed post-installation script returned error exit status 1

Errors were encountered while processing:

 mapr-pig

E: Sub-process /usr/bin/dpkg returned an error code (1)

</code>

Can anyone suggest how I might re-install and get pig running again?

Thanks

Outcomes