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

Roman Shaposhnik commented on BIGTOP-258:
-----------------------------------------

Aha! So you're worried about the code in setUp(). That's a legitimate concern. 
But I think the proper way of fixing it is to change that code, since we're 
typically following a paradigm of having env. dependencies as final precisely 
so that they don't get altered inside of tests themselves. So perhaps something 
like:

shell.exec("cat $DATA_DIR/mysql-create-db.sql | $MYSQL_COMMAND -u root 
${''.equals(MYSQL_ROOTPW) ?: '-p' + MYSQL_ROOTPW}");
                
> Compilation Error in sqoop-integration project when using Eclipse
> -----------------------------------------------------------------
>
>                 Key: BIGTOP-258
>                 URL: https://issues.apache.org/jira/browse/BIGTOP-258
>             Project: Bigtop
>          Issue Type: Bug
>          Components: Tests
>    Affects Versions: 0.1.0
>         Environment: RHEL 6.1, 64-bit
> Eclipse 3.7 SR1
>            Reporter: Will McQueen
>            Assignee: Will McQueen
>         Attachments: BIGTOP-258.patch
>
>
> The squoop-integration project has a compiler error in these 2 files:
> 1) IntegrationTestSqoopHBase.groovy
> 2) IntegrationTestSqoopHive.groovy
> In both cases, the setUp method has a statement that's attempting to assign a 
> value to a final field:
>      MYSQL_ROOTPW = " -p$MYSQL_ROOTPW";

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to