You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@polaris.apache.org by "thierrycz (via GitHub)" <gi...@apache.org> on 2025/07/29 08:25:40 UTC
[I] problem authenticating with bearer [polaris-tools]
thierrycz opened a new issue, #26:
URL: https://github.com/apache/polaris-tools/issues/26
Hi,
i am trying to migrate tables between two rest catalogs, gravitino -> lakekeeper.
Lakekeeper is secured with a token, i can connect with curl to get config, but when i try to migrate, i get an error saying that the Authorization header is missing.
here is the command i use.
```
java -Dlogback.configurationFile=file://$PWD/logback.xml \
-Djavax.net.ssl.trustStore=/path/to/jks/pe.jks \
-jar ~/iceberg-catalog-migrator/iceberg-catalog-migrator-cli-0.3.0.jar register \
--dry-run \
--source-catalog-type REST \
--source-catalog-properties uri=http://rest-catalog-iceberg.cluster.intra/iceberg,warehouse=s3://x-da043-applis-s3/external/hive/dbs3.db \
--identifiers "dbs3.topic1" \
--target-catalog-type REST \
--target-catalog-properties uri=https://rest-catalog-lakekeeper.cluster.intra/catalog,warehouse=fab,authentication.type=BEARER,authentication.token=${bearer}
```
here is the error message
```
INFO - Configured source catalog: SOURCE_CATALOG_REST
ERROR - Error during CLI execution: Not authorized: Missing authorization header. Please check `catalog_migration.log` file for more info.
```
and when i look in the catalog_migration.log in DEBUG
the rest catalog respond with
`http-outgoing-1 << "HTTP/1.1 401 Unauthorized[\r][\n]"`
and there is no Header like "Authorization: Bearer xxxxxx" in the initial query
It seems he's not taking into account the target-catalog-properties authentication.type and authentication.token.
What am i missing ?
best regards
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] problem authenticating with bearer [polaris-tools]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on issue #26:
URL: https://github.com/apache/polaris-tools/issues/26#issuecomment-3514376949
@virtualb0x : your "old" docs link points to the Nessie migrator tool. While this tool is based on Nessie, it evolves separately now. Compatibility of CLI / config parameters is not guaranteed 😉
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] problem authenticating with bearer [polaris-tools]
Posted by "virtualb0x (via GitHub)" <gi...@apache.org>.
virtualb0x commented on issue #26:
URL: https://github.com/apache/polaris-tools/issues/26#issuecomment-3501414928
@thierrycz hello! Did you manage this issue?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] problem authenticating with bearer [polaris-tools]
Posted by "thierrycz (via GitHub)" <gi...@apache.org>.
thierrycz closed issue #26: problem authenticating with bearer
URL: https://github.com/apache/polaris-tools/issues/26
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] problem authenticating with bearer [polaris-tools]
Posted by "thierrycz (via GitHub)" <gi...@apache.org>.
thierrycz commented on issue #26:
URL: https://github.com/apache/polaris-tools/issues/26#issuecomment-3510100774
thanks @dimas-b , it resolve mine too.
The bearer is being used with token=$bearer
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] problem authenticating with bearer [polaris-tools]
Posted by "dimas-b (via GitHub)" <gi...@apache.org>.
dimas-b commented on issue #26:
URL: https://github.com/apache/polaris-tools/issues/26#issuecomment-3505389307
@thierrycz : [this example](https://github.com/apache/polaris-tools/tree/main/iceberg-catalog-migrator#bulk-registering-all-the-tables-from-hadoop-catalog-to-polaris-catalog) shows how to provide the auth `token` to the target catalog properties.
In your example the `authentication` prefix to the token property might be unnecessary. WDYT?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] problem authenticating with bearer [polaris-tools]
Posted by "virtualb0x (via GitHub)" <gi...@apache.org>.
virtualb0x commented on issue #26:
URL: https://github.com/apache/polaris-tools/issues/26#issuecomment-3509806775
@dimas-b thank you/ I've resolved my issue. It seems to me that in [old docs of tool the examples](https://github.com/projectnessie/iceberg-catalog-migrator) are about authentication.token
so it's a kind of nisunderstand.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: issues-unsubscribe@polaris.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org