hive-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niklaus Xiao (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HIVE-14556) Load data into text table fail caused by IndexOutOfBoundsException
Date Wed, 17 Aug 2016 09:20:20 GMT
Niklaus Xiao created HIVE-14556:
-----------------------------------

             Summary: Load data into text table fail caused by IndexOutOfBoundsException
                 Key: HIVE-14556
                 URL: https://issues.apache.org/jira/browse/HIVE-14556
             Project: Hive
          Issue Type: Bug
          Components: File Formats
    Affects Versions: 1.3.0, 2.2.0
            Reporter: Niklaus Xiao
            Assignee: Niklaus Xiao


{code}
echo "1" > foo.txt

0: jdbc:hive2://189.39.151.74:21066/> create table foo(id int) stored as textfile;
No rows affected (1.846 seconds)
0: jdbc:hive2://189.39.151.74:21066/> load data local inpath '/foo.txt' into table foo;
Error: Error while compiling statement: FAILED: SemanticException Unable to load data to destination
table. Error: java.lang.IndexOutOfBoundsException (state=42000,code=40000)
{code}

Exception:
{code}
2016-08-17 17:15:36,301 | ERROR | HiveServer2-Handler-Pool: Thread-55 | FAILED: SemanticException
Unable to load data to destination table. Error: java.lang.IndexOutOfBoundsException
org.apache.hadoop.hive.ql.parse.SemanticException: Unable to load data to destination table.
Error: java.lang.IndexOutOfBoundsException
        at org.apache.hadoop.hive.ql.parse.LoadSemanticAnalyzer.ensureFileFormatsMatch(LoadSemanticAnalyzer.java:356)
        at org.apache.hadoop.hive.ql.parse.LoadSemanticAnalyzer.analyzeInternal(LoadSemanticAnalyzer.java:236)
        at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:238)
        at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:473)
        at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:325)
        at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1358)
        at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1340
{code}



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

Mime
View raw message