[ 
https://issues.apache.org/jira/browse/HADOOP-16843?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17030498#comment-17030498
 ] 

Steve Loughran commented on HADOOP-16843:
-----------------------------------------

{code}
 diagnostics: User class threw exception: 
org.apache.spark.sql.AnalysisException: 
org.apache.hadoop.service.ServiceStateException: 
org.apache.hadoop.fs.s3a.auth.delegation.DelegationTokenIOException: Failed to 
unmarshall token for s3a://qe-s3-bucket-mst;
        at 
org.apache.spark.sql.hive.HiveExternalCatalog.withClient(HiveExternalCatalog.scala:106)
        at 
org.apache.spark.sql.hive.HiveExternalCatalog.loadTable(HiveExternalCatalog.scala:845)
        at 
org.apache.spark.sql.catalyst.catalog.ExternalCatalogWithListener.loadTable(ExternalCatalogWithListener.scala:159)
        at 
org.apache.spark.sql.catalyst.catalog.SessionCatalog.loadTable(SessionCatalog.scala:451)
        at 
org.apache.spark.sql.execution.command.LoadDataCommand.run(tables.scala:354)
        at 
org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult$lzycompute(commands.scala:70)
        at 
org.apache.spark.sql.execution.command.ExecutedCommandExec.sideEffectResult(commands.scala:68)
        at 
org.apache.spark.sql.execution.command.ExecutedCommandExec.executeCollect(commands.scala:79)
        at org.apache.spark.sql.Dataset$$anonfun$6.apply(Dataset.scala:194)
        at org.apache.spark.sql.Dataset$$anonfun$6.apply(Dataset.scala:194)
        at org.apache.spark.sql.Dataset$$anonfun$52.apply(Dataset.scala:3370)
        at 
org.apache.spark.sql.execution.SQLExecution$$anonfun$withNewExecutionId$1.apply(SQLExecution.scala:78)
        at 
org.apache.spark.sql.execution.SQLExecution$.withSQLConfPropagated(SQLExecution.scala:125)
        at 
org.apache.spark.sql.execution.SQLExecution$.withNewExecutionId(SQLExecution.scala:73)
        at org.apache.spark.sql.Dataset.withAction(Dataset.scala:3369)
        at org.apache.spark.sql.Dataset.<init>(Dataset.scala:194)
        at org.apache.spark.sql.Dataset$.ofRows(Dataset.scala:79)
        at org.apache.spark.sql.SparkSession.sql(SparkSession.scala:651)
        at SimpleLoadTest$.main(SimpleLoadTest.scala:9)
        at SimpleLoadTest.main(SimpleLoadTest.scala)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:663)
Caused by: org.apache.hadoop.service.ServiceStateException: 
org.apache.hadoop.fs.s3a.auth.delegation.DelegationTokenIOException: Failed to 
unmarshall token for s3a://qe-s3-bucket-mst
        at 
org.apache.hadoop.service.ServiceStateException.convert(ServiceStateException.java:105)
        at 
org.apache.hadoop.service.AbstractService.start(AbstractService.java:203)
        at 
org.apache.hadoop.fs.s3a.S3AFileSystem.bindAWSClient(S3AFileSystem.java:546)
        at 
org.apache.hadoop.fs.s3a.S3AFileSystem.initialize(S3AFileSystem.java:378)
        at 
org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:3344)
        at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:138)
        at 
org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:3404)
        at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:3372)
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:493)
        at org.apache.hadoop.fs.Path.getFileSystem(Path.java:361)
        at org.apache.hadoop.hive.ql.metadata.Hive.loadTable(Hive.java:3121)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at 
org.apache.spark.sql.hive.client.Shim_v3_0.loadTable(HiveShim.scala:1418)
        at 
org.apache.spark.sql.hive.client.HiveClientImpl$$anonfun$loadTable$1.apply$mcV$sp(HiveClientImpl.scala:845)
        at 
org.apache.spark.sql.hive.client.HiveClientImpl$$anonfun$loadTable$1.apply(HiveClientImpl.scala:845)
        at 
org.apache.spark.sql.hive.client.HiveClientImpl$$anonfun$loadTable$1.apply(HiveClientImpl.scala:845)
        at 
org.apache.spark.sql.hive.client.HiveClientImpl$$anonfun$withHiveState$1.apply(HiveClientImpl.scala:313)
        at 
org.apache.spark.sql.hive.client.HiveClientImpl.liftedTree1$1(HiveClientImpl.scala:247)
        at 
org.apache.spark.sql.hive.client.HiveClientImpl.retryLocked(HiveClientImpl.scala:246)
        at 
org.apache.spark.sql.hive.client.HiveClientImpl.withHiveState(HiveClientImpl.scala:296)
        at 
org.apache.spark.sql.hive.client.HiveClientImpl.loadTable(HiveClientImpl.scala:844)
        at 
org.apache.spark.sql.hive.HiveExternalCatalog$$anonfun$loadTable$1.apply$mcV$sp(HiveExternalCatalog.scala:847)
        at 
org.apache.spark.sql.hive.HiveExternalCatalog$$anonfun$loadTable$1.apply(HiveExternalCatalog.scala:845)
        at 
org.apache.spark.sql.hive.HiveExternalCatalog$$anonfun$loadTable$1.apply(HiveExternalCatalog.scala:845)
        at 
org.apache.spark.sql.hive.HiveExternalCatalog.withClient(HiveExternalCatalog.scala:97)
        ... 24 more
Caused by: org.apache.hadoop.fs.s3a.auth.delegation.DelegationTokenIOException: 
Failed to unmarshall token for s3a://qe-s3-bucket-mst
        at 
org.apache.hadoop.fs.s3a.auth.delegation.S3ADelegationTokens.extractIdentifier(S3ADelegationTokens.java:577)
        at 
org.apache.hadoop.fs.s3a.auth.delegation.S3ADelegationTokens.bindToDelegationToken(S3ADelegationTokens.java:326)
        at 
org.apache.hadoop.fs.s3a.auth.delegation.S3ADelegationTokens.bindToAnyDelegationToken(S3ADelegationTokens.java:276)
        at 
org.apache.hadoop.fs.s3a.auth.delegation.S3ADelegationTokens.serviceStart(S3ADelegationTokens.java:199)
        at 
org.apache.hadoop.service.AbstractService.start(AbstractService.java:194)
        ... 50 more
{code}

> S3A DT marshalling to  include nested error text in wrapped message
> -------------------------------------------------------------------
>
>                 Key: HADOOP-16843
>                 URL: https://issues.apache.org/jira/browse/HADOOP-16843
>             Project: Hadoop Common
>          Issue Type: Sub-task
>          Components: fs/s3
>    Affects Versions: 3.3.0
>            Reporter: Steve Loughran
>            Priority: Minor
>
> When you get an unmarshalling error with S3A DTs, the thrown exception wraps 
> the cause, but doesn't include it's text in the message, so on a long trace 
> the cause can get lost



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

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

Reply via email to