CDH 6.3Unable to instantiate SparkSession with Hive support because Hive classes are not found.解决办法

Unable to instantiate SparkSession with Hive support because Hive classes are not found Exception in thread "main" java.lang.IllegalArgumentException: Unable to instantiate SparkSession with Hive support because Hive classes are not found. at org.apache.spark.sql.SparkSession$Builder.en... 阅读详情

系统环境

CentOS 7.7.1908
CDH 6.3.1

问题现象

执行spark-submit,具体命令如下:

spark-submit --class xxx  --master yarn --deploy-mode cluster --driver-memory 4g --executor-memory 2g --executor-cores 1 --queue thequeue  /tmp/xxx.jar

console输出如下:

2020-06-25 17:59:56 WARN  NativeCodeLoader:60 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2020-06-25 17:59:56 INFO  RMProxy:133 - Connecting to ResourceManager at master01-prod.cdh/10.0.101.86:8032
2020-06-25 17:59:56 INFO  Client:57 - Requesting a new application from cluster with 3 NodeManagers
2020-06-25 17:59:56 INFO  Configuration:2662 - resource-types.xml not found
2020-06-25 17:59:56 INFO  ResourceUtils:419 - Unable to find 'resource-types.xml'.
2020-06-25 17:59:56 INFO  Client:57 - Verifying our application has not requested more than the maximum memory capability of the cluster (13458 MB per container)
2020-06-25 17:59:56 INFO  Client:57 - Will allocate AM container, with 4505 MB memory including 409 MB overhead
2020-06-25 17:59:56 INFO  Client:57 - Setting up container launch context for our AM
2020-06-25 17:59:56 INFO  Client:57 - Setting up the launch environment for our AM container
2020-06-25 17:59:56 INFO  Client:57 - Preparing resources for our AM container
2020-06-25 17:59:56 WARN  Client:69 - Neither spark.yarn.jars nor spark.yarn.archive is set, falling back to uploading libraries under SPARK_HOME.
2020-06-25 17:59:57 INFO  Client:57 - Uploading resource file:/tmp/spark-44972a1d-fb2d-443b-b6c8-d94ae7d4dc83/__spark_libs__3873912406489385752.zip -> hdfs://master01-prod.cdh:8020/user/root/.sparkStaging/application_1591413191159_0063/__spark_libs__3873912406489385752.zip
2020-06-25 17:59:58 INFO  Client:57 - Uploading resource file:/tmp/dopEtlDev.jar -> hdfs://master01-prod.cdh:8020/user/root/.sparkStaging/application_1591413191159_0063/dopEtlDev.jar
2020-06-25 17:59:58 INFO  Client:57 - Uploading resource file:/tmp/spark-44972a1d-fb2d-443b-b6c8-d94ae7d4dc83/__spark_conf__8206675857340680660.zip -> hdfs://master01-prod.cdh:8020/user/root/.sparkStaging/application_1591413191159_0063/__spark_conf__.zip
2020-06-25 17:59:58 INFO  SecurityManager:57 - Changing view acls to: root
2020-06-25 17:59:58 INFO  SecurityManager:57 - Changing modify acls to: root
2020-06-25 17:59:58 INFO  SecurityManager:57 - Changing view acls groups to:
2020-06-25 17:59:58 INFO  SecurityManager:57 - Changing modify acls groups to:
2020-06-25 17:59:58 INFO  SecurityManager:57 - SecurityManager: authentication disabled; ui acls disabled; users  with view permissions: Set(root); groups with view permissions: Set(); users  with modify permissions: Set(root); groups with modify permissions: Set()
2020-06-25 17:59:58 INFO  HiveConf:188 - Found configuration file jar:file:/tmp/dopEtlDev.jar!/hive-site.xml
2020-06-25 17:59:58 INFO  YARNHadoopDelegationTokenManager:57 - Attempting to load user's ticket cache.
2020-06-25 17:59:58 INFO  Client:57 - Submitting application application_1591413191159_0063 to ResourceManager
2020-06-25 17:59:58 INFO  YarnClientImpl:310 - Submitted application application_1591413191159_0063
2020-06-25 17:59:59 INFO  Client:57 - Application report for application_1591413191159_0063 (state: ACCEPTED)
2020-06-25 17:59:59 INFO  Client:57 -
	 client token: N/A
	 diagnostics: AM container is launched, waiting for AM container to Register with RM
	 ApplicationMaster host: N/A
	 ApplicationMaster RPC port: -1
	 queue: root.thequeue
	 start time: 1593079198932
	 final status: UNDEFINED
	 tracking URL: http://master01-prod.cdh:8088/proxy/application_1591413191159_0063/
	 user: root
