Tag:kerberos

  • Client cannot authenticate XXX:[TOKEN, KERBEROS]

    Time:2022-11-25

    Caused by: org.apache.hadoop.security.AccessControlException: Client cannot authenticate xxx:[TOKEN, KERBEROS] The security authentication failed, and the cause analysis is as follows:1. Check whether the Kerberos address can be connected normally // kdc’s ip System.setProperty(“java.security.krb5.kdc”, “192.168.1.1”); // realm System.setProperty(“java.security.krb5.realm”, “XXX”); 2. The configuration file failed to be read successfully UserGroupInformation.loginUserFromKeytab(user name, path to keytab file); It is recommended […]

  • Can’t get Kerberos realm

    Time:2022-11-24

    When using HDFS to connect to Hadoop, Keytab authentication is required, but an error is reported: Can’t get Kerberos realm Solution: Add two lines of code to the configuration code System.setProperty(“java.security.krb5.realm”, “XXX.COM”);System.setProperty(“java.security.krb5.kdc”, “XXX.COM”); XXX.COM is obtained from the krb5.cof configuration file screenshot:

  • How to access the webui of services such as HDFS/YARN/HIVESERVER2 after enabling kerberos in CDH/CDP

    Time:2022-11-20

    How to access the webui of services such as HDFS/YARN/HIVESERVER2 after enabling kerberos in CDH/CDP In big data platforms such as CDH/CDP, how to access the webui of services such as HDFS/YARN/HIVESERVER2 after kerberos security is enabled? Let’s take a look at the relevant knowledge together. problem phenomenon In big data platforms such as CDH/CDP, […]

  • SpringBoot + Huawei Kafka cluster + Kerberos authentication

    Time:2022-11-7

    1. Introduction surroundings:1、JDK 1.8 2、SpringBoot3. Huawei Kafka Cluster 1.1.0 The user name and password of the Kafka cluster is simple to connect to the cluster, and there is almost no Kerberos authentication cluster online. Here I will share the important points of the connection. 2. Integration 1. Information available The Kafka cluster is generally not […]