hi guys, I have a big problem about flink on kuber...
# troubleshooting
p
hi guys, I have a big problem about flink on kubernetes when write to hdfs with kerberos. First of all, I have prepared a file krb5.conf and keytab. However, about jaas.conf I don't know how to apply it for kerberos authentication JAAS module, and the result is I got some error such as: "GSS initiate failed, Failed to find any Kerberos tgt". More detail, I am following the yaml of a guy from stackoverflow like:
Copy code
apiVersion: flink.apache.org/v1beta1
kind: FlinkDeployment
...
spec:
  image: ...
  flinkVersion: v1_15
  flinkConfiguration:
    security.kerberos.krb5-conf.path: /etc/krb5.conf
    security.kerberos.login.keytab: /opt/keytab
    security.kerberos.login.principal: ...
    security.kerberos.login.contexts: KafkaClient
  ...
  podTemplate:
    spec:
      containers:
      - name: flink-main-container
        volumeMounts:
        - name: kerberos-keytab
          mountPath: /opt/keytab
          subPath: keytab
...
I don't how to apply KafkaClient to contexts. If u wanna know more detail: see in the link: https://stackoverflow.com/questions/73581288/specifying-keytab-for-flinkdeployment-of-flink-kubernetes-operator. Help me please, I am so approciate that! love. OH I forgot a another point that when I use hadoop common with the version higher than 3.2.0 I will get error: Client can not authenticate via ( token, kerberos), and if I change the version to 2.10.2 I got the error as I described : GSS initiate failed, Failed to find any Kerberos tgt
πŸ‘€ 2