hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-8454) TestImportTsv failing due to configuration issues
Date Wed, 12 Jun 2013 04:50:30 GMT

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

stack updated HBASE-8454:
-------------------------

    Fix Version/s:     (was: 0.95.1)
                   0.95.2
    
> TestImportTsv failing due to configuration issues
> -------------------------------------------------
>
>                 Key: HBASE-8454
>                 URL: https://issues.apache.org/jira/browse/HBASE-8454
>             Project: HBase
>          Issue Type: Sub-task
>          Components: mapreduce, test
>    Affects Versions: 0.98.0, 0.94.8, 0.95.1
>            Reporter: Andrew Purtell
>             Fix For: 0.98.0, 0.95.2, 0.94.9
>
>         Attachments: 8454-branch-0.94.patch, 8454.patch
>
>
> It looks like TestImportTsv can be fixed once HBASE-8453 is applied with this additional
delta:
> {noformat}
> diff --git a/src/test/java/org/apache/hadoop/hbase/mapreduce/TestImportTsv.java b/src/test/java/org/
> index 77d044b..0da6f0a 100644
> --- a/src/test/java/org/apache/hadoop/hbase/mapreduce/TestImportTsv.java
> +++ b/src/test/java/org/apache/hadoop/hbase/mapreduce/TestImportTsv.java
> @@ -26,6 +26,7 @@ import java.util.ArrayList;
>  import org.apache.commons.logging.Log;
>  import org.apache.commons.logging.LogFactory;
>  import org.apache.hadoop.hbase.*;
> +import org.apache.hadoop.mapred.JobConf;
>  import org.apache.hadoop.mapreduce.Job;
>  import org.apache.hadoop.fs.FSDataOutputStream;
>  import org.apache.hadoop.fs.Path;
> @@ -289,7 +290,10 @@ public class TestImportTsv {
>          LOG.info("set the hbaseAdmin");
>          ImportTsv.createHbaseAdmin(conf);
>        }
> -      Job job = ImportTsv.createSubmittableJob(conf, args);
> +
> +      JobConf jobConf = htu1.getMRCluster().createJobConf();
> +      HBaseConfiguration.merge(jobConf, conf);
> +      Job job = ImportTsv.createSubmittableJob(jobConf, args);
>        job.waitForCompletion(false);
>        assertTrue(job.isSuccessful());
> {noformat}
> Tested with Hadoop 2.0.4 + HBase 0.94.7.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message