Sample core-site.xml for Apache Hadoop 2.7.3

This is a sample core-site.xml for Apache Hadoop with essential properties. A skeleton core-site.xml is also found in etc/hadoop directory after unpacking the tarball.

core-site.xml
<?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.
-->

<!-- Put site-specific property overrides in this file. -->
<configuration>

  <property>
    <name>fs.defaultFS</name>
    <value>hdfs://orcl1:8020</value>
    <description>NameNode URI</description>
    <final>true</final>
  </property>

  <property>
    <name>io.file.buffer.size</name>
    <value>131072</value>
    <description>Size of read/write buffer used in SequenceFiles.</description>
    <final>true</final>
  </property>
	
  <property>
    <name>fs.trash.interval</name>
    <value>0</value>
    <description>
       Number of minutes between trash checkpoints.
       If zero, the trash feature is disabled.
    </description>
  </property>

  <!-- Web Interface Configuration -->
  <property>
    <name>webinterface.private.actions</name>
    <value>false</value>
    <description>
         If set to true, the web interfaces of JT and NN may contain
         actions, such as kill job, delete file, etc., that should
         not be exposed to public. Enable this option if the interfaces
         are only reachable by those who have the right authorization.
    </description>
  </property>

 <property>
   <name>hadoop.security.authentication</name>
   <value>simple</value>
   <description>
     Set the authentication for the cluster. 
     Valid values : simple or kerberos.
   </description>
 </property>

 <property>
   <name>hadoop.security.authorization</name>
   <value>false</value>
   <description>
      Enable authorization for different protocols.
   </description>
 </property>

</configuration>
Comments