hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Hentschel (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-18197) import.java, job output is printing two times.
Date Sun, 09 Jul 2017 10:17:00 GMT

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

Jan Hentschel updated HBASE-18197:
----------------------------------
    Attachment: HBASE-18197.branch-1.0.001.patch
                HBASE-18197.branch-1.2.001.patch

> import.java, job output is printing two times.
> ----------------------------------------------
>
>                 Key: HBASE-18197
>                 URL: https://issues.apache.org/jira/browse/HBASE-18197
>             Project: HBase
>          Issue Type: Bug
>          Components: hbase
>    Affects Versions: 1.0.2, 1.2.0, 1.4.0
>            Reporter: Chandra Sekhar
>            Assignee: Jan Hentschel
>            Priority: Trivial
>         Attachments: HBASE-18197.branch-1.0.001.patch, HBASE-18197.branch-1.0.001.patch,
HBASE-18197.branch-1.2.001.patch, HBASE-18197.branch-1.2.001.patch
>
>
> import.java, job output is printing two times.
> {quote}
> after job completed, job.waitForCompletion(true) is calling two times.
> {quote}
> {code}
> Job job = createSubmittableJob(conf, otherArgs);
>     boolean isJobSuccessful = job.waitForCompletion(true);
>     if(isJobSuccessful){
>       // Flush all the regions of the table
>       flushRegionsIfNecessary(conf);
>     }
>     long inputRecords = job.getCounters().findCounter(TaskCounter.MAP_INPUT_RECORDS).getValue();
>     long outputRecords = job.getCounters().findCounter(TaskCounter.MAP_OUTPUT_RECORDS).getValue();
>     if (outputRecords < inputRecords) {
>       System.err.println("Warning, not all records were imported (maybe filtered out).");
>       if (outputRecords == 0) {
>         System.err.println("If the data was exported from HBase 0.94 "+
>             "consider using -Dhbase.import.version=0.94.");
>       }
>     }
>     System.exit(job.waitForCompletion(true) ? 0 : 1);
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message