2020-06-25 18:00:00 INFO  Client:57 - Application report for application_1591413191159_0063 (state: ACCEPTED)
2020-06-25 18:00:01 INFO  Client:57 - Application report for application_1591413191159_0063 (state: ACCEPTED)
2020-06-25 18:00:02 INFO  Client:57 - Application report for application_1591413191159_0063 (state: ACCEPTED)
2020-06-25 18:00:03 INFO  Client:57 - Application report for application_1591413191159_0063 (state: ACCEPTED)
2020-06-25 18:00:04 INFO  Client:57 - Application report for application_1591413191159_0063 (state: ACCEPTED)
2020-06-25 18:00:05 INFO  Client:57 - Application report for application_1591413191159_0063 (state: ACCEPTED)
2020-06-25 18:00:06 INFO  Client:57 - Application report for application_1591413191159_0063 (state: FAILED)
2020-06-25 18:00:06 INFO  Client:57 -
	 client token: N/A
	 diagnostics: Application application_1591413191159_0063 failed 2 times due to AM Container for appattempt_1591413191159_0063_000002 exited with  exitCode: 13
Failing this attempt.Diagnostics: [2020-06-25 18:00:06.105]Exception from container-launch.
Container id: container_1591413191159_0063_02_000001
Exit code: 13

[2020-06-25 18:00:06.106]Container exited with a non-zero exit code 13. Error file: prelaunch.err.
Last 4096 bytes of prelaunch.err :
Last 4096 bytes of stderr :
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/data4/yarn/nm/usercache/root/filecache/57/__spark_libs__3873912406489385752.zip/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.3.1-1.cdh6.3.1.p0.1470567/jars/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]


[2020-06-25 18:00:06.106]Container exited with a non-zero exit code 13. Error file: prelaunch.err.
Last 4096 bytes of prelaunch.err :
Last 4096 bytes of stderr :
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/data4/yarn/nm/usercache/root/filecache/57/__spark_libs__3873912406489385752.zip/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.3.1-1.cdh6.3.1.p0.1470567/jars/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]


For more detailed output, check the application tracking page: http://master01-prod.cdh:8088/cluster/app/application_1591413191159_0063 Then click on links to logs of each attempt.
. Failing the application.
	 ApplicationMaster host: N/A
	 ApplicationMaster RPC port: -1
	 queue: root.thequeue
	 start time: 1593079198932
	 final status: FAILED
	 tracking URL: http://master01-prod.cdh:8088/cluster/app/application_1591413191159_0063
	 user: root
2020-06-25 18:00:06 ERROR Client:73 - Application diagnostics message: Application application_1591413191159_0063 failed 2 times due to AM Container for appattempt_1591413191159_0063_000002 exited with  exitCode: 13
Failing this attempt.Diagnostics: [2020-06-25 18:00:06.105]Exception from container-launch.
Container id: container_1591413191159_0063_02_000001
Exit code: 13

[2020-06-25 18:00:06.106]Container exited with a non-zero exit code 13. Error file: prelaunch.err.
Last 4096 bytes of prelaunch.err :
Last 4096 bytes of stderr :
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/data4/yarn/nm/usercache/root/filecache/57/__spark_libs__3873912406489385752.zip/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.3.1-1.cdh6.3.1.p0.1470567/jars/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]


[2020-06-25 18:00:06.106]Container exited with a non-zero exit code 13. Error file: prelaunch.err.
Last 4096 bytes of prelaunch.err :
Last 4096 bytes of stderr :
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/data4/yarn/nm/usercache/root/filecache/57/__spark_libs__3873912406489385752.zip/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.3.1-1.cdh6.3.1.p0.1470567/jars/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]


