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

Enis Soztutar commented on HBASE-7938:
--------------------------------------

This looks good. One nit is to change the test method name generateAndLoad() to 
start with "test" per convention. 
This does not run using the local mapred job runner, but that is a know issue 
AFAIR. 
One difference between running from command line and running by: 
HBASE_CLASSPATH=hbase-it/target/hbase-it-0.97-SNAPSHOT-tests.jar bin/hbase 
org.apache.hadoop.hbase.IntegrationTestsDriver -test IntegrationTestImportTsv
is that the latter will run all of the tests (both TestImportTsv and 
IntegrationTestImportTsv) while the former will only run the generateAndLoad() 
test.

Also got this exception while running from IntegrationTestsDriver.
{code}
3) 
testBulkOutputWithoutAnExistingTable(org.apache.hadoop.hbase.mapreduce.IntegrationTestImportTsv)
org.apache.hadoop.mapred.FileAlreadyExistsException: Output directory 
/Users/enis/projects/svn-repos/hbase/target/test-data/644629ba-0333-473f-ac59-1adc1726ff8c/hfiles
 already exists
{code}
                
> Add integration test for ImportTsv/LoadIncrementalHFiles workflow
> -----------------------------------------------------------------
>
>                 Key: HBASE-7938
>                 URL: https://issues.apache.org/jira/browse/HBASE-7938
>             Project: HBase
>          Issue Type: Sub-task
>          Components: mapreduce
>            Reporter: Nick Dimiduk
>            Assignee: Nick Dimiduk
>             Fix For: 0.95.0, 0.98.0
>
>         Attachments: 
> 0001-HBASE-7938-Add-integration-test-for-ImportTsv-LoadIn.patch
>
>
> We have existing unit tests for smoke-testing the packaged MR jobs, however 
> they do not create a runtime environment that is true to running on a real MR 
> cluster. This is particularly true in regard to classpaths (HBASE-7934) but 
> also other static state (HBASE-4802). An integration test that can be pointed 
> to run on a pseudo-distributed Hadoop deployed on localhost would find these 
> kinds of problems.

--
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

Reply via email to