carbondata-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "SWATI RAO (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CARBONDATA-712) 'BAD_RECORDS_ACTION'='REDIRECT' is not working properly.
Date Fri, 17 Feb 2017 13:06:41 GMT
SWATI RAO created CARBONDATA-712:
------------------------------------

             Summary: 'BAD_RECORDS_ACTION'='REDIRECT' is not working properly.
                 Key: CARBONDATA-712
                 URL: https://issues.apache.org/jira/browse/CARBONDATA-712
             Project: CarbonData
          Issue Type: Bug
          Components: data-load
    Affects Versions: 1.0.0-incubating
         Environment: Spark 1.6
            Reporter: SWATI RAO
            Priority: Minor
         Attachments: 2000_UniqData.csv, uniq_shared_dictionary.zip

When we tried to load data using 'BAD_RECORDS_ACTION'='REDIRECT' the bad record were not written
in the file. I have set the property as carbon.badRecords.location=/opt/Carbon/Spark/badrecords.
PFA for bad_record files which is empty & query csv.

CREATE TABLE uniq_shared_dictionary (CUST_ID int,CUST_NAME String,ACTIVE_EMUI_VERSION string,
DOB timestamp, DOJ timestamp, BIGINT_COLUMN1 bigint,BIGINT_COLUMN2 bigint,DECIMAL_COLUMN1
decimal(30,10), DECIMAL_COLUMN2 decimal(36,10),Double_COLUMN1 double, Double_COLUMN2 double,INTEGER_COLUMN1
int) STORED BY 'org.apache.carbondata.format' TBLPROPERTIES('DICTIONARY_INCLUDE'='CUST_ID,Double_COLUMN2,DECIMAL_COLUMN2','columnproperties.CUST_ID.shared_column'='shared.CUST_ID','columnproperties.decimal_column2.shared_column'='shared.decimal_column2')

LOAD DATA INPATH 'HDFS_URL/BabuStore/Data/uniqdata/2000_UniqData.csv' into table uniq_shared_dictionary
OPTIONS('DELIMITER'=',' , 'QUOTECHAR'='"','BAD_RECORDS_LOGGER_ENABLE'='TRUE', 'BAD_RECORDS_ACTION'='REDIRECT','FILEHEADER'='CUST_ID,CUST_NAME,ACTIVE_EMUI_VERSION,DOB,DOJ,BIGINT_COLUMN1,BIGINT_COLUMN2,DECIMAL_COLUMN1,DECIMAL_COLUMN2,Double_COLUMN1,Double_COLUMN2,INTEGER_COLUMN1','SINGLE_Pass'='true')

select Cust_Id from uniq_shared_dictionary ;

The bad_records are also not loaded in the table.





--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message