Bug 909446
| Summary: | No data from dfsadmin -report | ||
|---|---|---|---|
| Product: | [Community] GlusterFS | Reporter: | Matthew Farrellee <matt> |
| Component: | gluster-hadoop | Assignee: | Bradley Childs <bchilds> |
| Status: | CLOSED EOL | QA Contact: | hcfs-gluster-bugs |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | mainline | CC: | bugs, chrisw, eboyd, poelstra, rhs-bugs, vbellur |
| Target Milestone: | --- | Keywords: | Triaged |
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-10-22 15:46:38 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
| Bug Depends On: | |||
| Bug Blocks: | 947153 | ||
|
Description
Matthew Farrellee
2013-02-08 19:55:54 UTC
Per Feb-13 bug triage meeting, reassigning to swatt. Assigning to Jay Are we sure this is a bug in gluster-fs hadoop plugin? GlusterFS Hadoop plugin *does not* replace the hadoop org.apache.hadoop.DistributedFileSystem, but rather, implements a FileSystem class of its own (GlusterFileSystem). Meanwhile - the DFS admin is supposed to be specific to DistributedFileSystem instances - this is enforced statically in the code, i.e. . https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20/src/hdfs/org/apache/hadoop/hdfs/tools/DFSAdmin.java /** * An abstract class for the execution of a file system command */ abstract private static class DFSAdminCommand extends Command { final DistributedFileSystem dfs; /** Constructor */ public DFSAdminCommand(FileSystem fs) { super(fs.getConf()); if (!(fs instanceof DistributedFileSystem)) { throw new IllegalArgumentException("FileSystem " + fs.getUri() + " is not a distributed file system"); } this.dfs = (DistributedFileSystem)fs; } } Actually, at further glance - the report() function does nothing when run against a non "DistributedFileSystem". Where we define DistributedFileSystem as a file system which is an instance of class org.apache.hadoop.hdfs.DistributedFileSystem; SUGGESTION: This should be filed as a JIRA to the apache hadoop folks (i.e. to remove the hardcoded dependency on g.apache.hadoop.hdfs.DistributedFileSystem) ? Currently - the DFSADmin class does seem to be pluggable. Marking as low since this may not be a "real" bug. We have to determine the correct behaviour for hadoop dfs calls when running on gluster. Related - https://issues.apache.org/jira/browse/HDFS-4837 A service could exist for HCFS Gluster that implements some NameNode APIs used by various tools, such as dfsadmin or even the web ui. Per 11/13 bug triage meeting, re-assigning to bchilds. because of the large number of bugs filed against mainline version\ is ambiguous and about to be removed as a choice. If you believe this is still a bug, please change the status back to NEW and choose the appropriate, applicable version for it. |