You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2020/03/18 08:54:34 UTC

[GitHub] [incubator-dolphinscheduler] yh2388 opened a new issue #2223: [BUG] Throw exception when create file.

yh2388 opened a new issue #2223: [BUG] Throw exception when create file.
URL: https://github.com/apache/incubator-dolphinscheduler/issues/2223
 
 
   When kerberos startup, create file fail, throw exception:
   ```
   Caused by: org.apache.hadoop.security.AccessControlException: Client cannot authenticate via:[TOKEN, KERBEROS]
   ```
   Of course, kerberos config is well.

----------------------------------------------------------------
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

[GitHub] [incubator-dolphinscheduler] dailidong closed issue #2223: [BUG] Throw exception when create file.

Posted by GitBox <gi...@apache.org>.
dailidong closed issue #2223: [BUG] Throw exception when create file.
URL: https://github.com/apache/incubator-dolphinscheduler/issues/2223
 
 
   

----------------------------------------------------------------
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

[GitHub] [incubator-dolphinscheduler] xingchun-chen commented on issue #2223: [BUG] Throw exception when create file.

Posted by GitBox <gi...@apache.org>.
xingchun-chen commented on issue #2223: [BUG] Throw exception when create file.
URL: https://github.com/apache/incubator-dolphinscheduler/issues/2223#issuecomment-600945612
 
 
   @qiaozhanwei 

----------------------------------------------------------------
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

[GitHub] [incubator-dolphinscheduler] yh2388 commented on issue #2223: [BUG] Throw exception when create file.

Posted by GitBox <gi...@apache.org>.
yh2388 commented on issue #2223: [BUG] Throw exception when create file.
URL: https://github.com/apache/incubator-dolphinscheduler/issues/2223#issuecomment-600500899
 
 
   Temporary solution is to leave parameter 'hdfs.root.user' blank. 

----------------------------------------------------------------
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

[GitHub] [incubator-dolphinscheduler] dailidong commented on issue #2223: [BUG] Throw exception when create file.

Posted by GitBox <gi...@apache.org>.
dailidong commented on issue #2223: [BUG] Throw exception when create file.
URL: https://github.com/apache/incubator-dolphinscheduler/issues/2223#issuecomment-612098150
 
 
   you can see the code HadoopUtils.java 
   
   init method:
   
   ```
                              if (fs == null) {
                                   if(StringUtils.isNotEmpty(hdfsUser)){
                                       //UserGroupInformation ugi = UserGroupInformation.createProxyUser(hdfsUser,UserGroupInformation.getLoginUser());
                                       UserGroupInformation ugi = UserGroupInformation.createRemoteUser(hdfsUser);
                                       ugi.doAs(new PrivilegedExceptionAction<Boolean>() {
                                           @Override
                                           public Boolean run() throws Exception {
                                               fs = FileSystem.get(configuration);
                                               return true;
                                           }
                                       });
                                   }else{
                                       logger.warn("hdfs.root.user is not set value!");
                                       fs = FileSystem.get(configuration);
                                   }
                               }
   ```

----------------------------------------------------------------
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

[GitHub] [incubator-dolphinscheduler] dailidong commented on issue #2223: [BUG] Throw exception when create file.

Posted by GitBox <gi...@apache.org>.
dailidong commented on issue #2223: [BUG] Throw exception when create file.
URL: https://github.com/apache/incubator-dolphinscheduler/issues/2223#issuecomment-609440895
 
 
   > Temporary solution is to leave parameter 'hdfs.root.user' blank.
   
   this is the right way to solve this problem, next version will solve this problem from code

----------------------------------------------------------------
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

[GitHub] [incubator-dolphinscheduler] yh2388 commented on issue #2223: [BUG] Throw exception when create file.

Posted by GitBox <gi...@apache.org>.
yh2388 commented on issue #2223: [BUG] Throw exception when create file.
URL: https://github.com/apache/incubator-dolphinscheduler/issues/2223#issuecomment-611925897
 
 
   > > Temporary solution is to leave parameter 'hdfs.root.user' blank.
   > 
   > this is the right way to solve this problem, next version will solve this problem from code
   
   Could you tell me how to solve this problem?

----------------------------------------------------------------
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