For more detailed output, check the application tracking page: http://master01-prod.cdh:8088/cluster/app/application_1591413191159_0063 Then click on links to logs of each attempt.
. Failing the application.
Exception in thread "main" org.apache.spark.SparkException: Application application_1591413191159_0063 finished with failed status
	at org.apache.spark.deploy.yarn.Client.run(Client.scala:1158)
	at org.apache.spark.deploy.yarn.YarnClusterApplication.start(Client.scala:1606)
	at org.apache.spark.deploy.SparkSubmit.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:851)
	at org.apache.spark.deploy.SparkSubmit.doRunMain$1(SparkSubmit.scala:167)
	at org.apache.spark.deploy.SparkSubmit.submit(SparkSubmit.scala:195)
	at org.apache.spark.deploy.SparkSubmit.doSubmit(SparkSubmit.scala:86)
	at org.apache.spark.deploy.SparkSubmit$$anon$2.doSubmit(SparkSubmit.scala:926)
	at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:935)
	at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
2020-06-25 18:00:06 INFO  ShutdownHookManager:57 - Shutdown hook called
2020-06-25 18:00:06 INFO  ShutdownHookManager:57 - Deleting directory /tmp/spark-15956e0f-d264-4042-8968-1a3ba0b696a9
2020-06-25 18:00:06 INFO  ShutdownHookManager:57 - Deleting directory /tmp/spark-44972a1d-fb2d-443b-b6c8-d94ae7d4dc83

解决方案

1.查看yarn日志
访问:http://master01-prod.cdh:19888/jobhistory/logs//slave01-prod.cdh:8041/container_1591413191159_0057_02_000001/container_1591413191159_0057_02_000001/root

具体日志如下:

Log Type: prelaunch.err

Log Upload Time: Thu Jun 25 16:40:56 +0800 2020

Log Length: 0


Log Type: prelaunch.out

Log Upload Time: Thu Jun 25 16:40:56 +0800 2020

Log Length: 70

Setting up env variables
Setting up job resources
Launching container

Log Type: stderr

Log Upload Time: Thu Jun 25 16:40:56 +0800 2020

Log Length: 544

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/data2/yarn/nm/usercache/root/filecache/42/__spark_libs__2999614218847688045.zip/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/opt/cloudera/parcels/CDH-6.3.1-1.cdh6.3.1.p0.1470567/jars/slf4j-log4j12-1.7.25.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
SLF4J: Actual binding is of type [org.slf4j.impl.Log4jLoggerFactory]

Log Type: stdout

Log Upload Time: Thu Jun 25 16:40:56 +0800 2020

Log Length: 5141

Showing 4096 bytes of 5141 total. Click here for the full log.

-25 16:40:55 INFO  ApplicationMaster:57 - Waiting for spark context initialization...
arg is not exist and use System currentTimeMillis!
2020-06-25 16:40:55 ERROR ApplicationMaster:94 - User class threw exception: java.lang.IllegalArgumentException: Unable to instantiate SparkSession with Hive support because Hive classes are not found.
java.lang.IllegalArgumentException: Unable to instantiate SparkSession with Hive support because Hive classes are not found.
	at org.apache.spark.sql.SparkSession$Builder.enableHiveSupport(SparkSession.scala:878)
	at com.mskj.dopdev.scfp.dm_scfp_num_type_value$.main(dm_scfp_num_type_value.scala:34)
	at com.mskj.dopdev.scfp.dm_scfp_num_type_value.main(dm_scfp_num_type_value.scala)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:673)
2020-06-25 16:40:55 INFO  ApplicationMaster:57 - Final app status: FAILED, exitCode: 13, (reason: User class threw exception: java.lang.IllegalArgumentException: Unable to instantiate SparkSession with Hive support because Hive classes are not found.
	at org.apache.spark.sql.SparkSession$Builder.enableHiveSupport(SparkSession.scala:878)
	at com.mskj.dopdev.scfp.dm_scfp_num_type_value$.main(dm_scfp_num_type_value.scala:34)
	at com.mskj.dopdev.scfp.dm_scfp_num_type_value.main(dm_scfp_num_type_value.scala)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:673)
)
2020-06-25 16:40:55 ERROR ApplicationMaster:94 - Uncaught exception: 
org.apache.spark.SparkException: Exception thrown in awaitResult: 
	at org.apache.spark.util.ThreadUtils$.awaitResult(ThreadUtils.scala:226)
	at org.apache.spark.deploy.yarn.ApplicationMaster.runDriver(ApplicationMaster.scala:447)
	at org.apache.spark.deploy.yarn.ApplicationMaster.run(ApplicationMaster.scala:275)
	at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$3.run(ApplicationMaster.scala:805)
	at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$3.run(ApplicationMaster.scala:804)
	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:1875)
	at org.apache.spark.deploy.yarn.ApplicationMaster$.main(ApplicationMaster.scala:804)
	at org.apache.spark.deploy.yarn.ApplicationMaster.main(ApplicationMaster.scala)
