[
https://issues.apache.org/jira/browse/HIVE-16641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16005866#comment-16005866
]
Andrew Wang commented on HIVE-16641:
------------------------------------
Here's what using a builder looks like, though we need to detect first if the
builder is present.
{code}
-
- DistCpOptions options = new DistCpOptions(Collections.singletonList(src),
dst);
- options.setSyncFolder(true);
- options.setSkipCRC(true);
- options.preserve(FileAttribute.BLOCKSIZE);
+ DistCpOptions options = new
DistCpOptions.Builder(Collections.singletonList(src), dst)
+ .withSyncFolder(true)
+ .withCRC(true)
+ .preserve(FileAttribute.BLOCKSIZE)
+ .build();
{code}
> Use DistCpOptions.Builder in Hadoop shims
> -----------------------------------------
>
> Key: HIVE-16641
> URL: https://issues.apache.org/jira/browse/HIVE-16641
> Project: Hive
> Issue Type: Bug
> Components: Shims
> Reporter: Andrew Wang
>
> Doing some testing against Hadoop trunk. HADOOP-14267 changed how DistCp is
> invoked. Options are now specified via a builder.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)