You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Yongzhi Chen (JIRA)" <ji...@apache.org> on 2015/02/23 18:01:11 UTC
[jira] [Commented] (HIVE-9716) Map job fails when table's LOCATION
does not have scheme
[ https://issues.apache.org/jira/browse/HIVE-9716?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14333506#comment-14333506 ]
Yongzhi Chen commented on HIVE-9716:
------------------------------------
I have manually tested it with local HS2 as well as cluster setup. The fix works fine for both cases.
[~brocknoland], could you review it? Thanks
> Map job fails when table's LOCATION does not have scheme
> --------------------------------------------------------
>
> Key: HIVE-9716
> URL: https://issues.apache.org/jira/browse/HIVE-9716
> Project: Hive
> Issue Type: Bug
> Affects Versions: 0.12.0, 0.13.0, 0.14.0
> Reporter: Yongzhi Chen
> Assignee: Yongzhi Chen
> Priority: Minor
> Attachments: HIVE-9716.1.patch
>
>
> When a table's location (the value of column 'LOCATION' in SDS table in metastore) does not have a scheme, map job returns error. For example,
> when do select count ( * ) from t1, get following exception:
> {noformat}
> 15/02/18 12:29:43 [Thread-22]: WARN mapred.LocalJobRunner: job_local2120192529_0001
> java.lang.Exception: java.lang.RuntimeException: java.lang.IllegalStateException: Invalid input path file:/user/hive/warehouse/t1/data
> at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:354)
> Caused by: java.lang.RuntimeException: java.lang.IllegalStateException: Invalid input path file:/user/hive/warehouse/t1/data
> at org.apache.hadoop.hive.ql.exec.mr.ExecMapper.map(ExecMapper.java:179)
> at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50)
> at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:430)
> at org.apache.hadoop.mapred.MapTask.run(MapTask.java:366)
> at org.apache.hadoop.mapred.LocalJobRunner$Job$MapTaskRunnable.run(LocalJobRunner.java:223)
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> at java.util.concurrent.FutureTask.run(FutureTask.java:262)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.IllegalStateException: Invalid input path file:/user/hive/warehouse/t1/data
> at org.apache.hadoop.hive.ql.exec.MapOperator.getNominalPath(MapOperator.java:406)
> at org.apache.hadoop.hive.ql.exec.MapOperator.cleanUpInputFileChangedOp(MapOperator.java:442)
> at org.apache.hadoop.hive.ql.exec.Operator.cleanUpInputFileChanged(Operator.java:1051)
> at org.apache.hadoop.hive.ql.exec.MapOperator.process(MapOperator.java:486)
> at org.apache.hadoop.hive.ql.exec.mr.ExecMapper.map(ExecMapper.java:170)
> ... 9 more
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)