Caused by: java.lang.IllegalArgumentException: Unable to instantiate SparkSession with Hive support because Hive classes are not found.
	at org.apache.spark.sql.SparkSession$Builder.enableHiveSupport(SparkSession.scala:878)
	at com.mskj.dopdev.scfp.dm_scfp_num_type_value$.main(dm_scfp_num_type_value.scala:34)
	at com.mskj.dopdev.scfp.dm_scfp_num_type_value.main(dm_scfp_num_type_value.scala)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at org.apache.spark.deploy.yarn.ApplicationMaster$$anon$2.run(ApplicationMaster.scala:673)
2020-06-25 16:40:55 INFO  ApplicationMaster:57 - Deleting staging directory hdfs://master01-prod.cdh:8020/user/root/.sparkStaging/application_1591413191159_0057
2020-06-25 16:40:55 WARN  NativeCodeLoader:60 - Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
2020-06-25 16:40:55 INFO  ShutdownHookManager:57 - Shutdown hook called

重点关注:reason: User class threw exception: java.lang.IllegalArgumentException: Unable to instantiate SparkSession with Hive support because Hive classes are not found
初步分析是缺少hive相关的jar

2.检查hive相关jar包
找一台可以正常submit的服务器,对比分析发现spark所需要的jar包都在对应位置,因此排除缺少jar包问题

3.检查spark配置
正常服务器的spark配置:
在这里插入图片描述

异常服务器的spark配置:
在这里插入图片描述
这下真相大白了,spark-conf的配置不同

4.unlink spark-conf ,创建正确的软链接

5.验证问题是否解决

[root@master02-prod alternatives]# spark-submit --class xxxx  --master yarn --deploy-mode cluster --driver-memory 4g --executor-memory 2g --executor-cores 1 --queue thequeue  /tmp/xxxx.jar
20/06/25 18:06:55 INFO client.RMProxy: Connecting to ResourceManager at master01-prod.cdh/10.0.101.86:8032
20/06/25 18:06:55 INFO yarn.Client: Requesting a new application from cluster with 3 NodeManagers
20/06/25 18:06:55 INFO conf.Configuration: resource-types.xml not found
20/06/25 18:06:55 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'.
20/06/25 18:06:55 INFO yarn.Client: Verifying our application has not requested more than the maximum memory capability of the cluster (13458 MB per container)
20/06/25 18:06:55 INFO yarn.Client: Will allocate AM container, with 4505 MB memory including 409 MB overhead
20/06/25 18:06:55 INFO yarn.Client: Setting up container launch context for our AM
20/06/25 18:06:55 INFO yarn.Client: Setting up the launch environment for our AM container
20/06/25 18:06:55 INFO yarn.Client: Preparing resources for our AM container
20/06/25 18:06:55 INFO yarn.Client: Uploading resource file:/tmp/dopEtlDev.jar -> hdfs://master01-prod.cdh:8020/user/root/.sparkStaging/application_1591413191159_0064/dopEtlDev.jar
20/06/25 18:06:55 INFO yarn.Client: Uploading resource file:/tmp/spark-410edde9-c2d8-4fd4-9a12-1f7473cc89f5/__spark_conf__1869574925881857964.zip -> hdfs://master01-prod.cdh:8020/user/root/.sparkStaging/application_1591413191159_0064/__spark_conf__.zip
20/06/25 18:06:55 INFO spark.SecurityManager: Changing view acls to: root
20/06/25 18:06:55 INFO spark.SecurityManager: Changing modify acls to: root
20/06/25 18:06:55 INFO spark.SecurityManager: Changing view acls groups to:
20/06/25 18:06:55 INFO spark.SecurityManager: Changing modify acls groups to:
20/06/25 18:06:55 INFO spark.SecurityManager: SecurityManager: authentication disabled; ui acls disabled; users  with view permissions: Set(root); groups with view permissions: Set(); users  with modify permissions: Set(root); groups with modify permissions: Set()
20/06/25 18:06:56 INFO conf.HiveConf: Found configuration file file:/etc/hive/conf.cloudera.hive/hive-site.xml
20/06/25 18:06:56 INFO security.YARNHadoopDelegationTokenManager: Attempting to load user's ticket cache.
20/06/25 18:06:56 INFO yarn.Client: Submitting application application_1591413191159_0064 to ResourceManager
20/06/25 18:06:56 INFO impl.YarnClientImpl: Submitted application application_1591413191159_0064
20/06/25 18:06:57 INFO yarn.Client: Application report for application_1591413191159_0064 (state: ACCEPTED)
20/06/25 18:06:57 INFO yarn.Client:
	 client token: N/A
	 diagnostics: AM container is launched, waiting for AM container to Register with RM
	 ApplicationMaster host: N/A
	 ApplicationMaster RPC port: -1
	 queue: root.thequeue
	 start time: 1593079616105
	 final status: UNDEFINED
	 tracking URL: http://master01-prod.cdh:8088/proxy/application_1591413191159_0064/
	 user: root
