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

Karl Wright edited comment on CONNECTORS-858 at 1/16/14 2:33 PM:
-----------------------------------------------------------------

Here we go:

{code}
C:\logs\META-INF\services>more org.apache.hadoop.fs.FileSystem
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

org.apache.hadoop.fs.LocalFileSystem
org.apache.hadoop.fs.viewfs.ViewFileSystem
org.apache.hadoop.fs.s3.S3FileSystem
org.apache.hadoop.fs.s3native.NativeS3FileSystem
org.apache.hadoop.fs.ftp.FTPFileSystem
org.apache.hadoop.fs.HarFileSystem
{code}

These are all present in the hadoop-common jar, so what is clearly the problem 
is that the ManifoldCF class loader is not involved in finding the meta 
information, because the current class context loader is what is used.  So all 
we need to do is override the class loader for the initial access to FileSystem 
and it should work.


was (Author: [email protected]):
Here we go:

{code}
C:\logs\META-INF\services>more org.apache.hadoop.fs.FileSystem
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements.  See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License.  You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

org.apache.hadoop.fs.LocalFileSystem
org.apache.hadoop.fs.viewfs.ViewFileSystem
org.apache.hadoop.fs.s3.S3FileSystem
org.apache.hadoop.fs.s3native.NativeS3FileSystem
org.apache.hadoop.fs.ftp.FTPFileSystem
org.apache.hadoop.fs.HarFileSystem
{code}

These are all present in the hadoop-common jar, so what is clearly the problem 
is that the ManifoldCF class loader is not capable of finding the meta 
information from jars in connector-lib.  This may or may not be easily 
addressed; researching now.

> IO exception: No FileSystem for scheme: hdfs
> --------------------------------------------
>
>                 Key: CONNECTORS-858
>                 URL: https://issues.apache.org/jira/browse/CONNECTORS-858
>             Project: ManifoldCF
>          Issue Type: Bug
>          Components: HDFS connector
>    Affects Versions: ManifoldCF 1.5
>            Reporter: Minoru Osuka
>            Assignee: Minoru Osuka
>             Fix For: ManifoldCF 1.5
>
>
> Exception occurs in HDFS Connector.
> Connection status:    Connection temporarily failed: IO exception: No 
> FileSystem for scheme: hdfs



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)

Reply via email to