使用hive报错
ql.Driver: FAILED: SemanticException Failed to get a spark session: org.apache.hadoop.hive.ql.metadata.HiveException: Failed to create Spark client for Spark session ce22776f-34da-4eb0-84f5-0aa3fcefaf3a
查看报错日志发现
client.SparkClientImpl: Timed out waiting for client to connect.
Possible reasons include network issues, errors in remote driver or the cluster has no available resources, etc.
Please check YARN or Spark driver’s logs for further information.
因此. 增加连接的时间
在hive-site.xml中增加
<property>
<name>hive.spark.client.connect.timeout