SemanticException Partition spec {col=null} enthält nicht-partition Spalten

Ich versuche zu erstellen, die dynamische Partitionen im hive mit dem folgenden code.

SET hive.exec.dynamic.partition = true;
SET hive.exec.dynamic.partition.mode = nonstrict;

create external table if not exists report_ipsummary_hourwise(
ip_address string,imp_date string,imp_hour bigint,geo_country string)
PARTITIONED BY (imp_date_P string,imp_hour_P string,geo_coutry_P string) 
row format delimited 
fields terminated by '\t'
stored as textfile
location 's3://abc';

insert overwrite table report_ipsummary_hourwise PARTITION (imp_date_P,imp_hour_P,geo_country_P)
SELECT ip_address,imp_date,imp_hour,geo_country,
       imp_date as imp_date_P,
       imp_hour as imp_hour_P,
       geo_country as geo_country_P
FROM report_ipsummary_hourwise_Temp;

Wo report_ipsummary_hourwise_Temp Tabelle enthält die folgenden Spalten
ip_address,imp_date,imp_hour,geo_country.

Ich bin immer diese Fehlermeldung

SemanticException Partition spec {imp_hour_p=null, imp_date_p=null,
geo_country_p=null} enthält nicht-partition Spalten.

Kann jemand empfehlen, warum dieser Fehler kommt ?

Sie waren in der Lage, es zu lösen, vor 2 Jahren?

InformationsquelleAutor rupali | 2015-04-15

Schreibe einen Kommentar