20/06/25 18:06:58 INFO yarn.Client: Application report for application_1591413191159_0064 (state: ACCEPTED)
20/06/25 18:06:59 INFO yarn.Client: Application report for application_1591413191159_0064 (state: ACCEPTED)
20/06/25 18:07:00 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:00 INFO yarn.Client:
	 client token: N/A
	 diagnostics: N/A
	 ApplicationMaster host: slave03-prod.cdh
	 ApplicationMaster RPC port: 40442
	 queue: root.thequeue
	 start time: 1593079616105
	 final status: UNDEFINED
	 tracking URL: http://master01-prod.cdh:8088/proxy/application_1591413191159_0064/
	 user: root
20/06/25 18:07:01 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:02 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:03 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:04 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:05 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:06 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:07 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:08 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:09 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:10 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:11 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:12 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:13 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:14 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:15 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:16 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:17 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:18 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:19 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:20 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:21 INFO yarn.Client: Application report for application_1591413191159_0064 (state: RUNNING)
20/06/25 18:07:22 INFO yarn.Client: Application report for application_1591413191159_0064 (state: FINISHED)
20/06/25 18:07:22 INFO yarn.Client:
	 client token: N/A
	 diagnostics: N/A
	 ApplicationMaster host: slave03-prod.cdh
	 ApplicationMaster RPC port: 40442
	 queue: root.thequeue
	 start time: 1593079616105
	 final status: SUCCEEDED
	 tracking URL: http://master01-prod.cdh:8088/proxy/application_1591413191159_0064/
	 user: root
20/06/25 18:07:22 INFO util.ShutdownHookManager: Shutdown hook called
20/06/25 18:07:22 INFO util.ShutdownHookManager: Deleting directory /tmp/spark-410edde9-c2d8-4fd4-9a12-1f7473cc89f5
20/06/25 18:07:22 INFO util.ShutdownHookManager: Deleting directory /tmp/spark-e847fe28-3bd5-4c74-bd1b-2b8fc7e5c4e6

参考资料

  1. https://java.wekeepcoding.com/article/11916051/Unable+to+instantiate+SparkSession+with+Hive+support+because+Hive+classes+are+not+found
  2. https://blog.csdn.net/weixin_43552807/article/details/105209467?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522159307823319725250158297%2522%252C%2522scm%2522%253A%252220140713.130102334…%2522%257D&request_id=159307823319725250158297&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2allsobaiduend~default-1-105209467.ecpm_v1_rank_business_v1&utm_term=Unable+to+instantiate+SparkSes
VL53L1X vs VL53L0X:激光测距传感器选型指南与性能对比 本文深入对比了VL53L1X与VL53L0X两款激光测距传感器的核心差异。VL53L1X采用区域ToF原理,在抗环境光干扰、最大测距及多目标识别方面优势显著,尤其适合复杂光线与动态场景。文章结合机器人避障、无人机定高等实战场景,提供了清晰的选型决策树,帮助工程师根据测距需求、环境复杂度与系统成本做出最优选择。 阅读详情

相关推荐

从零开始:用Xilinx FPGA实现RISC-V单周期CPU(附完整Verilog代码)

本文详细介绍了如何使用Xilinx FPGA从零开始实现RISC-V单周期CPU,包括开发环境搭建、核心架构设计、Verilog代码实现及功能验证。通过实战指南和完整代码示例,帮助开发者掌握RISC-V CPU设计的关键技术,适用于嵌入式系统和定制化计算场景。

weixin_30664051的博客 550

