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

Posted 将者,智、信、仁、勇、严也。

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了spark 卡在spark context,运行出现spark Exception encountered while connecting to the server : javax.securi相关的知识,希望对你有一定的参考价值。

原因:

使用root用户运行spark代码

 

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

[[email protected] 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.securi的主要内容,如果未能解决你的问题,请参考以下文章

Spark Context 概述

成功创建火花上下文后,Livy 会话卡在启动

Spark 执行器在 jdbc 源中没有增加

python spark_context.py

spark magic - 输入sql context作为字符串

Spark-submit Sql Context Create Statement 不起作用