Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to Override the Hive metastre LOG Configuration #528

Open
CoderYellow opened this issue Nov 2, 2024 · 3 comments
Open

Ability to Override the Hive metastre LOG Configuration #528

CoderYellow opened this issue Nov 2, 2024 · 3 comments

Comments

@CoderYellow
Copy link

CoderYellow commented Nov 2, 2024

below configOverrides is not working for metastore-log4j2.properties

apiVersion: hive.stackable.tech/v1alpha1
kind: HiveCluster
metadata:
  name: hive-postgres-s3
  namespace: "data"
spec:
  image:
    productVersion: 3.1.3
  clusterConfig:
    listenerClass: external-stable
    database:
      connString: jdbc:postgresql://hms-pg-cluster:5432/hive
      credentialsSecret: hive-credentials
      dbType: postgres
    s3:
      reference: oss
  metastore:
    configOverrides:
      metastore-log4j2.properties:
        rootLogger.level: "DEBUG"
      security.properties:
        rootLogger.level: "DEBUG"
    roleGroups:
      default:
        replicas: 1

Image

@CoderYellow
Copy link
Author

Is there currently a way to customize the log level for the metastore? Can this be configured within the HiveCluster CRD? Without this capability, troubleshooting becomes significantly more challenging.

@CoderYellow CoderYellow changed the title Ability to Override the Hive ConfigMap Configuration Ability to Override the Hive metastre LOG Configuration Nov 2, 2024
@sbernauer
Copy link
Member

Hi @CoderYellow,
we don't support configOverrides on all files, so the metastore-log4j2.properties is not supported.

However, what you probably want to do is use the logging mechanism we have added to the platform, which allow you fine-grained control, regardless of the actual different logging implementations in all the different tools.
You can find the documentation here: https://docs.stackable.tech/home/stable/concepts/logging, the specific one for Hive metastore here: https://docs.stackable.tech/home/stable/hive/usage-guide/logging

Without having tested it, your config could look something like

spec:
  metastore:
    config:
      logging:
        containers:
          hive:
            console:
              level: DEBUG
            loggers:
              ROOT:
                level: DEBUG

@sbernauer
Copy link
Member

Hi @CoderYellow I see you reacted with a heart, am I correct to assume your problem is fixed? :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants