You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Jaume M (JIRA)" <ji...@apache.org> on 2018/06/15 22:58:00 UTC

[jira] [Created] (HIVE-19918) IllegalArgumentException when getContext().getVertexTaskResource().getMemory() returns -1

Jaume M created HIVE-19918:
------------------------------

             Summary: IllegalArgumentException when getContext().getVertexTaskResource().getMemory() returns -1
                 Key: HIVE-19918
                 URL: https://issues.apache.org/jira/browse/HIVE-19918
             Project: Hive
          Issue Type: Bug
            Reporter: Jaume M


{code}
Beeline version 4.0.0-SNAPSHOT by Apache Hive
;: jdbc:hive2://hs2.example.com:10000/> CREATE TABLE pokes (foo INT, bar STRING)
No rows affected (3.834 seconds)
G) PARTITIONED BY (ds STRING);m:10000/> CREATE TABLE invites (foo INT, bar STRIN
No rows affected (0.175 seconds)
0: jdbc:hive2://hs2.example.com:10000/> SELECT * FROM pokes, invites;
Error: Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.tez.TezTask. Vertex failed, vertexName=Map 1, vertexId=vertex_1529099908701_0003_1_01, diagnostics=[Vertex vertex_1529099908701_0003_1_01 [Map 1] killed/failed due to:ROOT_INPUT_INIT_FAILURE, Vertex Input: pokes initializer failed, vertex=vertex_1529099908701_0003_1_01 [Map 1], java.lang.IllegalArgumentException: Illegal Capacity: -10444
	at java.util.ArrayList.<init>(ArrayList.java:157)
	at org.apache.hadoop.mapred.FileInputFormat.getSplits(FileInputFormat.java:339)
	at org.apache.hadoop.hive.ql.io.HiveInputFormat.addSplitsForGroup(HiveInputFormat.java:519)
	at org.apache.hadoop.hive.ql.io.HiveInputFormat.getSplits(HiveInputFormat.java:768)
	at org.apache.hadoop.hive.ql.exec.tez.HiveSplitGenerator.initialize(HiveSplitGenerator.java:211)
	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)
	at java.security.AccessController.doPrivileged(Native Method)
	at javax.security.auth.Subject.doAs(Subject.java:422)
	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1965)
	at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable.call(RootInputInitializerManager.java:269)
	at org.apache.tez.dag.app.dag.RootInputInitializerManager$InputInitializerCallable.call(RootInputInitializerManager.java:253)
	at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:108)
	at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:41)
	at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:77)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
]DAG did not succeed due to VERTEX_FAILURE. failedVertices:1 killedVertices:0 (state=08S01,code=2)
{code}

This is happening because [here|https://github.com/apache/hive/blob/bceb3dd82cbeb0334c3c33da7a21a74ad631810b/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/HiveSplitGenerator.java#L188] the return is -1 and afterwards we request a negative number of splits.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)