You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@phoenix.apache.org by Salou Guillaume <g....@gmail.com> on 2016/09/26 15:49:41 UTC
Problem with Pig 0.16 and Phoenix 4.8
Hi,
I use Phoenix since 1 year under Phoenix 4.6 / Pig 0.12 / Cloudera CDH 5.4.1
Since we have migrated to pig 0.16 / Phoenix 4.8 / Hadoop 2.7 / JDK
1.8 load and store are broken.
We always have reducers fail, sometimes job fails sometimes it succeded :
2016-09-26 14:48:37,509 WARN [main]
org.apache.hadoop.mapred.YarnChild: Exception running child :
java.io.IOException: java.lang.ClassNotFoundException: Class not
found
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigSplit.readFields(PigSplit.java:236)
at org.apache.hadoop.io.serializer.WritableSerialization$WritableDeserializer.deserialize(WritableSerialization.java:71)
at org.apache.hadoop.io.serializer.WritableSerialization$WritableDeserializer.deserialize(WritableSerialization.java:42)
at org.apache.hadoop.mapred.MapTask.getSplitDetails(MapTask.java:372)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:754)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:341)
at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:164)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:422)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:158)
Caused by: java.lang.ClassNotFoundException: Class not found
at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:2101)
at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigSplit.readFields(PigSplit.java:224)
... 10 more
We register phoenix jars like this :
REGISTER '/opt/apache-phoenix-4.8.0-HBase-1.2-bin/phoenix-pig-4.8.0-HBase-1.2.jar';
REGISTER '/opt/apache-phoenix-4.8.0-HBase-1.2-bin/phoenix-4.8.0-HBase-1.2-client.jar';
I've found same issues :
https://scholar.live/question/class-not-found-with-no-class-name-when-store-using-org-apache-phoenix-pig-phoenixhbasestorage
http://stackoverflow.com/questions/31509889/classnotfoundexception-with-no-class-name
PigScrits which are not using Phoenix are OK.
On org.apache.phoenix.pig.PhoenixHBaseStorage we seems to have more
problems with
ERROR 0: java.lang.ClassCastException: org.joda.time.DateTime cannot be cast to
org.apache.phoenix.shaded.org.joda.time.DateTime
and related to : https://issues.apache.org/jira/browse/PHOENIX-3240
We are switching all our cluster to java 1.7.
Any remark, advice, feedback on this kind of problem could be of great help.
Guillaume