3.0.3,use root no password show frontends result ERROR 1045 (28000):

Viewed 38

k8s 存算分离部署
版本是3.0.3

apiVersion: v1
kind: Secret
metadata:
  name: secret-basic-auth
type: kubernetes.io/basic-auth
stringData:
  username: root
  password: root@123

fe.conf 配置

initial_root_password = *A00C34073A26B40AB4307650BFB9309D6BFA6999

ddc-sample.yaml 如下:

apiVersion: disaggregated.cluster.doris.com/v1
kind: DorisDisaggregatedCluster
metadata:
  name: mc-disaggregated-cluster
spec:
  authSecret: secret-basic-auth
  metaService:
    configMaps:
      - name: doris-metaservice
        mountPath: /etc/doris
    requests:
      cpu: 500m
      memory: 128Mi
    limits:
      cpu: 4
      memory: 4Gi
    nodeSelector:
      kubernetes.io/hostname: "k8s-test-worker01"
    image: selectdb/doris.ms-ubuntu:3.0.3
    fdb:
      configMapNamespaceName:
        name: mc-fdb-cluster-config
        namespace: fdb
  feSpec:
    replicas: 3
    image: selectdb/doris.fe-ubuntu:3.0.3
    configMaps:
      - name: fe-configmap
    requests:
      cpu: 500m
      memory: 128Mi
    limits:
      cpu: 4
      memory: 12Gi
    nodeSelector:
      kubernetes.io/hostname: "k8s-test-worker01"
    service:
      type: NodePort
      portMaps:
        - nodePort: 31001
          targetPort: 8030
        - nodePort: 31002
          targetPort: 9020
        - nodePort: 31003
          targetPort: 9030
        - nodePort: 31004
          targetPort: 9010
    persistentVolume:
      logNotStore: true
      persistentVolumeClaimSpec:
        storageClassName: local-hostpath
        accessModes:
          - ReadWriteOnce
        resources:
          requests:
            storage: 20Gi
  computeGroups:
    - uniqueId: cg1
      replicas: 2
      image: selectdb/doris.be-ubuntu:3.0.3
      configMaps:
        - name: be-configmap
          mountPath: "/etc/doris"
      requests:
        cpu: 500m
        memory: 128Mi
      limits:
        cpu: 4
        memory: 12Gi
      nodeSelector:
        kubernetes.io/hostname: "k8s-test-master02"
      service:
        type: NodePort
        portMaps:
          - nodePort: 31011
            targetPort: 9060
          - nodePort: 31012
            targetPort: 8040
          - nodePort: 31013
            targetPort: 9050
          - nodePort: 31014
            targetPort: 8060
      persistentVolume:
        logNotStore: true
        persistentVolumeClaimSpec:
          storageClassName: local-hostpath
          accessModes:
            - ReadWriteOnce
          resources:
            requests:
              storage: 20Gi
      systemInitialization:
        initImage: "selectdb/alpine:latest"
        command: [ "/sbin/sysctl", "-w", "vm.max_map_count=2000000" ]

部署时,be有错误,be启动不了

Enter password: ERROR 1045 (28000): Access denied for user 'root@10.196.182.138' (using password: NO)
[Wed Dec 25 13:42:31 UTC 2024] [info] use root no password show frontends result ERROR 1045 (28000): Access denied for user 'root@10.196.182.138' (using password: NO) .
[Wed Dec 25 13:42:31 UTC 2024] [info] use username and passwore that configured to show frontends.

1 Answers