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

slim bouguerra commented on HIVE-18889:
---------------------------------------

As per exception stack, this method is removed after Guava 18, thus we can not 
use 19 for now.

 

{code}

/**
* Returns a factory that will supply instances of \{@link FileOutputStream}
* that write to or append to a file.
*
* @param file the file to write to
* @param append if true, the encoded characters will be appended to the file;
* otherwise the file is overwritten
* @return the factory
* @deprecated Use \{@link #asByteSink(File, FileWriteMode...)}, passing
* \{@link FileWriteMode#APPEND} for append. This method is scheduled for
* removal in Guava 18.0.
*/
@Deprecated
public static OutputSupplier<FileOutputStream> newOutputStreamSupplier(
final File file, final boolean append) {
return ByteStreams.asOutputSupplier(asByteSink(file, modes(append)));
}

private static FileWriteMode[] modes(boolean append) {
return append
? new FileWriteMode[]\{ FileWriteMode.APPEND }
: new FileWriteMode[0];
}

{code}

> update all parts of Hive to use the same Guava version
> ------------------------------------------------------
>
>                 Key: HIVE-18889
>                 URL: https://issues.apache.org/jira/browse/HIVE-18889
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Sergey Shelukhin
>            Assignee: Sergey Shelukhin
>            Priority: Major
>         Attachments: HIVE-18889.patch
>
>




--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to