<!--
  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.
-->
<configuration>
    <property>
        <name>dfs.replication</name>
        <value>2</value>
        <description>Block replication</description>
    </property>

    <property>
        <name>hive.exec.compress.output</name>
        <value>true</value>
        <description>Enable compress</description>
    </property>

    <property>
        <name>hive.auto.convert.join</name>
        <value>true</value>
        <description>Enables the optimization about converting common join into mapjoin</description>
    </property>

    <property>
        <name>hive.auto.convert.join.noconditionaltask</name>
        <value>true</value>
        <description>enable map-side join</description>
    </property>

    <property>
        <name>hive.auto.convert.join.noconditionaltask.size</name>
        <value>100000000</value>
        <description>enable map-side join</description>
    </property>

    <!--
    The default map outputs compress codec is org.apache.hadoop.io.compress.DefaultCodec,
    if SnappyCodec is supported, org.apache.hadoop.io.compress.SnappyCodec could be used.
    -->
    <!--
    <property>
        <name>mapreduce.map.output.compress.codec</name>
        <value>org.apache.hadoop.io.compress.SnappyCodec</value>
        <description></description>
    </property>
    -->
    <!--
    The default job outputs compress codec is org.apache.hadoop.io.compress.DefaultCodec,
    if SnappyCodec is supported, org.apache.hadoop.io.compress.SnappyCodec could be used.
    -->
    <!--
    <property>
        <name>mapreduce.output.fileoutputformat.compress.codec</name>
        <value>org.apache.hadoop.io.compress.SnappyCodec</value>
        <description></description>
    </property>
    <property>
        <name>mapreduce.output.fileoutputformat.compress.type</name>
        <value>BLOCK</value>
        <description>The compression type to use for job outputs</description>
    </property>

    -->
    <property>
        <name>mapreduce.job.split.metainfo.maxsize</name>
        <value>-1</value>
        <description>The maximum permissible size of the split metainfo file.
            The JobTracker won't attempt to read split metainfo files bigger than
            the configured value. No limits if set to -1.
        </description>
    </property>

    <property>
        <name>hive.stats.autogather</name>
        <value>true</value>
        <description>Collect statistics for newly created intermediate table</description>
    </property>

    <property>
        <name>hive.merge.mapfiles</name>
        <value>false</value>
        <description>Disable Hive's auto merge</description>
    </property>

    <property>
        <name>hive.merge.mapredfiles</name>
        <value>false</value>
        <description>Disable Hive's auto merge</description>
    </property>
    <property>
        <name>mapreduce.map.output.compress.codec</name>
        <value>org.apache.hadoop.io.compress.SnappyCodec</value>
        <description></description>
    </property>
    <property>
        <name>mapreduce.output.fileoutputformat.compress.codec</name>
        <value>org.apache.hadoop.io.compress.SnappyCodec</value>
        <description></description>
    </property>
</configuration>
