blob: deb31b34e883d307ff3ac1a6acdd425b14a1675b [file]
// 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.
// This file tells Drill to consider this module when class path scanning.
// This file can also include any supplementary configuration information.
// This file is in HOCON format, see https://github.com/typesafehub/config/blob/master/HOCON.md for more information.
drill {
classpath.scanning {
base.classes : ${?drill.classpath.scanning.base.classes} [
org.apache.drill.exec.expr.DrillFunc,
org.apache.drill.exec.expr.fn.PluggableFunctionRegistry,
org.apache.drill.exec.physical.base.PhysicalOperator,
org.apache.drill.exec.physical.impl.BatchCreator,
org.apache.drill.exec.physical.impl.RootCreator,
org.apache.drill.exec.rpc.user.security.UserAuthenticator,
org.apache.drill.exec.store.dfs.FormatPlugin,
org.apache.drill.exec.store.StoragePlugin
],
annotations += org.apache.drill.exec.expr.annotations.FunctionTemplate
packages : ${?drill.classpath.scanning.packages} [
org.apache.drill.exec.expr,
org.apache.drill.exec.physical,
org.apache.drill.exec.store,
org.apache.drill.exec.rpc.user.security
]
}
}
drill.client: {
supports-complex-types: true
}
// Directory is used as base for temporary storage of Dynamic UDF jars.
// Set this property if you want to have custom temporary directory, instead of generated at runtime.
// By default ${DRILL_TMP_DIR} is used if set.
// drill.tmp-dir: "/tmp"
// drill.tmp-dir: ${?DRILL_TMP_DIR}
drill.exec: {
cluster-id: "drillbits1"
rpc: {
user: {
timeout: 30,
server: {
port: 31010
threads: 1,
memory: {
reservation: 0,
maximum: 9223372036854775807
}
}
client: {
threads: 1
}
},
bit: {
timeout: 300,
server: {
port : 31011,
retry:{
count: 7200,
delay: 500
},
threads: 10
memory: {
control: {
reservation: 0,
maximum: 9223372036854775807
},
data: {
reservation: 0,
maximum: 9223372036854775807
}
}
}
},
use.ip : false
},
optimizer: {
implementation: "org.apache.drill.exec.opt.IdentityOptimizer"
},
storage: {
registry: "org.apache.drill.exec.store.StoragePluginRegistryImpl",
file: {
text: {
buffer.size: 262144,
batch.size: 4000
}
}
},
zk: {
connect: "localhost:2181",
root: "drill",
refresh: 500,
timeout: 5000,
retry: {
count: 7200,
delay: 500
}
},
http: {
enabled: true,
ssl_enabled: false,
port: 8047
session_max_idle_secs: 3600, # Default value 1hr
cors: {
enabled: false,
allowedOrigins: ["null"],
allowedMethods: ["GET", "POST", "HEAD", "OPTIONS"],
allowedHeaders: ["X-Requested-With", "Content-Type", "Accept", "Origin"],
credentials: true
}
},
network: {
start: 35000
},
work: {
affinity.factor: 1.2
},
sys.store.provider: {
class: "org.apache.drill.exec.store.sys.store.provider.ZookeeperPersistentStoreProvider",
local: {
path: "/tmp/drill",
write: true
}
},
impersonation: {
enabled: false,
max_chained_user_hops: 3
},
security.user.auth {
enabled: false,
impl: "pam",
pam_profiles: [ "sudo", "login" ]
},
trace: {
directory: "/tmp/drill-trace",
filesystem: "file:///"
},
tmp: {
directories: ["/tmp/drill"],
filesystem: "drill-local:///"
},
buffer:{
size: "6",
spooling: {
delete: true,
size: 100000000
}
},
compile: {
compiler: "DEFAULT",
debug: true,
janino_maxsize: 262144,
cache_max_size: 1000
},
sort: {
purge.threshold : 1000,
external: {
batch.size : 4000,
spill: {
batch.size : 4000,
group.size : 40000,
threshold : 40000,
directories : [ "/tmp/drill/spill" ],
fs : "file:///"
}
}
},
memory: {
operator: {
max: 20000000000,
initial: 10000000
},
fragment: {
max: 20000000000,
initial: 20000000
}
},
debug: {
return_error_for_failure_in_cancelled_fragments: false
},
scan: {
threadpool_size: 8,
decode_threadpool_size: 1
}
udf: {
retry-attempts: 5,
directory: {
// Set this property if custom file system should be used to create remote directories, ex: fs: "file:///".
// fs: "",
// Set this property if custom absolute root should be used for remote directories, ex: root: "/app/drill".
// root: "",
// Relative base directory for all udf directories (local and remote).
base: ${drill.exec.zk.root}"/udf",
// Relative path to local udf directory.
// Generated temporary directory is used as root unless ${DRILL_TMP_DIR} or ${drill.tmp-dir} is set.
local: ${drill.exec.udf.directory.base}"/local"
// Relative path to all remote udf directories.
// Directories are created under default file system unless ${drill.exec.udf.directory.fs} is set.
// User home directory is used as root unless ${drill.exec.udf.directory.root} is set.
staging: ${drill.exec.udf.directory.base}"/staging",
registry: ${drill.exec.udf.directory.base}"/registry",
tmp: ${drill.exec.udf.directory.base}"/tmp",
}
}
}
drill.jdbc: {
batch_queue_throttling_threshold: 100
}