Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

报错: ERROR spark.Main: Error in configuring object #86

Open
aiyingyi opened this issue Jul 17, 2020 · 6 comments
Open

报错: ERROR spark.Main: Error in configuring object #86

aiyingyi opened this issue Jul 17, 2020 · 6 comments

Comments

@aiyingyi
Copy link

查询mount的Hive表时,出现ERROR spark.Main: Error in configuring object 这种错误,请问是什么原因造成的?是spark配置不正确吗???

@swallowjy
Copy link
Contributor

贴一下你的配置文件和详细错误信息~~

@aiyingyi
Copy link
Author

20/07/21 15:36:36 INFO handler.ContextHandler: Started o.s.j.s.ServletContextHandler@2f3afa0{/metrics/json,null,AVAILABLE,@spark}
20/07/21 15:36:41 INFO scheduler.EventLoggingListener: Logging events to hdfs://hadoop105:9000/spark22/application_1595310524469_0021
20/07/21 15:36:41 INFO cluster.YarnClientSchedulerBackend: SchedulerBackend is ready for scheduling beginning after waiting maxRegisteredResourcesWaitingTime: 30000(ms)
[WARN] [SECURITY][07/21/2020 15:36:42.865] [Moonbox-akka.remote.default-remote-dispatcher-14] [akka.serialization.Serialization(akka://Moonbox)] Using the default Java serializer for class [moonbox.grid.deploy.DeployMessages$RegisterApplication] which is not recommended because of performance implications. Use another serializer or disable this warning using the setting 'akka.actor.warn-about-java-serializer-usage'
[WARN] [SECURITY][07/21/2020 15:38:23.886] [Moonbox-akka.remote.default-remote-dispatcher-5] [akka.serialization.Serialization(akka://Moonbox)] Using the default Java serializer for class [moonbox.grid.deploy.messages.Message$OpenSessionResponse] which is not recommended because of performance implications. Use another serializer or disable this warning using the setting 'akka.actor.warn-about-java-serializer-usage'
[WARN] [SECURITY][07/21/2020 15:38:53.279] [Moonbox-akka.remote.default-remote-dispatcher-14] [akka.serialization.Serialization(akka://Moonbox)] Using the default Java serializer for class [moonbox.grid.deploy.messages.Message$JobQueryResponse] which is not recommended because of performance implications. Use another serializer or disable this warning using the setting 'akka.actor.warn-about-java-serializer-usage'
20/07/21 15:39:05 ERROR spark.Main: Error in configuring object

@aiyingyi
Copy link
Author

aiyingyi commented Jul 21, 2020

以下是我的配置文件
moonbox {
deploy {
catalog {
implementation = "mysql"
url = "jdbc:mysql://hadoop105:3306/moonbox?createDatabaseIfNotExist=true"
user = "root"
password = "123456"
driver = "com.mysql.jdbc.Driver"
}
rest {
enable = true
port = 9099
request.timeout = "600s"
idle.timeout= "600s"
}
tcp {
enable = true
port = 10010
}
}
mixcal {
pushdown.enable = true
column.permission.enable = true
spark.sql.cbo.enabled = true
spark.sql.constraintPropagation.enabled = false

  cluster = [{
    spark.hadoop.yarn.resourcemanager.hostname = "hadoop106"
    spark.hadoop.yarn.resourcemanager.address = "hadoop106:8032"
    spark.yarn.stagingDir = "hdfs://hadoop105:9000/user/ayy"
    spark.yarn.access.namenodes = "hdfs://hadoop105:9000"
    spark.loglevel = "ERROR"
    spark.cores.max = 1
    spark.yarn.am.memory = "512m"
    spark.yarn.am.cores = 1
    spark.executor.instances = 1
    spark.executor.cores = 1
    spark.executor.memory = "512m"
  }]

}
}

@aiyingyi
Copy link
Author

好像一执行spark就出现这个问题
我附上spark的配置文件:

------------------------------------------spark-default----------------------------
spark.eventLog.enabled true
spark.eventLog.dir hdfs://hadoop105:9000/spark22

spark.yarn.historyServer.address=hadoop105:18080
spark.history.ui.port=18080

@swallowjy
Copy link
Contributor

「20/07/21 15:39:05 ERROR spark.Main: Error in configuring object」

下面没有详细信息了吗,你用的moonbox什么版本,spark什么版本?

@swallowjy
Copy link
Contributor

可以扫描文档上的微信二维码,进用户群~~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants