-
Notifications
You must be signed in to change notification settings - Fork 9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HDFS-15329. Provide FileContext based ViewFSOverloadScheme implementation #2225
base: trunk
Are you sure you want to change the base?
Conversation
💔 -1 overall
This message was automatically generated. |
dddd30e
to
52289f0
Compare
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
/** | ||
* Sets up the configurations and starts the MiniDFSCluster. | ||
*/ | ||
@Before |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I remember I made this tests to starts cluster only once. That will improve tests time, You may want to have a look at corresponding ViewFileSystemOverloadScheme test class now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
import org.junit.Test;; | ||
|
||
|
||
/** |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ViewFileSystemOverloadScheme --> ViewFsOverloadScheme
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
// TODO: Should we fail here.? | ||
if (LOG.isDebugEnabled()) { | ||
LOG.debug( | ||
"Missing configuration for fs.viewfs.mounttable.path. Proceeding" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
avaialable -> available. ( Its might be my mistake, same typo may be there in Original class as well :-) )
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed. Also changed ViewFileSystemOverloadScheme.java
ba64b51
to
27777c2
Compare
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
The latest patch looks good to me. There is one findbug popped up. Could you please take a look at it. Otherwise I am +1 |
…tion ViewFsOverloadScheme is extended from the ViewFs for the overloaded scheme file system. To use this class, the following configurations need to be added in core-site.xml file. 1) fs.AbstractFileSystem.<scheme>.impl = org.apache.hadoop.fs.viewfs.ViewFsOverloadScheme and 2) fs.viewfs.overload.scheme.target.abstract.<scheme>.impl = "<hadoop compatible file system implementation class name for the <scheme>"
27777c2
to
c54d8c9
Compare
The findbug issue is not part of the new change. I have fixed the issue. |
💔 -1 overall
This message was automatically generated. |
There was a compilation error. Please check. (I triggered a rebuild to make sure it's not infra related) |
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
https://issues.apache.org/jira/browse/HDFS-15329