| 398 | } |
| 399 | |
| 400 | Status PopulateThriftBackendGflags(TBackendGflags& cfg) { |
| 401 | cfg.__set_load_catalog_in_background(FLAGS_load_catalog_in_background); |
| 402 | cfg.__set_use_local_catalog(FLAGS_use_local_catalog); |
| 403 | cfg.__set_local_catalog_cache_mb(FLAGS_local_catalog_cache_mb); |
| 404 | cfg.__set_local_catalog_cache_expiration_s( |
| 405 | FLAGS_local_catalog_cache_expiration_s); |
| 406 | cfg.__set_local_catalog_cache_concurrency_level( |
| 407 | FLAGS_local_catalog_cache_concurrency_level); |
| 408 | cfg.__set_server_name(FLAGS_server_name); |
| 409 | cfg.__set_kudu_master_hosts(FLAGS_kudu_master_hosts); |
| 410 | cfg.__set_enable_kudu_impala_hms_check(FLAGS_enable_kudu_impala_hms_check); |
| 411 | cfg.__set_read_size(FLAGS_read_size); |
| 412 | cfg.__set_num_metadata_loading_threads(FLAGS_num_metadata_loading_threads); |
| 413 | cfg.__set_max_hdfs_partitions_parallel_load(FLAGS_max_hdfs_partitions_parallel_load); |
| 414 | cfg.__set_max_nonhdfs_partitions_parallel_load( |
| 415 | FLAGS_max_nonhdfs_partitions_parallel_load); |
| 416 | cfg.__set_initial_hms_cnxn_timeout_s(FLAGS_initial_hms_cnxn_timeout_s); |
| 417 | // auth_to_local rules are read if --load_auth_to_local_rules is set to true |
| 418 | // and impala is kerberized. |
| 419 | cfg.__set_load_auth_to_local_rules(FLAGS_load_auth_to_local_rules); |
| 420 | cfg.__set_principal(FLAGS_principal); |
| 421 | cfg.__set_impala_log_lvl(FlagToTLogLevel(FLAGS_v)); |
| 422 | cfg.__set_non_impala_java_vlog(FlagToTLogLevel(FLAGS_non_impala_java_vlog)); |
| 423 | cfg.__set_inc_stats_size_limit_bytes(FLAGS_inc_stats_size_limit_bytes); |
| 424 | cfg.__set_enable_stats_extrapolation(FLAGS_enable_stats_extrapolation); |
| 425 | cfg.__set_lineage_event_log_dir(FLAGS_lineage_event_log_dir); |
| 426 | cfg.__set_local_library_path(FLAGS_local_library_dir); |
| 427 | cfg.__set_kudu_operation_timeout_ms(FLAGS_kudu_operation_timeout_ms); |
| 428 | if (FLAGS_reserved_words_version == "2.11.0") { |
| 429 | cfg.__set_reserved_words_version(TReservedWordsVersion::IMPALA_2_11); |
| 430 | } else { |
| 431 | DCHECK_EQ(FLAGS_reserved_words_version, "3.0.0"); |
| 432 | cfg.__set_reserved_words_version(TReservedWordsVersion::IMPALA_3_0); |
| 433 | } |
| 434 | cfg.__set_max_filter_error_rate(FLAGS_max_filter_error_rate); |
| 435 | cfg.__set_min_buffer_size(FLAGS_min_buffer_size); |
| 436 | cfg.__set_authorized_proxy_group_config(FLAGS_authorized_proxy_group_config); |
| 437 | cfg.__set_enable_shell_based_groups_mapping_support( |
| 438 | FLAGS_enable_shell_based_groups_mapping_support); |
| 439 | cfg.__set_disable_catalog_data_ops_debug_only( |
| 440 | FLAGS_disable_catalog_data_ops_debug_only); |
| 441 | cfg.__set_catalog_topic_mode(FLAGS_catalog_topic_mode); |
| 442 | cfg.__set_invalidate_tables_timeout_s(FLAGS_invalidate_tables_timeout_s); |
| 443 | cfg.__set_invalidate_tables_on_memory_pressure( |
| 444 | FLAGS_invalidate_tables_on_memory_pressure); |
| 445 | cfg.__set_invalidate_tables_gc_old_gen_full_threshold( |
| 446 | FLAGS_invalidate_tables_gc_old_gen_full_threshold); |
| 447 | cfg.__set_invalidate_tables_fraction_on_memory_pressure( |
| 448 | FLAGS_invalidate_tables_fraction_on_memory_pressure); |
| 449 | cfg.__set_local_catalog_max_fetch_retries(FLAGS_local_catalog_max_fetch_retries); |
| 450 | cfg.__set_kudu_scanner_thread_estimated_bytes_per_column( |
| 451 | FLAGS_kudu_scanner_thread_estimated_bytes_per_column); |
| 452 | cfg.__set_kudu_scanner_thread_max_estimated_bytes( |
| 453 | FLAGS_kudu_scanner_thread_max_estimated_bytes); |
| 454 | cfg.__set_catalog_max_parallel_partial_fetch_rpc( |
| 455 | FLAGS_catalog_max_parallel_partial_fetch_rpc); |
| 456 | cfg.__set_catalog_partial_fetch_rpc_queue_timeout_s( |
| 457 | FLAGS_catalog_partial_fetch_rpc_queue_timeout_s); |
no test coverage detected