LuPan2015 opened a new issue #3060:
URL: https://github.com/apache/iceberg/issues/3060


   hi all:
   
   1. env
   ```
    spark 3.1
    iceberg 0.12.0
    mysql 5.7
   ```
   
   2. command 
   ```
   spark-3.1.2/bin/spark-sql --packages 
org.apache.iceberg:iceberg-spark3-runtime:0.12.0 \
       --conf 
spark.sql.catalog.my_catalog=org.apache.iceberg.spark.SparkCatalog \
       --conf 
spark.sql.catalog.my_catalog.warehouse=s3://iceberg-bucket/my/key/prefix \
       --conf 
spark.sql.catalog.my_catalog.catalog-impl=org.apache.iceberg.jdbc.JdbcCatalog \
       --conf 
spark.sql.catalog.my_catalog.uri=jdbc:mysql://localhost:3306/catalog \
       --conf spark.sql.catalog.my_catalog.jdbc.user=root \
       --conf spark.sql.catalog.my_catalog.jdbc.password=xxxxx\
       --conf spark.sql.catalog.my_catalog.jdbc.verifyServerCertificate=false \
       --conf spark.sql.catalog.my_catalog.jdbc.useSSL=false
   ```
   
   3. get Error
   ```
   Caused by: java.sql.SQLInvalidAuthorizationSpecException: Access denied for 
user 'lupan'@'172.18.0.1' (using password: YES)
           at 
org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.get(ExceptionMapper.java:232)
           at 
org.mariadb.jdbc.internal.util.exceptions.ExceptionMapper.getException(ExceptionMapper.java:165)
           at 
org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.connectWithoutProxy(AbstractConnectProtocol.java:1199)
           at org.mariadb.jdbc.internal.util.Utils.retrieveProxy(Utils.java:560)
           at 
org.mariadb.jdbc.MariaDbConnection.newConnection(MariaDbConnection.java:174)
           at org.mariadb.jdbc.Driver.connect(Driver.java:92)
           at java.sql.DriverManager.getConnection(DriverManager.java:664)
           at java.sql.DriverManager.getConnection(DriverManager.java:208)
           at 
org.apache.iceberg.jdbc.JdbcClientPool.newClient(JdbcClientPool.java:52)
           ... 87 more
   Caused by: java.sql.SQLException: Access denied for user 
'lupan'@'172.18.0.1' (using password: YES)
   Current charset is UTF-8. If password has been set using other charset, 
consider using option 'passwordCharacterEncoding'
           at 
org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.authentication(AbstractConnectProtocol.java:931)
           at 
org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.handleConnectionPhases(AbstractConnectProtocol.java:850)
           at 
org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.connect(AbstractConnectProtocol.java:507)
           at 
org.mariadb.jdbc.internal.protocol.AbstractConnectProtocol.connectWithoutProxy(AbstractConnectProtocol.java:1195)
           ... 93 more
   ```
   
   4. doubt
   ```
   I used the configuration spark.sql.catalog.my_catalog.jdbc.user=root to 
specify the username to connect to mysql. Why not is root in the error message?
   
   ```


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to