HiveServer2
Categories:
Advanced
Display Name | Description | Property Name | Default Value | API Name | Required |
---|---|---|---|---|---|
HiveServer2 Advanced Configuration Snippet (Safety Valve) for hive-site.xml | For advanced use only. A string to be inserted into hive-site.xml for this role only. |
hive_hs2_config_safety_valve
|
false | ||
HiveServer2 Environment Advanced Configuration Snippet (Safety Valve) | For advanced use only, key-value pairs (one on each line) to be inserted into a role's environment. Applies to configurations of this role except client configuration. |
hive_hs2_env_safety_valve
|
false | ||
Hive Metastore Connection Retries Count | Number of retries while opening a connection to the Hive Metastore Server |
hive.metastore.connect.retries
|
10 |
hive_metastore_connection_retries
|
false |
Enable Metrics Subsystem | Controls whether the Hive metrics subsystem is enabled for the role. |
hive.server2.metrics.enabled
|
true |
hive_metrics_enabled
|
false |
Metrics Sample File Location | The full path to a file with a sample of metrics exposed by the role. The sample is updated at the frequency configured by Metrics Sample File Logging Frequency. By default, the sample file is logged to a directory under the role log directory, e.g., /var/log/hive/metrics-hivemetastore/metrics.log. The setting only has an effect if "Enable Metrics Subsystem" is set to true. |
hive.service.metrics.file.location
|
hive_metrics_sample_file_location
|
false | |
Metrics Sample File Logging Frequency | The frequency at which the metrics are logged to the sample file. The setting only has an effect if "Enable Metrics Subsystem" is set to true. |
hive.service.metrics.file.frequency
|
30 second(s) |
hive_metrics_sample_logging_frequency
|
false |
Hive Downloaded Resources Directory | Local directory where Hive stores jars downloaded for remote file systems (HDFS). If not specified, Hive uses a default location. |
hive.downloaded.resources.dir
|
hiveserver2_downloaded_resources_dir
|
false | |
Enable Explain Logging | When enabled, HiveServer2 logs EXPLAIN EXTENDED output for every query at INFO log4j level. |
hive.log.explain.output
|
false |
hiveserver2_enable_explain_output
|
false |
Hive Local Scratch Directory | Local Directory where Hive stores jars and data when performing a MapJoin optimization. If not specified, Hive uses a default location. |
hive.exec.local.scratchdir
|
hiveserver2_exec_local_scratchdir
|
false | |
Hive HDFS Scratch Directory | Directory in HDFS where Hive writes intermediate data between MapReduce jobs. If not specified, Hive uses a default location. |
hive.exec.scratchdir
|
hiveserver2_exec_scratchdir
|
false | |
Fair Scheduler XML Advanced Configuration Snippet (Safety Valve) | An XML string that will be inserted verbatim into the Fair Scheduler allocations file. This configuration only has effect in CDH 5.8 or later. |
hiveserver2_fair_scheduler_safety_valve
|
false | ||
Idle Operation Timeout | Operation will be closed when not accessed for this duration of time, in milliseconds; disable by setting to zero. For a positive value, checked for operations in terminal state only (FINISHED, CANCELED, CLOSED, ERROR). For a negative value, checked for all of the operations regardless of state. |
hive.server2.idle.operation.timeout
|
6 hour(s) |
hiveserver2_idle_operation_timeout
|
false |
Idle Session Timeout | Session will be closed when not accessed for this duration of time, in milliseconds; disable by setting to zero or a negative value. |
hive.server2.idle.session.timeout
|
12 hour(s) |
hiveserver2_idle_session_timeout
|
false |
Exclude Live Operations From Session Idle Time | Session will be considered to be idle only if there is no activity, and there is no pending operation. This setting takes effect only if session idle timeout (hive.server2.idle.session.timeout) and checking (hive.server2.session.check.interval) are enabled. |
hive.server2.idle.session.check.operation
|
true |
hiveserver2_idle_session_timeout_check_operation
|
false |
Java Configuration Options for HiveServer2 | These arguments will be passed as part of the Java command line. Commonly, garbage collection flags, PermGen, or extra debugging flags would be passed here. Note: When CM version is 6.3.0 or greater, {{JAVA_GC_ARGS}} will be replaced by JVM Garbage Collection arguments based on the runtime Java JVM version. | -XX:+UseParNewGC -XX:+UseConcMarkSweepGC -XX:CMSInitiatingOccupancyFraction=70 -XX:+CMSParallelRemarkEnabled |
hiveserver2_java_opts
|
false | |
Maximum Query String Length for Show Locks | The maximum length allowed for the query string when the SHOW LOCKS EXTENDED command is executed. Important: The query string is truncated at the length set for this property. Setting this property to a large value puts pressure on ZooKeeper and might cause out-of-memory issues. |
hive.lock.query.string.max.length
|
10000 |
hiveserver2_lock_query_string_max_length
|
false |
Max HiveServer2 Threads | Maximum number of worker threads in HiveServer2's thread pool |
hive.server2.thrift.max.worker.threads
|
100 |
hiveserver2_max_threads
|
true |
Min HiveServer2 Threads | Minimum number of worker threads in HiveServer2's thread pool |
hive.server2.thrift.min.worker.threads
|
5 |
hiveserver2_min_threads
|
true |
Session Check Interval | The check interval for session/operation timeout, in milliseconds, which can be disabled by setting to zero or a negative value. |
hive.server2.session.check.interval
|
15 minute(s) |
hiveserver2_session_check_interval
|
false |
HiveServer2 WebUI Max Threads | The max threads for the HiveServer2 WebUI. |
hive.server2.webui.max.threads
|
50 |
hiveserver2_webui_max_threads
|
false |
HiveServer2 Advanced Configuration Snippet (Safety Valve) for core-site.xml | For advanced use only. A string to be inserted into core-site.xml for this role only. |
hs2_core_site_safety_valve
|
false | ||
HiveServer2 Logging Advanced Configuration Snippet (Safety Valve) | For advanced use only, a string to be inserted into log4j.properties for this role only. |
log4j_safety_valve
|
false | ||
Heap Dump Directory | Path to directory where heap dumps are generated when java.lang.OutOfMemoryError error is thrown. This directory is automatically created if it does not exist. If this directory already exists, role user must have write access to this directory. If this directory is shared among multiple roles, it should have 1777 permissions. The heap dump files are created with 600 permissions and are owned by the role user. The amount of free space in this directory should be greater than the maximum Java Process heap size configured for this role. |
oom_heap_dump_dir
|
/tmp |
oom_heap_dump_dir
|
false |
Dump Heap When Out of Memory | When set, generates heap dump file when java.lang.OutOfMemoryError is thrown. | true |
oom_heap_dump_enabled
|
true | |
Kill When Out of Memory | When set, a SIGKILL signal is sent to the role process when java.lang.OutOfMemoryError is thrown. | true |
oom_sigkill_enabled
|
true | |
Automatically Restart Process | When set, this role's process is automatically (and transparently) restarted in the event of an unexpected failure. This configuration applies in the time after the Start Wait Timeout period. | false |
process_auto_restart
|
true | |
Enable Metric Collection | Cloudera Manager agent monitors each service and each of its role by publishing metrics to the Cloudera Manager Service Monitor. Setting it to false will stop Cloudera Manager agent from publishing any metric for corresponding service/roles. This is usually helpful for services that generate large amount of metrics which Service Monitor is not able to process. | true |
process_should_monitor
|
true | |
Process Start Retry Attempts | Number of times to try starting a role's process when the process exits before the Start Wait Timeout period. After a process is running beyond the Start Wait Timeout, the retry count is reset. Setting this configuration to zero will prevent restart of the process during the Start Wait Timeout period. | 3 |
process_start_retries
|
false | |
Process Start Wait Timeout | The time in seconds to wait for a role's process to start successfully on a host. Processes which exit/crash before this time will be restarted until reaching the limit specified by the Start Retry Attempts count parameter. Setting this configuration to zero will turn off this feature. | 20 |
process_start_secs
|
false |
Logs
Display Name | Description | Property Name | Default Value | API Name | Required |
---|---|---|---|---|---|
HiveServer2 Log Directory | Directory where HiveServer2 will place its log files. | /var/log/hive |
hive_log_dir
|
false | |
Enable HiveServer2 Operations Logging | When enabled, HiveServer2 will temporarily save logs associated with ongoing operations. This enables clients like beeline and Hue to request and display logs for a particular ongoing operation. Logs are removed upon completion of operation. |
hive.server2.logging.operation.enabled
|
true |
hive_server2_logging_operation_enabled
|
false |
HiveServer2 Operations Log Directory | Top level directory where operation logs are temporarily stored if Enable HiveServer2 Operations Logging is true. Logs are stored in session and operation level subdirectories under this location and are removed on completion of operation. |
hive.server2.logging.operation.log.location
|
/var/log/hive/operation_logs |
hive_server2_logging_operation_log_location
|
false |
HiveServer2 Logging Threshold | The minimum log level for HiveServer2 logs | INFO |
log_threshold
|
false | |
HiveServer2 Maximum Log File Backups | The maximum number of rolled log files to keep for HiveServer2 logs. Typically used by log4j or logback. | 10 |
max_log_backup_index
|
false | |
HiveServer2 Max Log Size | The maximum size, in megabytes, per log file for HiveServer2 logs. Typically used by log4j or logback. | 200 MiB |
max_log_size
|
false |
Monitoring
Display Name | Description | Property Name | Default Value | API Name | Required |
---|---|---|---|---|---|
Enable Health Alerts for this Role | When set, Cloudera Manager will send alerts when the health of this role reaches the threshold specified by the EventServer setting eventserver_health_events_alert_threshold | true |
enable_alerts
|
false | |
Enable Configuration Change Alerts | When set, Cloudera Manager will send alerts when this entity's configuration changes. | false |
enable_config_alerts
|
false | |
Heap Dump Directory Free Space Monitoring Absolute Thresholds | The health test thresholds for monitoring of free space on the filesystem that contains this role's heap dump directory. | Warning: 10 GiB, Critical: 5 GiB |
heap_dump_directory_free_space_absolute_thresholds
|
false | |
Heap Dump Directory Free Space Monitoring Percentage Thresholds | The health test thresholds for monitoring of free space on the filesystem that contains this role's heap dump directory. Specified as a percentage of the capacity on that filesystem. This setting is not used if a Heap Dump Directory Free Space Monitoring Absolute Thresholds setting is configured. | Warning: Never, Critical: Never |
heap_dump_directory_free_space_percentage_thresholds
|
false | |
Hive Downloaded Resources Directory Free Space Monitoring Absolute Thresholds | The health test thresholds for monitoring of free space on the filesystem that contains this role's Hive Downloaded Resources Directory. | Warning: 10 GiB, Critical: 5 GiB |
hive_exec_hs2_downloaded_resources_directory_free_space_absolute_thresholds
|
false | |
Hive Downloaded Resources Directory Free Space Monitoring Percentage Thresholds | The health test thresholds for monitoring of free space on the filesystem that contains this role's Hive Downloaded Resources Directory. Specified as a percentage of the capacity on that filesystem. This setting is not used if a Hive Downloaded Resources Directory Free Space Monitoring Absolute Thresholds setting is configured. | Warning: Never, Critical: Never |
hive_exec_hs2_downloaded_resources_directory_free_space_percentage_thresholds
|
false | |
Hive Local Scratch Directory Free Space Monitoring Absolute Thresholds | The health test thresholds for monitoring of free space on the filesystem that contains this role's Hive Local Scratch Directory. | Warning: 10 GiB, Critical: 5 GiB |
hive_exec_hs2_exec_local_scratch_directory_free_space_absolute_thresholds
|
false | |
Hive Local Scratch Directory Free Space Monitoring Percentage Thresholds | The health test thresholds for monitoring of free space on the filesystem that contains this role's Hive Local Scratch Directory. Specified as a percentage of the capacity on that filesystem. This setting is not used if a Hive Local Scratch Directory Free Space Monitoring Absolute Thresholds setting is configured. | Warning: Never, Critical: Never |
hive_exec_hs2_exec_local_scratch_directory_free_space_percentage_thresholds
|
false | |
File Descriptor Monitoring Thresholds | The health test thresholds of the number of file descriptors used. Specified as a percentage of file descriptor limit. | Warning: 50.0 %, Critical: 70.0 % |
hiveserver2_fd_thresholds
|
false | |
HiveServer2 Host Health Test | When computing the overall HiveServer2 health, consider the host's health. | true |
hiveserver2_host_health_enabled
|
false | |
Pause Duration Thresholds | The health test thresholds for the weighted average extra time the pause monitor spent paused. Specified as a percentage of elapsed wall clock time. | Warning: 30.0, Critical: 60.0 |
hiveserver2_pause_duration_thresholds
|
false | |
Pause Duration Monitoring Period | The period to review when computing the moving average of extra time the pause monitor spent paused. | 5 minute(s) |
hiveserver2_pause_duration_window
|
false | |
HiveServer2 Process Health Test | Enables the health test that the HiveServer2's process state is consistent with the role configuration | true |
hiveserver2_scm_health_enabled
|
false | |
Log Directory Free Space Monitoring Absolute Thresholds | The health test thresholds for monitoring of free space on the filesystem that contains this role's log directory. | Warning: 10 GiB, Critical: 5 GiB |
log_directory_free_space_absolute_thresholds
|
false | |
Log Directory Free Space Monitoring Percentage Thresholds | The health test thresholds for monitoring of free space on the filesystem that contains this role's log directory. Specified as a percentage of the capacity on that filesystem. This setting is not used if a Log Directory Free Space Monitoring Absolute Thresholds setting is configured. | Warning: Never, Critical: Never |
log_directory_free_space_percentage_thresholds
|
false | |
Navigator Audit Failure Thresholds | The health test thresholds for failures encountered when monitoring audits within a recent period specified by the mgmt_navigator_failure_window configuration for the role. The value that can be specified for this threshold is the number of bytes of audits data that is left to be sent to audit server. |
mgmt.navigator.failure.thresholds
|
Warning: Never, Critical: Any |
mgmt_navigator_failure_thresholds
|
false |
Monitoring Period For Audit Failures | The period to review when checking if audits are blocked and not getting processed. |
mgmt.navigator.failure.window
|
20 minute(s) |
mgmt_navigator_failure_window
|
false |
Navigator Audit Pipeline Health Check | Enable test of audit events processing pipeline. This will test if audit events are not getting processed by Audit Server for a role that generates audit. |
mgmt.navigator.status.check.enabled
|
true |
mgmt_navigator_status_check_enabled
|
false |
Metric Filter | Defines a Metric Filter for this role. Cloudera Manager Agents will not send filtered metrics to the Service Monitor. Define the following fields:
jvm_heap_used_mb metric:
{
"includeHealthTestMetricSet": true,
"filterType": "whitelist",
"metrics": ["jvm_heap_used_mb"]
} |
monitoring_metric_filter
|
false | ||
Process Swap Memory Thresholds | The health test thresholds on the swap memory usage of the process. This takes precedence over the host level threshold. | Warning: 200 B, Critical: Never |
process_swap_memory_thresholds
|
false | |
Role Triggers | The configured triggers for this role. This is a JSON-formatted list of triggers. These triggers are evaluated as part as the health system. Every trigger expression is parsed, and if the trigger condition is met, the list of actions provided in the trigger expression is executed. Each trigger has the following fields:
[{"triggerName": "sample-trigger",
"triggerExpression": "IF (SELECT fd_open WHERE roleName=$ROLENAME and last(fd_open) > 1500) DO health:bad",
"streamThreshold": 0, "enabled": "true"}] See the trigger rules documentation for more details on how to write triggers using tsquery.The JSON format is evolving and may change and, as a result, backward compatibility is not guaranteed between releases. |
[] |
role_triggers
|
true | |
Unexpected Exits Thresholds | The health test thresholds for unexpected exits encountered within a recent period specified by the unexpected_exits_window configuration for the role. | Warning: Never, Critical: Any |
unexpected_exits_thresholds
|
false | |
Unexpected Exits Monitoring Period | The period to review when computing unexpected exits. | 5 minute(s) |
unexpected_exits_window
|
false |
Other
Display Name | Description | Property Name | Default Value | API Name | Required |
---|---|---|---|---|---|
Restrict Cross Joins (Cartesian Products) | Whether to allow queries with cross joins. If set to true, queries that contain this pattern throw a compile-time error. |
hive.strict.checks.cartesian.product
|
false |
hive_restrict_cross_joins
|
false |
Restrict LOAD Queries Against Bucketed Tables | Whether to allow LOAD queries against bucketed tables. If set to true, queries that contain this pattern throw a compile-time error. |
hive.strict.checks.bucketing
|
true |
hive_restrict_load_bucketed_table
|
false |
Restrict Queries with ORDER BY but no LIMIT clause | Whether to allow queries with an ORDER BY clause, but no LIMIT clause. If set to true, queries that contain this pattern throw a compile-time error. |
hive.strict.checks.orderby.no.limit
|
false |
hive_restrict_orderby_with_no_limit
|
false |
Restrict Partitioned Table Scans with no Partitioned Column Filter | Whether to allow queries that scan a partitioned table but don't filter on the partition column. If set to true, queries that contain this pattern throw a compile-time error. |
hive.strict.checks.no.partition.filter
|
false |
hive_restrict_partitioned_scans_no_filter
|
false |
Restrict Unsafe Data Type Comparisons | Whether to allow queries that compare bigints to strings or doubles. If set to true, queries that contain this pattern throw a compile-time error. |
hive.strict.checks.type.safety
|
true |
hive_restrict_unsafe_comparison
|
false |
HiveServer2 Enable Impersonation | HiveServer2 will impersonate the beeline client user when talking to other services such as MapReduce and HDFS. |
hive.server2.enable.doAs
|
true |
hiveserver2_enable_impersonation
|
false |
HiveServer2 Load Balancer | Address of the load balancer used for HiveServer2 roles, specified in host:port format. If port is not specified, the port used by HiveServer2 is used. Note: Changing this property regenerates Kerberos keytabs for all HiveServer2 roles. |
hiveserver2_load_balancer
|
false |
Performance
Display Name | Description | Property Name | Default Value | API Name | Required |
---|---|---|---|---|---|
Hive Auto Convert Join Noconditional Size | If Hive auto convert join is on, and the sum of the size for n-1 of the tables/partitions for a n-way join is smaller than the specified size, the join is directly converted to a MapJoin (there is no conditional task). |
hive.auto.convert.join.noconditionaltask.size
|
20 MiB |
hiveserver2_auto_convert_join_noconditionaltask_size
|
false |
Store Intermediate Data on Blobstore | When writing data to a table on a blobstore (such as S3), whether or not the blobstore should be used to store intermediate data during Hive query execution. Setting this to true can degrade performance for queries that spawn multiple MR / Spark jobs, but is useful for queries whose intermediate data cannot fit in the allocated HDFS cluster. |
hive.blobstore.use.blobstore.as.scratchdir
|
false |
hiveserver2_blobstore_use_blobstore_as_scratchdir
|
false |
Enable Stats Optimization | Enable optimization that checks if a query can be answered using statistics. If so, answers the query using only statistics stored in metastore. |
hive.compute.query.using.stats
|
false |
hiveserver2_compute_query_using_stats
|
false |
Hive on Spark Dynamic Partition Pruning for MapJoins | Enables Dynamic Partition Pruning (DPP) for Hive on Spark jobs. DPP prunes partitions at runtime; it is triggered when a filter on a partitioned column cannot be evaluated at compile time. Only enables DPP for MapJoins where the join is on the partitioned column, and the partitioned table is treated as the big table. |
hive.spark.dynamic.partition.pruning.map.join.only
|
false |
hiveserver2_dynamic_partition_pruning_map_join_only
|
false |
Enable Cost-Based Optimizer for Hive | Enabled the Calcite-based Cost-Based Optimizer for HiveServer2. |
hive.cbo.enable
|
false |
hiveserver2_enable_cbo
|
false |
Enable MapJoin Optimization | Enable optimization that converts common join into MapJoin based on input file size. |
hive.auto.convert.join
|
true |
hiveserver2_enable_mapjoin
|
false |
Fetch Task Query Conversion | Some select queries can be converted to a single FETCH task instead of a MapReduce task, minimizing latency. A value of none disables all conversion, minimal converts simple queries such as SELECT * and filter on partition columns, and more converts SELECT queries including FILTERS. |
hive.fetch.task.conversion
|
minimal |
hiveserver2_fetch_task_conversion
|
false |
Fetch Task Query Conversion Threshold | Above this size, queries are converted to fetch tasks. |
hive.fetch.task.conversion.threshold
|
256 MiB |
hiveserver2_fetch_task_conversion_threshold
|
false |
Input Listing Max Threads | Maximum number of threads that Hive uses to list input files. Increasing this value can improve performance when there are a lot of partitions being read, or when running on blobstores. |
hive.exec.input.listing.max.threads
|
15 |
hiveserver2_input_listing_max_threads
|
false |
Maximum ReduceSink Top-K Memory Usage | The maximum percentage of heap to be used for hash in ReduceSink operator for Top-K selection. 0 means the optimization is disabled. Accepted values are between 0 and 1. |
hive.limit.pushdown.memory.usage
|
0.1 |
hiveserver2_limit_pushdown_memory_usage
|
false |
Load Dynamic Partitions Thread Count | Number of threads used to load dynamically generated partitions. Loading requires renaming the file its final location, and updating some metadata about the new partition. Increasing this can improve performance when there are a lot of partitions dynamically generated. |
hive.load.dynamic.partitions.thread
|
15 |
hiveserver2_load_dynamic_partitions_thread_count
|
false |
Enable Map-Side Aggregation | Enable map-side partial aggregation, which cause the mapper to generate fewer rows. This reduces the data to be sorted and distributed to reducers. |
hive.map.aggr
|
true |
hiveserver2_map_aggr
|
false |
Ratio of Memory Usage for Map-Side Aggregation | Portion of total memory used in map-side partial aggregation. When exceeded, the partially aggregated results will be flushed from the map task to the reducers. |
hive.map.aggr.hash.percentmemory
|
0.5 |
hiveserver2_map_aggr_hash_memory_ratio
|
false |
Enable Merging Small Files - Map-Only Job | Merge small files at the end of a map-only job. When enabled, a map-only job is created to merge the files in the destination table/partitions. |
hive.merge.mapfiles
|
true |
hiveserver2_merge_mapfiles
|
false |
Enable Merging Small Files - Map-Reduce Job | Merge small files at the end of a map-reduce job. When enabled, a map-only job is created to merge the files in the destination table/partitions. |
hive.merge.mapredfiles
|
false |
hiveserver2_merge_mapredfiles
|
false |
Desired File Size After Merging | The desired file size after merging. This should be larger than hive.merge.smallfiles.avgsize. |
hive.merge.size.per.task
|
256 MiB |
hiveserver2_merge_size_per_task
|
false |
Small File Average Size Merge Threshold | When the average output file size of a job is less than the value of this property, Hive will start an additional map-only job to merge the output files into bigger files. This is only done for map-only jobs if hive.merge.mapfiles is true, for map-reduce jobs if hive.merge.mapredfiles is true, and for Spark jobs if hive.merge.sparkfiles is true. |
hive.merge.smallfiles.avgsize
|
16 MiB |
hiveserver2_merge_smallfiles_avgsize
|
false |
Enable Merging Small Files - Spark Job | Merge small files at the end of a Spark job. When enabled, a map-only job is created to merge the files in the destination table/partitions. |
hive.merge.sparkfiles
|
true |
hiveserver2_merge_sparkfiles
|
false |
MSCK Repair Batch Size | Batch size for the msck repair command (recover partitions command). If the value is greater than zero, new partition information will be sent from HiveServer2 to the Metastore in batches, which can potentially improve memory usage in the Metastore and avoid client read timeout exceptions. If this value is 0, all partition information will sent in a single Thrift call. |
hive.msck.repair.batch.size
|
0 |
hiveserver2_msck_repair_batch_size
|
false |
Move Files Thread Count | The number of threads used by HiveServer2 to move data from the staging directory to another location (typically to the final table location). A separate thread pool of workers of this size is used for each query, which means this configuration can be set on a per-query basis too. |
hive.mv.files.thread
|
15 |
hiveserver2_mv_files_thread
|
false |
Hive Optimize Sorted Merge Bucket Join | Whether to try sorted merge bucket (SMB) join. |
hive.optimize.bucketmapjoin.sortedmerge
|
false |
hiveserver2_optimize_bucketmapjoin_sortedmerge
|
false |
Enable Automatic Use of Indexes | Whether to use the indexing optimization for all queries. |
hive.optimize.index.filter
|
true |
hiveserver2_optimize_index_filter
|
false |
Enable ReduceDeDuplication Optimization | Remove extra map-reduce jobs if the data is already clustered by the same key, eliminating the need to repartition the dataset again. |
hive.optimize.reducededuplication
|
true |
hiveserver2_optimize_reducededuplication
|
false |
Mininum Reducers for ReduceDeDuplication Optimization | When the number of ReduceSink operators after merging is less than this number, the ReduceDeDuplication optimization will be disabled. |
hive.optimize.reducededuplication.min.reducer
|
4 |
hiveserver2_optimize_reducededuplication_min_reducer
|
false |
Enable Sorted Dynamic Partition Optimizer | When dynamic partition is enabled, reducers keep only one record writer at all times, which lowers the memory pressure on reducers. |
hive.optimize.sort.dynamic.partition
|
false |
hiveserver2_optimize_sort_dynamic_partition
|
false |
Enable Parallel Compilation of Queries | When activated, individual sessions can compile queries simultaneously. Within each session, queries compile one at a time. |
hive.driver.parallel.compilation
|
false |
hiveserver2_parallel_compilation_enabled
|
false |
Query Compilation Degree of Parallelism | Determines the maximum number of queries that can compile in parallel on a HiveServer2 instance. Use negative values or zero to set unlimited parallelism. Use a positive value to set the number of queries that can compile simultaneously. This setting can be fine-tuned based on the current cluster load. Monitor cluster load using the 'waiting_compile_ops' metric and the 'Waiting Compile Operations' graph in the HiveServer2 graph library. |
hive.driver.parallel.compilation.global.limit
|
3 |
hiveserver2_parallel_compilation_global_limit
|
false |
Hive SMB Join Cache Rows | The number of rows with the same key value to be cached in memory per SMB-joined table. |
hive.smbjoin.cache.rows
|
10000 |
hiveserver2_smbjoin_cache_rows
|
false |
Spark Driver Maximum Java Heap Size | Maximum size of each Spark driver's Java heap memory when Hive is running on Spark. |
spark.driver.memory
|
512 MiB |
hiveserver2_spark_driver_memory
|
false |
Enable Dynamic Executor Allocation | When enabled, Spark will add and remove executors dynamically to Hive jobs. This is done based on the workload. |
spark.dynamicAllocation.enabled
|
true |
hiveserver2_spark_dynamic_allocation_enabled
|
true |
Initial Number of Executors | Initial number of executors used by the application at any given time. This is required if the dynamic executor allocation feature is enabled. |
spark.dynamicAllocation.initialExecutors
|
1 |
hiveserver2_spark_dynamic_allocation_initial_executors
|
true |
Upper Bound on Number of Executors | Upper bound on the number of executors used by the application at any given time. This is used by dynamic executor allocation. |
spark.dynamicAllocation.maxExecutors
|
2147483647 |
hiveserver2_spark_dynamic_allocation_max_executors
|
true |
Lower Bound on Number of Executors | Lower bound on the number of executors used by the application at any given time. This is used by dynamic executor allocation. |
spark.dynamicAllocation.minExecutors
|
1 |
hiveserver2_spark_dynamic_allocation_min_executors
|
true |
Spark Executor Cores | Number of cores per Spark executor. |
spark.executor.cores
|
1 |
hiveserver2_spark_executor_cores
|
true |
Spark Executors Per Application | Number of Spark executors assigned to each application. This should not be set when Dynamic Executor Allocation is enabled. |
spark.executor.instances
|
hiveserver2_spark_executor_instances
|
false | |
Spark Executor Maximum Java Heap Size | Maximum size of each Spark executor's Java heap memory when Hive is running on Spark. |
spark.executor.memory
|
512 MiB |
hiveserver2_spark_executor_memory
|
true |
Spark Driver Memory Overhead | This is the amount of extra off-heap memory that can be requested from YARN, per driver. This, together with spark.driver.memory, is the total memory that YARN can use to create JVM for a driver process. |
spark.yarn.driver.memoryOverhead
|
26 MiB |
hiveserver2_spark_yarn_driver_memory_overhead
|
false |
Spark Executor Memory Overhead | This is the amount of extra off-heap memory that can be requested from YARN, per executor process. This, together with spark.executor.memory, is the total memory that YARN can use to create JVM for an executor process. |
spark.yarn.executor.memoryOverhead
|
26 MiB |
hiveserver2_spark_yarn_executor_memory_overhead
|
true |
Load Column Statistics | Whether column stats for a table are fetched during explain. |
hive.stats.fetch.column.stats
|
true |
hiveserver2_stats_fetch_column_stats
|
false |
Vectorized Adapter Usage Mode | Vectorized Adaptor Usage Mode specifies the extent to which the vectorization engine tries to vectorize UDFs that do not have native vectorized versions available. Selecting the "none" option specifies that only queries using native vectorized UDFs are vectorized. Selecting the "chosen" option specifies that Hive choses to vectorize a subset of the UDFs based on performance benefits using the Vectorized Adaptor. Selecting the "all" option specifies that the Vectorized Adaptor be used for all UDFs even when native vectorized versions are not available. |
hive.vectorized.adaptor.usage.mode
|
chosen |
hiveserver2_vectorized_adaptor_usage_mode
|
false |
Enable Vectorization Optimization | Enable optimization that vectorizes query execution by streamlining operations by processing a block of 1024 rows at a time. |
hive.vectorized.execution.enabled
|
true |
hiveserver2_vectorized_enabled
|
false |
Vectorized GroupBy Check Interval | In vectorized group-by, the number of row entries added to the hash table before re-checking average variable size for memory usage estimation. |
hive.vectorized.groupby.checkinterval
|
4096 |
hiveserver2_vectorized_groupby_checkinterval
|
false |
Vectorized GroupBy Flush Ratio | Ratio between 0.0 and 1.0 of entries in the vectorized group-by aggregation hash that is flushed when the memory threshold is exceeded. |
hive.vectorized.groupby.flush.percent
|
0.1 |
hiveserver2_vectorized_groupby_flush_ratio
|
false |
Enable Vectorized Input Format | If enabled, Hive uses the native vectorized input format for vectorized query execution when it is available. |
hive.vectorized.use.vectorized.input.format
|
true |
hiveserver2_vectorized_input_format_enabled
|
false |
Exclude Vectorized Input Formats | Specifies a list of file input format classnames to exclude from vectorized query execution using the vectorized input format. Note that vectorized execution can still occur for an excluded input format based on whether row SerDes or vector SerDes are enabled. |
hive.vectorized.input.format.excludes
|
org.apache.hadoop.hive.ql.io.parquet.MapredParquetInputFormat |
hiveserver2_vectorized_input_format_excludes
|
false |
Enable Reduce-Side Vectorization | Whether to vectorize the reduce side of query execution. |
hive.vectorized.execution.reduce.enabled
|
true |
hiveserver2_vectorized_reduce_enabled
|
false |
Enable Overflow-checked Vector Expressions | To enhance performance, vectorized expressions operate using wide data types like long and double. When wide data types are used, numeric overflows can occur during expression evaluation in a different manner for vectorized expressions than they do for non-vectorized expressions. Consequently, different query results can be returned for vectorized expressions compared to results returned for non-vectorized expressions. When this configuration is enabled, Hive uses vectorized expressions that handle numeric overflows in the same way as non-vectorized expressions are handled. |
hive.vectorized.use.checked.expressions
|
true |
hiveserver2_vectorized_use_checked_expressions
|
false |
Vectorize Using Vector SerDes | If enabled, Hive uses built-in vector SerDes to process text and sequencefile tables for vectorized query execution. |
hive.vectorized.use.vector.serde.deserialize
|
false |
hiveserver2_vectorized_use_vector_serde_deserialize
|
false |
Default Execution Engine | The default execution engine for running hive queries. Can be set to mr for MapReduce or spark for Spark. |
hive.execution.engine
|
mr |
hs2_execution_engine
|
false |
Maximum Process File Descriptors | If configured, overrides the process soft and hard rlimits (also called ulimits) for file descriptors to the configured value. |
rlimit_fds
|
false |
Ports and Addresses
Display Name | Description | Property Name | Default Value | API Name | Required |
---|---|---|---|---|---|
Spark RPC Server Address | The server address of HiverServer2 host to be used for communication between Hive client and remote Spark driver. Default is empty, which means the address will be determined in the same way as for hive.server2.thrift.bind.host. This is only necessary if the host has mutiple network addresses and if a different network address other than hive.server2.thrift.bind.host is to be used. |
hive.spark.client.rpc.server.address
|
hive_spark_client_rpc_server_address
|
false | |
Bind HiveServer2 to Wildcard Address | If enabled, the HiveServer2 binds to the wildcard address ("0.0.0.0") on all of its ports. |
hive.server2.webui.host
|
true |
hiveserver2_webui_bind_wildcard
|
false |
HiveServer2 WebUI Port | The port the HiveServer2 WebUI will listen on. This can be set to 0 to disable the WebUI. |
hive.server2.webui.port
|
10002 |
hiveserver2_webui_port
|
false |
HiveServer2 Port | Port on which HiveServer2 will listen for connections. |
hive.server2.thrift.port
|
10000 |
hs2_thrift_address_port
|
false |
Resource Management
Display Name | Description | Property Name | Default Value | API Name | Required |
---|---|---|---|---|---|
Java Heap Size of HiveServer2 in Bytes | Maximum size in bytes for the Java Process heap memory. Passed to Java -Xmx. | 4 GiB |
hiveserver2_java_heapsize
|
false | |
Cgroup CPU Shares | Number of CPU shares to assign to this role. The greater the number of shares, the larger the share of the host's CPUs that will be given to this role when the host experiences CPU contention. Must be between 2 and 262144. Defaults to 1024 for processes not managed by Cloudera Manager. |
cpu.shares
|
1024 |
rm_cpu_shares
|
true |
Custom Control Group Resources (overrides Cgroup settings) | Custom control group resources to assign to this role, which will be enforced by the Linux kernel. These resources should exist on the target hosts, otherwise an error will occur when the process starts. Use the same format as used for arguments to the cgexec command: resource1,resource2:path1 or resource3:path2 For example: 'cpu,memory:my/path blkio:my2/path2' ***These settings override other cgroup settings.*** |
custom.cgroups
|
rm_custom_resources
|
false | |
Cgroup I/O Weight | Weight for the read I/O requests issued by this role. The greater the weight, the higher the priority of the requests when the host experiences I/O contention. Must be between 100 and 1000. Defaults to 1000 for processes not managed by Cloudera Manager. |
blkio.weight
|
500 |
rm_io_weight
|
true |
Cgroup Memory Hard Limit | Hard memory limit to assign to this role, enforced by the Linux kernel. When the limit is reached, the kernel will reclaim pages charged to the process. If reclaiming fails, the kernel may kill the process. Both anonymous as well as page cache pages contribute to the limit. Use a value of -1 to specify no limit. By default processes not managed by Cloudera Manager will have no limit. If the value is -1, Cloudera Manager will not monitor Cgroup memory usage therefore some of the charts will show 'No Data' |
memory.limit_in_bytes
|
-1 MiB |
rm_memory_hard_limit
|
true |
Cgroup Memory Soft Limit | Soft memory limit to assign to this role, enforced by the Linux kernel. When the limit is reached, the kernel will reclaim pages charged to the process if and only if the host is facing memory pressure. If reclaiming fails, the kernel may kill the process. Both anonymous as well as page cache pages contribute to the limit. Use a value of -1 to specify no limit. By default processes not managed by Cloudera Manager will have no limit. If the value is -1, Cloudera Manager will not monitor Cgroup memory usage therefore some of the charts will show 'No Data' |
memory.soft_limit_in_bytes
|
-1 MiB |
rm_memory_soft_limit
|
true |
Security
Display Name | Description | Property Name | Default Value | API Name | Required |
---|---|---|---|---|---|
Enable TLS/SSL for HiveServer2 WebUI | Encrypt communication between clients and HiveServer2 WebUI using Transport Layer Security (TLS) (formerly known as Secure Socket Layer (SSL)). |
hive.server2.webui.use.ssl
|
false |
ssl_enabled
|
false |
HiveServer2 WebUI TLS/SSL Server JKS Keystore File Location | The path to the TLS/SSL keystore file containing the server certificate and private key used for TLS/SSL. Used when HiveServer2 WebUI is acting as a TLS/SSL server. The keystore must be in JKS format. |
hive.server2.webui.keystore.path
|
ssl_server_keystore_location
|
false | |
HiveServer2 WebUI TLS/SSL Server JKS Keystore File Password | The password for the HiveServer2 WebUI JKS keystore file. |
hive.server2.webui.keystore.password
|
ssl_server_keystore_password
|
false |
Stacks Collection
Display Name | Description | Property Name | Default Value | API Name | Required |
---|---|---|---|---|---|
Stacks Collection Data Retention | The amount of stacks data that is retained. After the retention limit is reached, the oldest data is deleted. |
stacks_collection_data_retention
|
100 MiB |
stacks_collection_data_retention
|
false |
Stacks Collection Directory | The directory in which stacks logs are placed. If not set, stacks are logged into a stacks subdirectory of the role's log directory. |
stacks_collection_directory
|
stacks_collection_directory
|
false | |
Stacks Collection Enabled | Whether or not periodic stacks collection is enabled. |
stacks_collection_enabled
|
false |
stacks_collection_enabled
|
true |
Stacks Collection Frequency | The frequency with which stacks are collected. |
stacks_collection_frequency
|
5.0 second(s) |
stacks_collection_frequency
|
false |
Stacks Collection Method | The method used to collect stacks. The jstack option involves periodically running the jstack command against the role's daemon process. The servlet method is available for those roles that have an HTTP server endpoint exposing the current stacks traces of all threads. When the servlet method is selected, that HTTP endpoint is periodically scraped. |
stacks_collection_method
|
jstack |
stacks_collection_method
|
false |
Suppressions
Display Name | Description | Property Name | Default Value | API Name | Required |
---|---|---|---|---|---|
Suppress Configuration Validator: CDH Version Validator | Whether to suppress configuration warnings produced by the CDH Version Validator configuration validator. | false |
role_config_suppression_cdh_version_validator
|
true | |
Suppress Parameter Validation: HiveServer2 Advanced Configuration Snippet (Safety Valve) for hive-site.xml | Whether to suppress configuration warnings produced by the built-in parameter validation for the HiveServer2 Advanced Configuration Snippet (Safety Valve) for hive-site.xml parameter. | false |
role_config_suppression_hive_hs2_config_safety_valve
|
true | |
Suppress Parameter Validation: HiveServer2 Environment Advanced Configuration Snippet (Safety Valve) | Whether to suppress configuration warnings produced by the built-in parameter validation for the HiveServer2 Environment Advanced Configuration Snippet (Safety Valve) parameter. | false |
role_config_suppression_hive_hs2_env_safety_valve
|
true | |
Suppress Parameter Validation: HiveServer2 Log Directory | Whether to suppress configuration warnings produced by the built-in parameter validation for the HiveServer2 Log Directory parameter. | false |
role_config_suppression_hive_log_dir
|
true | |
Suppress Parameter Validation: Metrics Sample File Location | Whether to suppress configuration warnings produced by the built-in parameter validation for the Metrics Sample File Location parameter. | false |
role_config_suppression_hive_metrics_sample_file_location
|
true | |
Suppress Configuration Validator: Restrict Load Bucketed Table Validator | Whether to suppress configuration warnings produced by the Restrict Load Bucketed Table Validator configuration validator. | false |
role_config_suppression_hive_restrict_load_bucketed_table_validator
|
true | |
Suppress Configuration Validator: Restrict Unsafe Comparison Validator | Whether to suppress configuration warnings produced by the Restrict Unsafe Comparison Validator configuration validator. | false |
role_config_suppression_hive_restrict_unsafe_comparison_validator
|
true | |
Suppress Parameter Validation: HiveServer2 Operations Log Directory | Whether to suppress configuration warnings produced by the built-in parameter validation for the HiveServer2 Operations Log Directory parameter. | false |
role_config_suppression_hive_server2_logging_operation_log_location
|
true | |
Suppress Parameter Validation: Spark RPC Server Address | Whether to suppress configuration warnings produced by the built-in parameter validation for the Spark RPC Server Address parameter. | false |
role_config_suppression_hive_spark_client_rpc_server_address
|
true | |
Suppress Parameter Validation: Hive Downloaded Resources Directory | Whether to suppress configuration warnings produced by the built-in parameter validation for the Hive Downloaded Resources Directory parameter. | false |
role_config_suppression_hiveserver2_downloaded_resources_dir
|
true | |
Suppress Parameter Validation: Hive Local Scratch Directory | Whether to suppress configuration warnings produced by the built-in parameter validation for the Hive Local Scratch Directory parameter. | false |
role_config_suppression_hiveserver2_exec_local_scratchdir
|
true | |
Suppress Parameter Validation: Hive HDFS Scratch Directory | Whether to suppress configuration warnings produced by the built-in parameter validation for the Hive HDFS Scratch Directory parameter. | false |
role_config_suppression_hiveserver2_exec_scratchdir
|
true | |
Suppress Parameter Validation: Fair Scheduler XML Advanced Configuration Snippet (Safety Valve) | Whether to suppress configuration warnings produced by the built-in parameter validation for the Fair Scheduler XML Advanced Configuration Snippet (Safety Valve) parameter. | false |
role_config_suppression_hiveserver2_fair_scheduler_safety_valve
|
true | |
Suppress Parameter Validation: Java Configuration Options for HiveServer2 | Whether to suppress configuration warnings produced by the built-in parameter validation for the Java Configuration Options for HiveServer2 parameter. | false |
role_config_suppression_hiveserver2_java_opts
|
true | |
Suppress Parameter Validation: HiveServer2 Load Balancer | Whether to suppress configuration warnings produced by the built-in parameter validation for the HiveServer2 Load Balancer parameter. | false |
role_config_suppression_hiveserver2_load_balancer
|
true | |
Suppress Parameter Validation: Spark Executor Cores | Whether to suppress configuration warnings produced by the built-in parameter validation for the Spark Executor Cores parameter. | false |
role_config_suppression_hiveserver2_spark_executor_cores
|
true | |
Suppress Parameter Validation: Exclude Vectorized Input Formats | Whether to suppress configuration warnings produced by the built-in parameter validation for the Exclude Vectorized Input Formats parameter. | false |
role_config_suppression_hiveserver2_vectorized_input_format_excludes
|
true | |
Suppress Parameter Validation: HiveServer2 WebUI Port | Whether to suppress configuration warnings produced by the built-in parameter validation for the HiveServer2 WebUI Port parameter. | false |
role_config_suppression_hiveserver2_webui_port
|
true | |
Suppress Parameter Validation: HiveServer2 Advanced Configuration Snippet (Safety Valve) for core-site.xml | Whether to suppress configuration warnings produced by the built-in parameter validation for the HiveServer2 Advanced Configuration Snippet (Safety Valve) for core-site.xml parameter. | false |
role_config_suppression_hs2_core_site_safety_valve
|
true | |
Suppress Parameter Validation: HiveServer2 Port | Whether to suppress configuration warnings produced by the built-in parameter validation for the HiveServer2 Port parameter. | false |
role_config_suppression_hs2_thrift_address_port
|
true | |
Suppress Parameter Validation: HiveServer2 Logging Advanced Configuration Snippet (Safety Valve) | Whether to suppress configuration warnings produced by the built-in parameter validation for the HiveServer2 Logging Advanced Configuration Snippet (Safety Valve) parameter. | false |
role_config_suppression_log4j_safety_valve
|
true | |
Suppress Parameter Validation: Heap Dump Directory | Whether to suppress configuration warnings produced by the built-in parameter validation for the Heap Dump Directory parameter. | false |
role_config_suppression_oom_heap_dump_dir
|
true | |
Suppress Parameter Validation: Custom Control Group Resources (overrides Cgroup settings) | Whether to suppress configuration warnings produced by the built-in parameter validation for the Custom Control Group Resources (overrides Cgroup settings) parameter. | false |
role_config_suppression_rm_custom_resources
|
true | |
Suppress Parameter Validation: Role Triggers | Whether to suppress configuration warnings produced by the built-in parameter validation for the Role Triggers parameter. | false |
role_config_suppression_role_triggers
|
true | |
Suppress Parameter Validation: HiveServer2 WebUI TLS/SSL Server JKS Keystore File Location | Whether to suppress configuration warnings produced by the built-in parameter validation for the HiveServer2 WebUI TLS/SSL Server JKS Keystore File Location parameter. | false |
role_config_suppression_ssl_server_keystore_location
|
true | |
Suppress Parameter Validation: HiveServer2 WebUI TLS/SSL Server JKS Keystore File Password | Whether to suppress configuration warnings produced by the built-in parameter validation for the HiveServer2 WebUI TLS/SSL Server JKS Keystore File Password parameter. | false |
role_config_suppression_ssl_server_keystore_password
|
true | |
Suppress Parameter Validation: Stacks Collection Directory | Whether to suppress configuration warnings produced by the built-in parameter validation for the Stacks Collection Directory parameter. | false |
role_config_suppression_stacks_collection_directory
|
true | |
Suppress Health Test: Audit Pipeline Test | Whether to suppress the results of the Audit Pipeline Test heath test. The results of suppressed health tests are ignored when computing the overall health of the associated host, role or service, so suppressed health tests will not generate alerts. | false |
role_health_suppression_hive_exec_hiveserver2_audit_health
|
true | |
Suppress Health Test: File Descriptors | Whether to suppress the results of the File Descriptors heath test. The results of suppressed health tests are ignored when computing the overall health of the associated host, role or service, so suppressed health tests will not generate alerts. | false |
role_health_suppression_hive_exec_hiveserver2_file_descriptor
|
true | |
Suppress Health Test: Heap Dump Directory Free Space | Whether to suppress the results of the Heap Dump Directory Free Space heath test. The results of suppressed health tests are ignored when computing the overall health of the associated host, role or service, so suppressed health tests will not generate alerts. | false |
role_health_suppression_hive_exec_hiveserver2_heap_dump_directory_free_space
|
true | |
Suppress Health Test: Host Health | Whether to suppress the results of the Host Health heath test. The results of suppressed health tests are ignored when computing the overall health of the associated host, role or service, so suppressed health tests will not generate alerts. | false |
role_health_suppression_hive_exec_hiveserver2_host_health
|
true | |
Suppress Health Test: Log Directory Free Space | Whether to suppress the results of the Log Directory Free Space heath test. The results of suppressed health tests are ignored when computing the overall health of the associated host, role or service, so suppressed health tests will not generate alerts. | false |
role_health_suppression_hive_exec_hiveserver2_log_directory_free_space
|
true | |
Suppress Health Test: Pause Duration | Whether to suppress the results of the Pause Duration heath test. The results of suppressed health tests are ignored when computing the overall health of the associated host, role or service, so suppressed health tests will not generate alerts. | false |
role_health_suppression_hive_exec_hiveserver2_pause_duration
|
true | |
Suppress Health Test: Process Status | Whether to suppress the results of the Process Status heath test. The results of suppressed health tests are ignored when computing the overall health of the associated host, role or service, so suppressed health tests will not generate alerts. | false |
role_health_suppression_hive_exec_hiveserver2_scm_health
|
true | |
Suppress Health Test: Swap Memory Usage | Whether to suppress the results of the Swap Memory Usage heath test. The results of suppressed health tests are ignored when computing the overall health of the associated host, role or service, so suppressed health tests will not generate alerts. | false |
role_health_suppression_hive_exec_hiveserver2_swap_memory_usage
|
true | |
Suppress Health Test: Unexpected Exits | Whether to suppress the results of the Unexpected Exits heath test. The results of suppressed health tests are ignored when computing the overall health of the associated host, role or service, so suppressed health tests will not generate alerts. | false |
role_health_suppression_hive_exec_hiveserver2_unexpected_exits
|
true | |
Suppress Health Test: Hive Downloaded Resources Directory Free Space | Whether to suppress the results of the Hive Downloaded Resources Directory Free Space heath test. The results of suppressed health tests are ignored when computing the overall health of the associated host, role or service, so suppressed health tests will not generate alerts. | false |
role_health_suppression_hive_exec_hs2_downloaded_resources_directory_free_space
|
true | |
Suppress Health Test: Hive Local Scratch Directory Free Space | Whether to suppress the results of the Hive Local Scratch Directory Free Space heath test. The results of suppressed health tests are ignored when computing the overall health of the associated host, role or service, so suppressed health tests will not generate alerts. | false |
role_health_suppression_hive_exec_hs2_exec_local_scratch_directory_free_space
|
true |