[jira] [Resolved] (CARBONDATA-712) 'BAD_RECORDS_ACTION'='REDIRECT' is not working properly.

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Resolved] (CARBONDATA-712) 'BAD_RECORDS_ACTION'='REDIRECT' is not working properly.

Akash R Nilugal (Jira)

     [ https://issues.apache.org/jira/browse/CARBONDATA-712?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ravindra Pesala resolved CARBONDATA-712.
----------------------------------------
       Resolution: Fixed
         Assignee: anubhav tarar
    Fix Version/s: 1.0.1-incubating

> '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
>            Assignee: anubhav tarar
>            Priority: Minor
>             Fix For: 1.0.1-incubating
>
>         Attachments: 2000_UniqData.csv, uniq_shared_dictionary.zip
>
>          Time Spent: 4h 50m
>  Remaining Estimate: 0h
>
> 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)