@@ -11,9 +11,9 @@ use const_format::concatcp;
1111use fnv:: FnvHasher ;
1212use indoc:: formatdoc;
1313use product_config:: {
14- types:: PropertyNameKind ,
15- writer:: { to_hadoop_xml, to_java_properties_string, PropertiesWriterError } ,
1614 ProductConfigManager ,
15+ types:: PropertyNameKind ,
16+ writer:: { PropertiesWriterError , to_hadoop_xml, to_java_properties_string} ,
1717} ;
1818use snafu:: { OptionExt , ResultExt , Snafu } ;
1919use stackable_operator:: {
@@ -22,8 +22,8 @@ use stackable_operator::{
2222 configmap:: ConfigMapBuilder ,
2323 meta:: ObjectMetaBuilder ,
2424 pod:: {
25- container:: ContainerBuilder , resources:: ResourceRequirementsBuilder ,
26- security:: PodSecurityContextBuilder , volume:: VolumeBuilder , PodBuilder ,
25+ PodBuilder , container:: ContainerBuilder , resources:: ResourceRequirementsBuilder ,
26+ security:: PodSecurityContextBuilder , volume:: VolumeBuilder ,
2727 } ,
2828 } ,
2929 cluster_resources:: { ClusterResourceApplyStrategy , ClusterResources } ,
@@ -34,6 +34,7 @@ use stackable_operator::{
3434 tls_verification:: TlsClientDetailsError ,
3535 } ,
3636 k8s_openapi:: {
37+ DeepMerge ,
3738 api:: {
3839 apps:: v1:: { StatefulSet , StatefulSetSpec } ,
3940 core:: v1:: {
@@ -44,12 +45,11 @@ use stackable_operator::{
4445 apimachinery:: pkg:: {
4546 api:: resource:: Quantity , apis:: meta:: v1:: LabelSelector , util:: intstr:: IntOrString ,
4647 } ,
47- DeepMerge ,
4848 } ,
4949 kube:: {
50- core:: { error_boundary, DeserializeGuard } ,
51- runtime:: controller:: Action ,
5250 Resource , ResourceExt ,
51+ core:: { DeserializeGuard , error_boundary} ,
52+ runtime:: controller:: Action ,
5353 } ,
5454 kvp:: { Label , Labels , ObjectLabels } ,
5555 logging:: controller:: ReconcilerError ,
@@ -58,7 +58,7 @@ use stackable_operator::{
5858 product_logging:: {
5959 self ,
6060 framework:: {
61- create_vector_shutdown_file_command , remove_vector_shutdown_file_command , LoggingError ,
61+ LoggingError , create_vector_shutdown_file_command , remove_vector_shutdown_file_command ,
6262 } ,
6363 spec:: {
6464 ConfigMapLogConfig , ContainerLogConfig , ContainerLogConfigChoice ,
@@ -71,21 +71,22 @@ use stackable_operator::{
7171 statefulset:: StatefulSetConditionBuilder ,
7272 } ,
7373 time:: Duration ,
74- utils:: { cluster_info:: KubernetesClusterInfo , COMMON_BASH_TRAP_FUNCTIONS } ,
74+ utils:: { COMMON_BASH_TRAP_FUNCTIONS , cluster_info:: KubernetesClusterInfo } ,
7575} ;
7676use strum:: EnumDiscriminants ;
7777use tracing:: warn;
7878
7979use crate :: {
80+ OPERATOR_NAME ,
8081 command:: build_container_command_args,
8182 config:: jvm:: { construct_hadoop_heapsize_env, construct_non_heap_jvm_args} ,
8283 crd:: {
83- v1alpha1 , Container , HiveClusterStatus , HiveRole , MetaStoreConfig , APP_NAME , CORE_SITE_XML ,
84- DB_PASSWORD_ENV , DB_USERNAME_ENV , HIVE_PORT , HIVE_PORT_NAME , HIVE_SITE_XML ,
85- JVM_SECURITY_PROPERTIES_FILE , METRICS_PORT , METRICS_PORT_NAME , STACKABLE_CONFIG_DIR ,
84+ APP_NAME , CORE_SITE_XML , Container , DB_PASSWORD_ENV , DB_USERNAME_ENV , HIVE_PORT ,
85+ HIVE_PORT_NAME , HIVE_SITE_XML , HiveClusterStatus , HiveRole , JVM_SECURITY_PROPERTIES_FILE ,
86+ METRICS_PORT , METRICS_PORT_NAME , MetaStoreConfig , STACKABLE_CONFIG_DIR ,
8687 STACKABLE_CONFIG_DIR_NAME , STACKABLE_CONFIG_MOUNT_DIR , STACKABLE_CONFIG_MOUNT_DIR_NAME ,
8788 STACKABLE_LOG_CONFIG_MOUNT_DIR , STACKABLE_LOG_CONFIG_MOUNT_DIR_NAME , STACKABLE_LOG_DIR ,
88- STACKABLE_LOG_DIR_NAME ,
89+ STACKABLE_LOG_DIR_NAME , v1alpha1 ,
8990 } ,
9091 discovery,
9192 kerberos:: {
@@ -94,7 +95,6 @@ use crate::{
9495 } ,
9596 operations:: { graceful_shutdown:: add_graceful_shutdown_config, pdb:: add_pdbs} ,
9697 product_logging:: { extend_role_group_config_map, resolve_vector_aggregator_address} ,
97- OPERATOR_NAME ,
9898} ;
9999
100100pub const HIVE_CONTROLLER_NAME : & str = "hivecluster" ;
@@ -872,7 +872,9 @@ fn build_metastore_rolegroup_statefulset(
872872 //
873873 // TODO: Once we drop support for HMS 3.1.x we can remove this condition and very likely get rid of the
874874 // "bin/start-metastore" script.
875- format ! ( "bin/start-metastore --config {STACKABLE_CONFIG_DIR} --db-type {db_type} --hive-bin-dir bin &" )
875+ format ! (
876+ "bin/start-metastore --config {STACKABLE_CONFIG_DIR} --db-type {db_type} --hive-bin-dir bin &"
877+ )
876878 } else {
877879 // schematool versions 4.0.x (and above) support the `-initOrUpgradeSchema`, which is exactly what we need :)
878880 // Some docs for the schemaTool can be found here: https://cwiki.apache.org/confluence/pages/viewpage.action?pageId=34835119
0 commit comments