[jira] [Commented] (CARBONDATA-288) In hdfs bad record logger is failing in writting the bad records

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

[jira] [Commented] (CARBONDATA-288) In hdfs bad record logger is failing in writting the bad records

Akash R Nilugal (Jira)

    [ https://issues.apache.org/jira/browse/CARBONDATA-288?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15568858#comment-15568858 ]

ASF GitHub Bot commented on CARBONDATA-288:
-------------------------------------------

Github user jackylk commented on a diff in the pull request:

    https://github.com/apache/incubator-carbondata/pull/218#discussion_r83014256
 
    --- Diff: integration/spark/src/main/java/org/apache/carbondata/spark/load/CarbonLoadModel.java ---
    @@ -117,9 +117,9 @@
       private String badRecordsLoggerEnable;
     
       /**
    -   * defines the option to specify the bad record log redirect to raw csv
    +   * defines the option to specify the bad record logger action
        */
    -  private String badRecordsLoggerRedirect;
    +  private String badRecordsLoggerAction;
    --- End diff --
   
    This action is not for Logger, right? Perhaps `badRecordsAction` is a better name?
    And it should be an enum instead of String


> In hdfs bad record logger is failing in writting the bad records
> ----------------------------------------------------------------
>
>                 Key: CARBONDATA-288
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-288
>             Project: CarbonData
>          Issue Type: Bug
>    Affects Versions: 0.2.0-incubating
>            Reporter: Mohammad Shahid Khan
>            Assignee: Mohammad Shahid Khan
>            Priority: Minor
>             Fix For: 0.2.0-incubating
>
>
> For HDFS file system
> CarbonFile logFile = FileFactory.getCarbonFile(filePath, FileType.HDFS);
> if filePath does not exits then
> Calling CarbonFile.getPath() throws NullPointerException.
> Solution:
> If file does not exist then before accessing the file must be created first



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)