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

Xuefu Zhang commented on HIVE-11820:
------------------------------------

Thanks. In this case, I think the "affected" version should be "2.0.0" in this 
case. Otherwise, it's hard to tell whether the field is just missing. It's 
normal to have the same "fix version" as the "affected version".

> export tables with size of >32MB throws "java.lang.IllegalArgumentException: 
> Skip CRC is valid only with update options"
> ------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-11820
>                 URL: https://issues.apache.org/jira/browse/HIVE-11820
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive
>            Reporter: Takahiko Saito
>            Assignee: Takahiko Saito
>             Fix For: 2.0.0
>
>         Attachments: HIVE-11820.2.patch, HIVE-11820.2.patch, HIVE-11820.patch
>
>
> Tested a patch of HIVE-11607 and seeing the following exception:
> {noformat}
> 2015-09-14 21:44:16,817 ERROR [main]: exec.Task 
> (SessionState.java:printError(960)) - Failed with exception Skip CRC is valid 
> only with update options
> java.lang.IllegalArgumentException: Skip CRC is valid only with update options
>         at 
> org.apache.hadoop.tools.DistCpOptions.validate(DistCpOptions.java:556)
>         at 
> org.apache.hadoop.tools.DistCpOptions.setSkipCRC(DistCpOptions.java:311)
>         at 
> org.apache.hadoop.hive.shims.Hadoop23Shims.runDistCp(Hadoop23Shims.java:1147)
>         at org.apache.hadoop.hive.common.FileUtils.copy(FileUtils.java:553)
>         at org.apache.hadoop.hive.ql.exec.CopyTask.execute(CopyTask.java:82)
>         at org.apache.hadoop.hive.ql.exec.Task.executeTask(Task.java:160)
>         at 
> org.apache.hadoop.hive.ql.exec.TaskRunner.runSequential(TaskRunner.java:89)
>         at org.apache.hadoop.hive.ql.Driver.launchTask(Driver.java:1655)
>         at org.apache.hadoop.hive.ql.Driver.execute(Driver.java:1414)
>         at org.apache.hadoop.hive.ql.Driver.runInternal(Driver.java:1195)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1059)
>         at org.apache.hadoop.hive.ql.Driver.run(Driver.java:1049)
>         at 
> org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:213)
>         at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:165)
>         at 
> org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:376)
>         at 
> org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:736)
>         at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:681)
>         at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:621)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>         at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>         at java.lang.reflect.Method.invoke(Method.java:497)
>         at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
>         at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
> {noformat}
> A possible resolution is to reverse the order of the following two lines from 
> a patch of HIVE-11607:
> {noformat}
> +    options.setSkipCRC(true);
> +    options.setSyncFolder(true);
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to