You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@bigtop.apache.org by "Olaf Flebbe (JIRA)" <ji...@apache.org> on 2015/01/07 15:59:35 UTC
[jira] [Commented] (BIGTOP-1588) Current Bigtop Pig does not build
because of API Change in Hive
[ https://issues.apache.org/jira/browse/BIGTOP-1588?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14267700#comment-14267700 ]
Olaf Flebbe commented on BIGTOP-1588:
-------------------------------------
The patch is easy: use getLength() rather getCount(), since both return the same value (but through different classes)
I am using this to demo how to implement [BIGTOP-1579]
the patch to be applied is appended
> Current Bigtop Pig does not build because of API Change in Hive
> ---------------------------------------------------------------
>
> Key: BIGTOP-1588
> URL: https://issues.apache.org/jira/browse/BIGTOP-1588
> Project: Bigtop
> Issue Type: Bug
> Reporter: Olaf Flebbe
>
> Current pig does not build because of API Change in Hive.
> ByteStream.Output getCount() does not exist any more.
> {code}
> compile:
> [echo] *** Compiling Pig UDFs ***
> [javac] /net/os2-debian80/fs1/olaf/bigtop/output/pig/pig-0.12.1/contrib/piggybank/java/build.xml:94: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds
> [javac] Compiling 164 source files to /net/os2-debian80/fs1/olaf/bigtop/output/pig/pig-0.12.1/contrib/piggybank/java/build/classes
> [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.6
> [javac] /net/os2-debian80/fs1/olaf/bigtop/output/pig/pig-0.12.1/contrib/piggybank/java/src/main/java/org/apache/pig/piggybank/storage/HiveColumnarStorage.java:106: error: cannot find symbol
> [javac] colValRefs[i].set(byteStream.getData(), startPos, byteStream.getCount() - startPos);
> [javac] ^
> [javac] symbol: method getCount()
> [javac] location: variable byteStream of type Output
> [javac] /net/os2-debian80/fs1/olaf/bigtop/output/pig/pig-0.12.1/contrib/piggybank/java/src/main/java/org/apache/pig/piggybank/storage/HiveColumnarStorage.java:107: error: cannot find symbol
> [javac] startPos = byteStream.getCount();
> [javac] ^
> [javac] symbol: method getCount()
> [javac] location: variable byteStream of type Output
> [javac] Note: Some input files use or override a deprecated API.
> [javac] Note: Recompile with -Xlint:deprecation for details.
> [javac] Note: Some input files use unchecked or unsafe operations.
> [javac] Note: Recompile with -Xlint:unchecked for details.
> [javac] 2 errors
> [javac] 1 warning
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)