blob: a6edb365ff31245632faacdcf3bbe3cf839e67ae [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="configuration.xsl"?>
<!--
Licensed 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. See accompanying LICENSE file.
-->
<!--
This template file contains settings needed to run Apache Hadoop jobs
with Ignite's distributed in-memory file system GGFS.
You can replace '$HADOOP_HOME/etc/hadoop/core-site.xml' file with this one
to work with Ignite IGFS nodes running on localhost (these local nodes can be
a part of distributed cluster though). To work with file system on remote
hosts you need to change the host of file system URI to any host running
Ignite's IGFS node.
Note that Ignite jars must be in Apache Hadoop client classpath to work
with this configuration.
Run script '$IGNITE_HOME/bin/setup-hadoop.{sh|bat}' for Apache Hadoop client setup.
-->
<configuration>
<!--
Set default file system to IGFS instance named "igfs" configured in Ignite.
-->
<property>
<name>fs.defaultFS</name>
<value>igfs://igfs@localhost</value>
</property>
<!--
Set Hadoop 1.* file system implementation class for GGFS.
-->
<property>
<name>fs.igfs.impl</name>
<value>org.apache.ignite.hadoop.fs.v1.IgniteHadoopFileSystem</value>
</property>
<!--
Set Hadoop 2.* file system implementation class for GGFS.
-->
<property>
<name>fs.AbstractFileSystem.igfs.impl</name>
<value>org.apache.ignite.hadoop.fs.v2.IgniteHadoopFileSystem</value>
</property>
<!--
Disallow data node replacement since it does not make sense for Ignite's IGFS nodes.
-->
<property>
<name>dfs.client.block.write.replace-datanode-on-failure.policy</name>
<value>NEVER</value>
</property>
</configuration>