Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-2031

Correct the exception message for the better traceability for the scenario load into the partitioned table having 2 partitions by specifying only one partition in the load statement.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.7.0
    • 0.8.0
    • Logging
    • None
    • Hadoop 0.20.1, Hive0.7.0 and SUSE Linux Enterprise Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (5).

    • Reviewed

    Description

      Load into the partitioned table having 2 partitions by specifying only one partition in the load statement is failing and logging the following exception message.

       org.apache.hadoop.hive.ql.parse.SemanticException: line 1:91 Partition not found '21Oct'
      	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer$tableSpec.<init>(BaseSemanticAnalyzer.java:685)
      	at org.apache.hadoop.hive.ql.parse.LoadSemanticAnalyzer.analyzeInternal(LoadSemanticAnalyzer.java:196)
      	at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:238)
      	at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:340)
      	at org.apache.hadoop.hive.ql.Driver.run(Driver.java:736)
      	at org.apache.hadoop.hive.service.HiveServer$HiveServerHandler.execute(HiveServer.java:151)
      	at org.apache.hadoop.hive.service.ThriftHive$Processor$execute.process(ThriftHive.java:764)
      	at org.apache.hadoop.hive.service.ThriftHive$Processor.process(ThriftHive.java:742)
      	at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:253)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      	at java.lang.Thread.run(Thread.java:619)
      

      This needs to be corrected in such a way what is the actual root cause for this.

      Attachments

        1. HIVE-2031.2.patch
          2 kB
          Chinna Rao Lalam
        2. HIVE-2031.patch
          1 kB
          Chinna Rao Lalam

        Activity

          People

            chinnalalam Chinna Rao Lalam
            chinnalalam Chinna Rao Lalam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: