HADOOP-8356. FileSystem service loading mechanism should print the FileSystem impl it is failing to load (tucu)

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1333744 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Alejandro Abdelnur 2012-05-04 03:10:26 +00:00
parent dd8b7ae9d8
commit af66607406
2 changed files with 4 additions and 1 deletions

View File

@ -290,6 +290,9 @@ Release 2.0.0 - UNRELEASED
HADOOP-8350. Improve NetUtils.getInputStream to return a stream which has
a tunable timeout. (todd)
HADOOP-8356. FileSystem service loading mechanism should print the FileSystem
impl it is failing to load (tucu)
OPTIMIZATIONS
BUG FIXES

View File

@ -199,7 +199,7 @@ public void initialize(URI name, Configuration conf) throws IOException {
* @return the protocol scheme for the FileSystem.
*/
public String getScheme() {
throw new UnsupportedOperationException("Not implemented by the FileSystem implementation");
throw new UnsupportedOperationException("Not implemented by the " + getClass().getSimpleName() + " FileSystem implementation");
}
/** Returns a URI whose scheme and authority identify this FileSystem.*/