You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Praneet Sharma (Jira)" <ji...@apache.org> on 2019/09/16 05:06:00 UTC

[jira] [Commented] (HIVE-22207) Tez: SplitGenerator throws NumberFormatException when "dfs.block.size" on cluster is "128m"

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

Praneet Sharma commented on HIVE-22207:
---------------------------------------

This issue should get fixed if getLongBytes API of Configuration class is used in place of getLong API invocation in HiveSplitGenerator.

> Tez: SplitGenerator throws NumberFormatException when "dfs.block.size" on cluster is "128m"
> -------------------------------------------------------------------------------------------
>
>                 Key: HIVE-22207
>                 URL: https://issues.apache.org/jira/browse/HIVE-22207
>             Project: Hive
>          Issue Type: Bug
>          Components: Hive, Tez
>    Affects Versions: 2.1.0, 3.1.0
>            Reporter: Praneet Sharma
>            Priority: Major
>
> When the value of "dfs.block.size" on the cluster is "128m" in place of actual bytes as Long, then Tez job fails with NumberFormatException:
> {code:java}
> java.lang.NumberFormatException: For input string: "128m" at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65) at java.lang.Long.parseLong(Long.java:589) at java.lang.Long.parseLong(Long.java:631) at org.apache.hadoop.conf.Configuration.getLong(Configuration.java:1539) at org.apache.hadoop.hive.ql.exec.tez.HiveSplitGenerator.initialize(HiveSplitGenerator.java:194) at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable$1.run(RootInputInitializerManager.java:278) at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable$1.run(RootInputInitializerManager.java:269)
> {code}



--
This message was sent by Atlassian Jira
(v8.3.2#803003)