Impala
Impalaistheopensource,nativeanalyticdatabaseforApacheHadoop.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
global-flags.cc
Go to the documentation of this file.
1 // Copyright 2012 Cloudera Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 
15 //
16 // This file contains global flags, ie, flags which don't belong to a particular
17 // component (and would therefore need to be DEFINE'd in every source file containing
18 // a main()), or flags that are referenced from multiple places and having them here
19 // calms the linker errors that would otherwise ensue.
20 
21 #include "common/logging.h"
22 
23 // This will be defaulted to the host name returned by the OS.
24 // This name is used in the principal generated for Kerberos authorization.
25 DEFINE_string(hostname, "", "Hostname to use for this daemon, also used as part of "
26  "the Kerberos principal, if enabled. If not set, the system default will be"
27  " used");
28 
29 DEFINE_int32(be_port, 22000, "port on which ImpalaInternalService is exported");
30 
31 // Kerberos is enabled if and only if principal is set.
32 DEFINE_string(principal, "", "Kerberos principal. If set, both client and backend network"
33  "connections will use Kerberos encryption and authentication.");
34 DEFINE_string(be_principal, "", "Kerberos principal for backend network connections only,"
35  "overriding --principal if set.");
36 DEFINE_string(keytab_file, "", "Absolute path to Kerberos keytab file");
37 DEFINE_string(krb5_conf, "", "Absolute path to Kerberos krb5.conf if in a non-standard "
38  "location. Does not normally need to be set.");
39 DEFINE_string(krb5_debug_file, "", "Turn on Kerberos debugging and output to this file");
40 
41 DEFINE_string(mem_limit, "80%", "Process memory limit specified as number of bytes "
42  "('<int>[bB]?'), megabytes ('<float>[mM]'), gigabytes ('<float>[gG]'), "
43  "or percentage of the physical memory ('<int>%'). "
44  "Defaults to bytes if no unit is given");
45 
46 DEFINE_bool(enable_process_lifetime_heap_profiling, false, "(Advanced) Enables heap "
47  "profiling for the lifetime of the process. Profile output will be stored in the "
48  "directory specified by -heap_profile_dir. Enabling this option will disable the "
49  "on-demand/remote server profile handlers.");
50 
51 DEFINE_string(heap_profile_dir, "", "Output directory to store heap profiles. If not set "
52  " profiles are stored in the current working directory.");
53 
54 DEFINE_bool(abort_on_config_error, true, "Abort Impala startup if there are improper "
55  "configs or running on unsupported hardware.");
56 
57 DEFINE_bool(disable_mem_pools, false, "Set to true to disable memory pooling. "
58  "This can be used to help diagnose memory corruption issues.");
59 
60 DEFINE_bool(compact_catalog_topic, false, "If true, catalog updates sent via the "
61  "statestore are compacted before transmission. This saves network bandwidth at the"
62  " cost of a small quantity of CPU time. Enable this option in cluster with large"
63  " catalogs. It must be enabled on both the catalog service, and all Impala demons.");
64 
65 DEFINE_string(redaction_rules_file, "", "Absolute path to sensitive data redaction "
66  "rules. The rules will be applied to all log messages and query text shown in the "
67  "Web UI and audit records. Query results will not be affected. Refer to the "
68  "documentation for the rule file format.");
DEFINE_string(hostname,"","Hostname to use for this daemon, also used as part of ""the Kerberos principal, if enabled. If not set, the system default will be"" used")
DEFINE_bool(enable_process_lifetime_heap_profiling, false,"(Advanced) Enables heap ""profiling for the lifetime of the process. Profile output will be stored in the ""directory specified by -heap_profile_dir. Enabling this option will disable the ""on-demand/remote server profile handlers.")
DEFINE_int32(be_port, 22000,"port on which ImpalaInternalService is exported")