databricks / iceberg-kafka-connect

Apache License 2.0
220 stars 49 forks source link

org.apache.hadoop.security.KerberosAuthException: failure to login #125

Closed 13535048320 closed 1 year ago

13535048320 commented 1 year ago

Hi. The following issues were encountered during use: org. apache. hadoop. security. KerberosAuthException: failure to login: javax. security. auth. login. LoginException: java. lang. NullPointerException: invalid null input: name

Connector settings: { "name": "IcebergSinkConnectorConnector_0", "config": { "iceberg.catalog.hive.security.authorization": "false", "iceberg.hadoop.security.authorization": "false", "iceberg.catalog.s3.secret-access-key": "", "iceberg.catalog.s3.endpoint": "http://minio:9000", "iceberg.catalog.io-impl": "org.apache.iceberg.aws.s3.S3FileIO", "iceberg.catalog.client.region": "us-east-1", "iceberg.catalog.uri": "thrift://hive:9083", "key.converter.schemas.enable": "false", "value.converter.schemas.enable": "false", "iceberg.catalog.warehouse": "s3a://warehouse", "iceberg.catalog.type": "hive", "iceberg.catalog.s3.access-key-id": "", "name": "IcebergSinkConnectorConnector_0", "connector.class": "io.tabular.iceberg.connect.IcebergSinkConnector", "key.converter": "org.apache.kafka.connect.storage.StringConverter", "value.converter": "org.apache.kafka.connect.json.JsonConverter", "topics": "hive_demo", "iceberg.tables": "demons.demotable", "iceberg.catalog": "" } }

bryanck commented 1 year ago

This looks like a Hadoop configuration problem to me

13535048320 commented 1 year ago

Resolved. The reason is that the runtime user in the container does not have a username, but iceberg needs to read the user.name. Run as root or recreate a user with a username.