报错Unable to instantiate SparkSession with Hive support because Hive classes are not found.解决方法

java.lang.ClassNotFoundException: org.apache.spark.sql.hive.HiveSessionState; javax.jdo.JDOFatalInternalException: Error creating transactional connection factory

GitHub-ChauserMondieu 3267

水下井口装置及钻杆建模

内容:海上油气资源开采的过程中,通常会由海上钻井平台下入钻杆连接到海底井口装置。OrcaFlex软件可进行各种海洋工程结构动态分析,通过各项数据的输入,能够很方便地进行水下井口装置及钻杆建模。直接使用软件New Line及new vessel功能,再设置模型的各项参数(几何属性、弯曲刚度、轴线刚度、扭转刚度、泊松比等)即可建成井口装置及钻杆模型。 设置管线的几何属性:主要包括管线的内外径、壁厚、...

s0302017的博客 1151

Spark报错:Unable to instantiate SparkSession with Hive support because Hive classes are not found

现象 用IDEA写Spark,在初始化SparkSession时,设置enableHiveSupport()报错 ,报错信息为Unable to instantiate SparkSession with Hive support because Hive classes are not found. SparkSession sc = SparkSession .builder() .master("local[*]")

chandelierds的博客 8001

生物信息学新手必看:MAFFT多序列比对从安装到实战(附参数优化技巧)

本文为生物信息学新手提供了MAFFT多序列比对工具的完整指南。从Linux环境下的安装部署,到核心算法策略(如FFT-NS-i、L-INS-i)的选择逻辑,再到空位罚分等关键参数的深度解析与优化技巧,手把手教你完成从原始序列到高质量比对结果的实战流程,为后续进化树构建等分析奠定坚实基础。

weixin_29230773的博客 493

从零构建知识图谱:本体工程与知识建模实战指南

本文是一份从零构建知识图谱的实战指南,重点阐述了知识建模与本体工程的核心地位。文章详细介绍了如何使用Protégé工具进行本体设计,包括定义领域、复用现有本体、构建类层次与属性约束,并讲解了如何利用D2RQ工具将关系数据库数据转换为RDF三元组,最终通过Apache Jena Fuseki搭建SPARQL端点进行知识查询与推理,让知识图谱真正“活”起来。

weixin_29057695的博客 579

Unable to instantiate SparkSession with Hive support because Hive classes are not found.

CDH集群执行spark sql,出现下面错误: ERROR ApplicationMaster:94 - User class threw exception: java.lang.IllegalArgumentException: Unable to instantiate SparkSession with Hive support because Hive classes are not found. java.lang.IllegalArgumentException: Unable to i.

weixin_42575593的博客 2040

别再手动连线了!用Tessent IJTAG的SIB和TDR,5分钟搞定复杂芯片的DFT网络分区

本文探讨了如何利用Tessent IJTAG的SIB(Segment Insertion Bit)和TDR(Test Data Register)技术,高效解决复杂芯片DFT网络分区问题。通过智能化的扫描链管理和声明式定义,显著降低连接复杂度,提升测试覆盖率和良率,适用于超大规模SoC设计。

weixin_29251131的博客 308

Spark3 Unable to instantiate SparkSession with Hive support because Hive classes are not found

spark3 hive 报错 enableHiveSupport

qq_39937778的博客 1695

HybridCLR热更新打包报错全解析:从原理到实战解决方案

热更新技术是现代游戏和应用开发中实现动态内容交付与Bug修复的核心机制,它允许开发者在无需重新发布完整应用的情况下更新代码逻辑。其原理通常涉及在运行时加载并执行新的代码模块,这要求框架在底层实现安全的代码隔离、内存管理与元数据桥接。在Unity生态中,HybridCLR作为基于IL2CPP的高性能热更新解决方案,通过补充元数据和AOT泛型引用技术,实现了对C#代码的原生级热更支持,显著提升了开发迭代效率与线上问题修复能力。然而,在实际的工程实践中,尤其是在面向Android、iOS等多平台打包构建时,开发者

weixin_29017445的博客 315

Tessy学习系列(三):单元测试——官方例程isValueInRange

注意:工程名称以及路劲不能包含空格和中文

不吃鱼的猫的博客 2358

Unable to instantiate SparkSession with Hive support because Hive classes ar

报错原因:没有加入 hive 的依赖 org.apache.spark spark-hive_2.11 ${spark.version} 把以上依赖加入就可以了

