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

Exception while loading data into hive partitioned table

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Hive
    • None

    Description

      Hi,

      I created one partition table  while loadign the data it throws exception

      "FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:Invalid partition key & values; keys [odr_date, ], values [])"

       create table statement:

      create external table assignment(
      cust_id string,
      cust_name string,
      shipdt date,
      Courer string ,
      recvd_dt date,
      returned_or_not string,
      returned_dt date ,
      reson_of_return string ) partitioned by(odr_date date)
      ROW FORMAT DELIMITED FIELDS TERMINATED BY '\t' STORED AS TEXTFILE;

      Loading data statement:

      Load data LOCAL inpath '/xxx/****/assignment.txt' overwrite into table assignment PARTITION(odr_date = "02-01-2017");

      Please let me know how it get resolved

       

      Attachments

        1. assignment-create-table-2018.txt
          20 kB
          obbu Nireesha

        Activity

          People

            hive.bugs Kiet Ly
            nireeshavidya@gmail.com obbu Nireesha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: