You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Vladimir Klimontovich (JIRA)" <ji...@apache.org> on 2010/06/20 11:33:25 UTC
[jira] Created: (HIVE-1419) Policy on deserialization errors
Policy on deserialization errors
--------------------------------
Key: HIVE-1419
URL: https://issues.apache.org/jira/browse/HIVE-1419
Project: Hadoop Hive
Issue Type: Improvement
Components: Serializers/Deserializers
Affects Versions: 0.5.0
Reporter: Vladimir Klimontovich
Assignee: Vladimir Klimontovich
Priority: Minor
Fix For: 0.5.1, 0.6.0
When deserializer throws an exception the whole map tasks fails (see MapOperator.java file). It's not always an convenient behavior especially on huge datasets where several corrupted lines could be a normal practice. Proposed solution:
1) Have a counter of corrupted records
2) When a counter exceeds a limit (configurable via hive.max.deserializer.errors property, 0 by default) throw an exception. Otherwise just log and exception with WARN level.
Patches for 0.5 branch and trunk are attached
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HIVE-1419) Policy on deserialization errors
Posted by "Vladimir Klimontovich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-1419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladimir Klimontovich updated HIVE-1419:
----------------------------------------
Status: Patch Available (was: Open)
> Policy on deserialization errors
> --------------------------------
>
> Key: HIVE-1419
> URL: https://issues.apache.org/jira/browse/HIVE-1419
> Project: Hadoop Hive
> Issue Type: Improvement
> Components: Serializers/Deserializers
> Affects Versions: 0.5.0
> Reporter: Vladimir Klimontovich
> Assignee: Vladimir Klimontovich
> Priority: Minor
> Fix For: 0.5.1, 0.6.0
>
> Attachments: corrupted_records_0.5.patch, corrupted_records_trunk.patch
>
>
> When deserializer throws an exception the whole map tasks fails (see MapOperator.java file). It's not always an convenient behavior especially on huge datasets where several corrupted lines could be a normal practice. Proposed solution:
> 1) Have a counter of corrupted records
> 2) When a counter exceeds a limit (configurable via hive.max.deserializer.errors property, 0 by default) throw an exception. Otherwise just log and exception with WARN level.
> Patches for 0.5 branch and trunk are attached
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HIVE-1419) Policy on deserialization errors
Posted by "Vladimir Klimontovich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-1419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12880909#action_12880909 ]
Vladimir Klimontovich commented on HIVE-1419:
---------------------------------------------
If it works fine for you now, it won't be broken by this patch.
> Policy on deserialization errors
> --------------------------------
>
> Key: HIVE-1419
> URL: https://issues.apache.org/jira/browse/HIVE-1419
> Project: Hadoop Hive
> Issue Type: Improvement
> Components: Serializers/Deserializers
> Affects Versions: 0.5.0
> Reporter: Vladimir Klimontovich
> Assignee: Vladimir Klimontovich
> Priority: Minor
> Fix For: 0.5.1, 0.6.0
>
> Attachments: corrupted_records_0.5.patch, corrupted_records_0.5_ver2.patch, corrupted_records_trunk.patch, corrupted_records_trunk_ver2.patch
>
>
> When deserializer throws an exception the whole map tasks fails (see MapOperator.java file). It's not always an convenient behavior especially on huge datasets where several corrupted lines could be a normal practice. Proposed solution:
> 1) Have a counter of corrupted records
> 2) When a counter exceeds a limit (configurable via hive.max.deserializer.errors property, 0 by default) throw an exception. Otherwise just log and exception with WARN level.
> Patches for 0.5 branch and trunk are attached
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HIVE-1419) Policy on deserialization errors
Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-1419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Namit Jain updated HIVE-1419:
-----------------------------
Status: Open (was: Patch Available)
> Policy on deserialization errors
> --------------------------------
>
> Key: HIVE-1419
> URL: https://issues.apache.org/jira/browse/HIVE-1419
> Project: Hadoop Hive
> Issue Type: Improvement
> Components: Serializers/Deserializers
> Affects Versions: 0.5.0
> Reporter: Vladimir Klimontovich
> Assignee: Vladimir Klimontovich
> Priority: Minor
> Fix For: 0.7.0
>
> Attachments: corrupted_records_0.5.patch, corrupted_records_0.5_ver2.patch, corrupted_records_trunk.patch, corrupted_records_trunk_ver2.patch
>
>
> When deserializer throws an exception the whole map tasks fails (see MapOperator.java file). It's not always an convenient behavior especially on huge datasets where several corrupted lines could be a normal practice. Proposed solution:
> 1) Have a counter of corrupted records
> 2) When a counter exceeds a limit (configurable via hive.max.deserializer.errors property, 0 by default) throw an exception. Otherwise just log and exception with WARN level.
> Patches for 0.5 branch and trunk are attached
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
skew join in hive
Posted by Gang Luo <lg...@yahoo.com.cn>.
Hi,
I see the skew handling strategy as mentioned in hive-964. Here are some questions.
1. how to get the big keys for a table? Launch a mr job to build histogram on each table?
2. now that we get big/skewed keys, do we also have small/non-skewed keys? Do we process these non-skewed keys in the same way (replicate join), or in the traditional way (redistribution join)?
Thanks,
-Gang
[jira] Updated: (HIVE-1419) Policy on deserialization errors
Posted by "Vladimir Klimontovich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-1419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladimir Klimontovich updated HIVE-1419:
----------------------------------------
Attachment: corrupted_records_0.5_ver2.patch
corrupted_records_trunk_ver2.patch
A bit improved version of patch attached. MapOperator now skips record if deserializer returned null.
It makes deserializer plugin arch more flexible. If deserializer considers record as non-sense (corrupted, empty, whatever) it could simply return null and signal Hive not to consider it.
> Policy on deserialization errors
> --------------------------------
>
> Key: HIVE-1419
> URL: https://issues.apache.org/jira/browse/HIVE-1419
> Project: Hadoop Hive
> Issue Type: Improvement
> Components: Serializers/Deserializers
> Affects Versions: 0.5.0
> Reporter: Vladimir Klimontovich
> Assignee: Vladimir Klimontovich
> Priority: Minor
> Fix For: 0.5.1, 0.6.0
>
> Attachments: corrupted_records_0.5.patch, corrupted_records_0.5_ver2.patch, corrupted_records_trunk.patch, corrupted_records_trunk_ver2.patch
>
>
> When deserializer throws an exception the whole map tasks fails (see MapOperator.java file). It's not always an convenient behavior especially on huge datasets where several corrupted lines could be a normal practice. Proposed solution:
> 1) Have a counter of corrupted records
> 2) When a counter exceeds a limit (configurable via hive.max.deserializer.errors property, 0 by default) throw an exception. Otherwise just log and exception with WARN level.
> Patches for 0.5 branch and trunk are attached
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HIVE-1419) Policy on deserialization errors
Posted by "Vladimir Klimontovich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-1419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vladimir Klimontovich updated HIVE-1419:
----------------------------------------
Attachment: corrupted_records_0.5.patch
corrupted_records_trunk.patch
> Policy on deserialization errors
> --------------------------------
>
> Key: HIVE-1419
> URL: https://issues.apache.org/jira/browse/HIVE-1419
> Project: Hadoop Hive
> Issue Type: Improvement
> Components: Serializers/Deserializers
> Affects Versions: 0.5.0
> Reporter: Vladimir Klimontovich
> Assignee: Vladimir Klimontovich
> Priority: Minor
> Fix For: 0.5.1, 0.6.0
>
> Attachments: corrupted_records_0.5.patch, corrupted_records_trunk.patch
>
>
> When deserializer throws an exception the whole map tasks fails (see MapOperator.java file). It's not always an convenient behavior especially on huge datasets where several corrupted lines could be a normal practice. Proposed solution:
> 1) Have a counter of corrupted records
> 2) When a counter exceeds a limit (configurable via hive.max.deserializer.errors property, 0 by default) throw an exception. Otherwise just log and exception with WARN level.
> Patches for 0.5 branch and trunk are attached
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HIVE-1419) Policy on deserialization errors
Posted by "Edward Capriolo (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-1419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12880908#action_12880908 ]
Edward Capriolo commented on HIVE-1419:
---------------------------------------
I am looking through this and trying to wrap my head around it. Off hand do you know what happens in this situation.
We have a table that we have added columns to over time
create table tab (a int, b int);
Over time we have added more columns
alter table tab (a int, b int, c int)
This works fine for us as selecting column c on older data returns null for that column. Will this behaviour be preserved ?
> Policy on deserialization errors
> --------------------------------
>
> Key: HIVE-1419
> URL: https://issues.apache.org/jira/browse/HIVE-1419
> Project: Hadoop Hive
> Issue Type: Improvement
> Components: Serializers/Deserializers
> Affects Versions: 0.5.0
> Reporter: Vladimir Klimontovich
> Assignee: Vladimir Klimontovich
> Priority: Minor
> Fix For: 0.5.1, 0.6.0
>
> Attachments: corrupted_records_0.5.patch, corrupted_records_0.5_ver2.patch, corrupted_records_trunk.patch, corrupted_records_trunk_ver2.patch
>
>
> When deserializer throws an exception the whole map tasks fails (see MapOperator.java file). It's not always an convenient behavior especially on huge datasets where several corrupted lines could be a normal practice. Proposed solution:
> 1) Have a counter of corrupted records
> 2) When a counter exceeds a limit (configurable via hive.max.deserializer.errors property, 0 by default) throw an exception. Otherwise just log and exception with WARN level.
> Patches for 0.5 branch and trunk are attached
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HIVE-1419) Policy on deserialization errors
Posted by "Carl Steinbach (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-1419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carl Steinbach updated HIVE-1419:
---------------------------------
Fix Version/s: 0.7.0
(was: 0.6.0)
(was: 0.5.1)
> Policy on deserialization errors
> --------------------------------
>
> Key: HIVE-1419
> URL: https://issues.apache.org/jira/browse/HIVE-1419
> Project: Hadoop Hive
> Issue Type: Improvement
> Components: Serializers/Deserializers
> Affects Versions: 0.5.0
> Reporter: Vladimir Klimontovich
> Assignee: Vladimir Klimontovich
> Priority: Minor
> Fix For: 0.7.0
>
> Attachments: corrupted_records_0.5.patch, corrupted_records_0.5_ver2.patch, corrupted_records_trunk.patch, corrupted_records_trunk_ver2.patch
>
>
> When deserializer throws an exception the whole map tasks fails (see MapOperator.java file). It's not always an convenient behavior especially on huge datasets where several corrupted lines could be a normal practice. Proposed solution:
> 1) Have a counter of corrupted records
> 2) When a counter exceeds a limit (configurable via hive.max.deserializer.errors property, 0 by default) throw an exception. Otherwise just log and exception with WARN level.
> Patches for 0.5 branch and trunk are attached
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HIVE-1419) Policy on deserialization errors
Posted by "Namit Jain (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-1419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12902559#action_12902559 ]
Namit Jain commented on HIVE-1419:
----------------------------------
@Vladimir/Edward,
Are you still working on this ? Seems like a good feature to have - Oracle sqlldr has very similar functionality where you can specify the number of
bad rows.
Can you refresh the patch ?
> Policy on deserialization errors
> --------------------------------
>
> Key: HIVE-1419
> URL: https://issues.apache.org/jira/browse/HIVE-1419
> Project: Hadoop Hive
> Issue Type: Improvement
> Components: Serializers/Deserializers
> Affects Versions: 0.5.0
> Reporter: Vladimir Klimontovich
> Assignee: Vladimir Klimontovich
> Priority: Minor
> Fix For: 0.7.0
>
> Attachments: corrupted_records_0.5.patch, corrupted_records_0.5_ver2.patch, corrupted_records_trunk.patch, corrupted_records_trunk_ver2.patch
>
>
> When deserializer throws an exception the whole map tasks fails (see MapOperator.java file). It's not always an convenient behavior especially on huge datasets where several corrupted lines could be a normal practice. Proposed solution:
> 1) Have a counter of corrupted records
> 2) When a counter exceeds a limit (configurable via hive.max.deserializer.errors property, 0 by default) throw an exception. Otherwise just log and exception with WARN level.
> Patches for 0.5 branch and trunk are attached
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HIVE-1419) Policy on deserialization errors
Posted by "Vladimir Klimontovich (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HIVE-1419?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12902563#action_12902563 ]
Vladimir Klimontovich commented on HIVE-1419:
---------------------------------------------
Namit, yes I can refresh the patch in next few days.
> Policy on deserialization errors
> --------------------------------
>
> Key: HIVE-1419
> URL: https://issues.apache.org/jira/browse/HIVE-1419
> Project: Hadoop Hive
> Issue Type: Improvement
> Components: Serializers/Deserializers
> Affects Versions: 0.5.0
> Reporter: Vladimir Klimontovich
> Assignee: Vladimir Klimontovich
> Priority: Minor
> Fix For: 0.7.0
>
> Attachments: corrupted_records_0.5.patch, corrupted_records_0.5_ver2.patch, corrupted_records_trunk.patch, corrupted_records_trunk_ver2.patch
>
>
> When deserializer throws an exception the whole map tasks fails (see MapOperator.java file). It's not always an convenient behavior especially on huge datasets where several corrupted lines could be a normal practice. Proposed solution:
> 1) Have a counter of corrupted records
> 2) When a counter exceeds a limit (configurable via hive.max.deserializer.errors property, 0 by default) throw an exception. Otherwise just log and exception with WARN level.
> Patches for 0.5 branch and trunk are attached
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.