weixin_43797368的博客 3853

【stm32+K210项目】基于K210与STM32协同工作的智能垃圾分类系统设计与实现(完整工程资料源码)

本系统采用SG90舵机Maix Bit摄像头STM32C8T6主控板以及LX_TRIG_MP3_V6.0语音播报模块,构建了一套高效的智能垃圾分类系统,综合运用了图像识别、语音播报及精准控制技术。SG90舵机负责控制垃圾桶的开盖操作。该舵机通过接收PWM信号来实现转动,内部有一个基准电路产生周期为20ms的PWM信号,通过外部脉冲信号的控制(高电平时间在0.5ms至2.5ms之间),使得舵机的输出轴转动到指定位置。舵机内的位置反馈电位计。

嵌入式技术开发 5109

Exception in thread “main“ java.lang.IllegalArgumentException: Unable to instantiate SparkSession wi

Exception in thread "main" java.lang.IllegalArgumentException: Unable to instantiate SparkSession wi

T_Y_F_的博客 1234

STM32F407中文手册

STM32f407中文手册 本参考手册面向应用开发人员,提供有关使用 STM32F405xx/07xx、STM32F415xx/17xx、 STM32F42xxx 和 STM32F43xxx 微控制器存储器与外设的完整信息。STM32F405xx/07xx、STM32F415xx/17xx、STM32F42xxx 和 STM32F43xxx 构成一个微 控制器系列,各产品具有不同的存储器大小、封装和外设。有关订购信息以及器件的机械与电气特性,请参见数据手册。有关 ARM Cortex™-M4F 内核的信息,请参见《Cortex™-M4F 技术参考手册》。

OV9734 DATASHEET,完整规格书

OV9734完整规格书,包括电气参数,尺寸规格,寄存器配置表等

Unable to instantiate SparkSession with Hive support because Hive classes are not found.解决办法

在使用scala+sbt开发spark应用程序时,会遇到找不到hive class这个问题。 spark操作hive应该导入spark-hive包。关于spark-hive包,mvnrepository网站的sbt引用区域写的是: libraryDependencies += “org.apache.spark” %% “spark-hive” % “2.4.4” % "provided" 但是实...

weixin_43552807的博客 4204

VB摄像头监控

该VB模块可对摄像头捕获的画面进行录像等,可在创建的窗口进行控制

Spark操作hive遇到的问题

Spark操作hive报错如下 Exception in thread "main" java.lang.IllegalArgumentException: Unable to instantiate SparkSession with Hive support because Hive classes are not found.     at org.apache.spark.sql.Sp

beijihukk的博客 1万+

文档:亲测可用解决vnc灰屏,黑屏,鼠标大黑叉情况

主要解决vnc-viewer灰屏,黑屏,鼠标大黑叉等现象,详细见文档。

启动hive报错_生产Spark+Hive会遇见的拦路虎

1.抛错: Unable to instantiate SparkSession with Hive support because Hive classes are not found.需要先将hadoop的core-site.xml,hive的hive-site.xml拷贝到project中1.1 测试代码1.2 报错1.3 查看源码1.4 发现找不到HiveSessionStateBuild...

weixin_39863008的博客 671

Unable to instantiate SparkSession with Hive support because Hive classes are

spark-hive的版本不对应 <!-- https://mvnrepository.com/artifact/org.apache.spark/spark-hive --> <dependency> <groupId>org.apache.spark</groupId> <artifactId...

weixin_42194239的博客 1644

【SparkSQL】- 连接 Hive 报错 SparkSession with Hive support because Hive classes are no

报错信息 ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console. Exception in thread "main" java.lang.IllegalArgumentException: Unable to i...

兀坐晴窗独饮茶 2078

Caused by: java.lang.IllegalArgumentException: Unable to instantiate SparkSession with Hive support

oozie 提交spark任务时,报以下错,第一感觉一头懵,仔细查找原来oozie共享库是少了jar包 2019-01-17 10:26:47,744 [main] INFO org.apache.spark.util.SignalUtils - Registered signal handler for TERM 2019-01-17 10:26:47,746 [main] INFO or...

gucapg的专栏 3086
上一篇: CDH 6.3.1 设置邮件告警功能【2020年06月】
下一篇: Mac 安装Yarn
bertramlau
博客等级 码龄19年 14粉丝 48原创
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值