accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [accumulo] mikewalch opened a new issue #1039: Improve exception on AccumuloOutputFormat if store(job) not called.
Date Fri, 15 Mar 2019 20:47:11 GMT
mikewalch opened a new issue #1039: Improve exception on AccumuloOutputFormat if store(job)
not called.
URL: https://github.com/apache/accumulo/issues/1039
 
 
   I wrote the following code that successfully compiled and ran:
   
   ```java
       AccumuloOutputFormat.configure().clientProperties(env.getClientProps()).createTables(true)
           .defaultTable(tableName);
   ```
   I should have called store(job) at end.
   
   ```java
       AccumuloOutputFormat.configure().clientProperties(env.getClientProps()).createTables(true)
           .defaultTable(tableName).store(job);
   ```
   
   The code gave me the following exception (which was confusing to debug). I think this message
can be improved at a minimum:
   
   ```
   Exception in thread "main" java.lang.IllegalArgumentException: auth.token must be set!
   	at org.apache.accumulo.core.conf.ClientProperty.getValue(ClientProperty.java:171)
   	at org.apache.accumulo.core.conf.ClientProperty.getAuthenticationToken(ClientProperty.java:277)
   	at org.apache.accumulo.hadoop.mapreduce.AccumuloOutputFormat.checkOutputSpecs(AccumuloOutputFormat.java:62)
   	at org.apache.hadoop.mapreduce.JobSubmitter.checkSpecs(JobSubmitter.java:277)
   	at org.apache.hadoop.mapreduce.JobSubmitter.submitJobInternal(JobSubmitter.java:143)
   	at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1570)
   	at org.apache.hadoop.mapreduce.Job$11.run(Job.java:1567)
   	at java.security.AccessController.doPrivileged(Native Method)
   	at javax.security.auth.Subject.doAs(Subject.java:422)
   	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1730)
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message