incubator-bigtop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Roman Shaposhnik (JIRA)" <>
Subject [jira] [Commented] (BIGTOP-620) Add test for dfsadmin commands
Date Sat, 16 Jun 2012 00:09:42 GMT


Roman Shaposhnik commented on BIGTOP-620:

Sorry for the belated reply (Hadoop summit). And sorry for not explaining Shell functionality
-- basically you don't need to do sudo once you've created a shell under particular user.
IOW, the following:
sh.exec("sudo -u hdfs hdfs dfsadmin -report"); 

should be 

shHDFS.exec("hdfs dfsadmin -report"); 

but the shell should be create like this:

static Shell shHDFS = new Shell("/bin/bash", "hdfs");

To answer your earlier question: the tests can't assume that they run on the NameNode, everything
else should be fine.

At some point we might need to introduce a feature that would let us classify the tests into
buckets that are potentially destructive to the environment and the safe ones. But this is
an open question of how to do easy-to-use testsuite creation.
> Add test for dfsadmin commands
> ------------------------------
>                 Key: BIGTOP-620
>                 URL:
>             Project: Bigtop
>          Issue Type: Test
>    Affects Versions: 0.4.0
>            Reporter: Sujay Rau
>             Fix For: 0.4.0
>         Attachments: bigtop-620.patch
> Wrote a test that goes through the "hdfs dfsadmin -???" commands and makes sure no errors
are returned as well as checking some functionality. 

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message