# 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.
apiVersion: v1
kind: ConfigMap
metadata:
  name: ozone-config
  labels:
    app: ozone
    component: config
data:
  #TODO make it configurable
  CORE-SITE.XML_fs.defaultFS: "o3fs://bucket1.vol1.ozone-om-0.ozone-om/"
  CORE-SITE.xml_fs.AbstractFileSystem.o3fs.impl: org.apache.hadoop.fs.ozone.OzFs
  OZONE-SITE.XML_hdds.datanode.dir: "/data/storage"
  OZONE-SITE.XML_ozone.scm.datanode.id.dir: "/data"
  OZONE-SITE.XML_ozone.metadata.dirs: "/data/metadata"
  OZONE-SITE.XML_ozone.scm.block.client.address: "ozone-scm-0.ozone-scm"
  OZONE-SITE.XML_ozone.om.address: "ozone-om-0.ozone-om"
  OZONE-SITE.XML_ozone.scm.client.address: "ozone-scm-0.ozone-scm"
  OZONE-SITE.XML_ozone.scm.names: "ozone-scm-0.ozone-scm"
  OZONE-SITE.XML_ozone.enabled: "true"
  OZONE-SITE.XML_hdds.scm.safemode.min.datanode: "3"
  OZONE-SITE.XML_ozone.om.http-address: ozone-om-0.ozone-om:9874
  OZONE-SITE.XML_ozone.recon.address: ozone-recon-0.ozone-recon
  LOG4J.PROPERTIES_log4j.rootLogger: "INFO, stdout"
  LOG4J.PROPERTIES_log4j.appender.stdout: "org.apache.log4j.ConsoleAppender"
  LOG4J.PROPERTIES_log4j.appender.stdout.layout: "org.apache.log4j.PatternLayout"
  LOG4J.PROPERTIES_log4j.appender.stdout.layout.ConversionPattern: "%d{yyyy-MM-dd HH:mm:ss} %-5p %c{1}:%L - %m%n"
  #TODO make it optional
  MAPRED-SITE.XML_mapreduce.application.classpath: "/opt/hadoop/share/hadoop/mapreduce/*:/opt/hadoop/share/hadoop/mapreduce/lib/*:/opt/ozonefs/hadoop-ozone-filesystem.jar"
  OZONE_OPTS: -XX:ParallelGCThreads=8
