[ 
https://issues.apache.org/jira/browse/PIG-3194?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13580638#comment-13580638
 ] 

Kai Londenberg commented on PIG-3194:
-------------------------------------

I would propose to try and stay as compatible as possible with reasonable 
effort. Here, the effort to stay compatible with a still widely used version of 
Hadoop seems to be minimal. I see 3 alternative solutions here:

1.) Revert the mentioned commit. 

2.) Reproduce the required functionality using code that's compatible to 
commons codec 1.3 (i.e. use Base64.decodeBase64(str.getBytes()) instead of the 
shortcut Base64.decodeBase64(str).

3.) Embed a rebased commons codec 1.4+ into pig. With that, I mean a version of 
commons codec 1.4+ which has been automatically refactored such that it has a 
new base package, for example pig.org.apache.commons.codec or something like 
that.


                
> Pig 0.11 candidate 2: Changes to ObjectSerializer.java break compatibility 
> with Hadoop 0.20.2
> ---------------------------------------------------------------------------------------------
>
>                 Key: PIG-3194
>                 URL: https://issues.apache.org/jira/browse/PIG-3194
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Kai Londenberg
>
> The changes to ObjectSerializer.java in the following commit
> http://svn.apache.org/viewvc?view=revision&revision=1403934 break 
> compatibility with Hadoop 0.20.2 Clusters.
> The reason is, that the code uses methods from Apache Commons Codec 1.4 - 
> which are not available in Apache Commons Codec 1.3 which is shipping with 
> Hadoop 0.20.2.
> The offending methods are Base64.decodeBase64(String) and 
> Base64.encodeBase64URLSafeString(byte[])
> If I revert these changes, Pig 0.11.0 candidate 2 works well with our Hadoop 
> 0.20.2 Clusters.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to