码迷,mamicode.com
首页 > 编程语言 > 详细

spark 卡在spark context,运行出现spark Exception encountered while connecting to the server : javax.security.sasl.SaslException

时间:2017-09-29 09:55:38      阅读:262      评论:0      收藏:0      [点我收藏+]

标签:gem   print   about   ret   nbsp   app   解决方法   host   管理员   

原因:

使用root用户运行spark代码

 

解决方法:使用非管理员账户运行spark即可

[userone@localhost bin]$ ./add-user.sh



What type of user do you wish to add?

a) Management User (mgmt-users.properties)

b) Application User (application-users.properties)

(a): b



Enter the details of the new user to add.

Realm (ApplicationRealm) :  ApplicationRealm ---->> Careful Here . You need to type this or leave it blank . I filled an incorrect value here and things went wrong from there .

Username : testuser

Password : testpassword

Re-enter Password : testpassword



What roles do you want this user to belong to? (Please enter a comma separated list, or leave blank for none) : testrole

About to add user ‘testuser‘ for realm ‘ApplicationRealm‘



Is this correct yes/no? yes



Added user ‘testuser‘ to file ‘/home/userone/jboss-as-7.1.0.Final/standalone/configuration/application-users.properties‘

Added user ‘testuser‘ to file ‘/home/userone/jboss-as-7.1.0.Final/domain/configuration/application-users.properties‘

Added user ‘testuser‘ with roles testrole to file ‘/home/userone/jboss-as-7.1.0.Final/standalone/configuration/application-roles.properties‘

Added user ‘testuser‘ with roles testrole to file ‘/home/userone/jboss-as-7.1.0.Final/domain/configuration/application-roles.properties‘

.

spark 卡在spark context,运行出现spark Exception encountered while connecting to the server : javax.security.sasl.SaslException

标签:gem   print   about   ret   nbsp   app   解决方法   host   管理员   

原文地址:http://www.cnblogs.com/bonelee/p/7609491.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!