zhangzongpu 2021-05-26 21:06 采纳率: 66.7%
浏览 196
已采纳

HDP Spark插入HIVE报错

平台采用HDP搭建,使用HWC链接和操作hive。在插入hive表过程中报错(非必现,但错误出现频繁),报错信息如下图:

26-05-2021 10:31:53 CST DwdSumUser INFO - ====已存在用户处理dealAddDF====
26-05-2021 10:31:57 CST DwdSumUser INFO - 21/05/26 10:31:57 WARN TaskSetManager: Stage 245 contains a task of very large size (493 KB). The maximum recommended task size is 100 KB.
26-05-2021 10:31:57 CST DwdSumUser INFO - 21/05/26 10:31:57 WARN TaskSetManager: Stage 246 contains a task of very large size (519 KB). The maximum recommended task size is 100 KB.
26-05-2021 10:32:05 CST DwdSumUser INFO - +-------+---------+---------+--------+----+------+-------------+-------------+------------------+------------------+------------------+------------------+---+----+
26-05-2021 10:32:05 CST DwdSumUser INFO - |user_id|device_id|chip_type|province|city|county|register_date|register_hour|latest_active_date|latest_online_date|latest_active_hour|latest_online_hour| dt|hour|
26-05-2021 10:32:05 CST DwdSumUser INFO - +-------+---------+---------+--------+----+------+-------------+-------------+------------------+------------------+------------------+------------------+---+----+
26-05-2021 10:32:05 CST DwdSumUser INFO - +-------+---------+---------+--------+----+------+-------------+-------------+------------------+------------------+------------------+------------------+---+----+
26-05-2021 10:32:05 CST DwdSumUser INFO - 
26-05-2021 10:32:25 CST DwdSumUser INFO - 21/05/26 10:32:25 WARN HiveConnection: Failed to connect to node-01.hdp:10500
26-05-2021 10:32:25 CST DwdSumUser INFO - 21/05/26 10:32:25 ERROR Utils: Unable to read HiveServer2 configs from ZooKeeper
26-05-2021 10:32:25 CST DwdSumUser INFO - 21/05/26 10:32:25 ERROR HiveWarehouseDataSourceReader: Unable to read table schema
26-05-2021 10:32:25 CST DwdSumUser INFO - Exception in thread "main" java.lang.RuntimeException: java.io.IOException: java.sql.SQLException: Could not open client transport for any of the Server URI's in ZooKeeper: java.net.SocketException: Connection reset
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at com.hortonworks.spark.sql.hive.llap.HiveWarehouseDataSourceReader.readSchema(HiveWarehouseDataSourceReader.java:129)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at org.apache.spark.sql.execution.datasources.v2.DataSourceV2Relation$.apply(DataSourceV2Relation.scala:56)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:224)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:164)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at com.hortonworks.spark.sql.hive.llap.HiveWarehouseSessionImpl.executeQueryInternal(HiveWarehouseSessionImpl.java:130)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at com.hortonworks.spark.sql.hive.llap.HiveWarehouseSessionImpl.executeSmart(HiveWarehouseSessionImpl.java:191)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at com.hortonworks.spark.sql.hive.llap.HiveWarehouseSessionImpl.executeQuery(HiveWarehouseSessionImpl.java:112)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at com.bsi.spark.DwdSumUser$$anonfun$main$1.apply$mcVI$sp(DwdSumUser.scala:185)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:160)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at com.bsi.spark.DwdSumUser$.main(DwdSumUser.scala:59)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at com.bsi.spark.DwdSumUser.main(DwdSumUser.scala)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at java.lang.reflect.Method.invoke(Method.java:498)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at org.apache.spark.deploy.JavaMainApplication.start(SparkApplication.scala:52)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:904)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:198)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:228)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:137)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
26-05-2021 10:32:25 CST DwdSumUser INFO - Caused by: java.io.IOException: java.sql.SQLException: Could not open client transport for any of the Server URI's in ZooKeeper: java.net.SocketException: Connection reset
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at org.apache.hadoop.hive.llap.LlapBaseInputFormat.getSplits(LlapBaseInputFormat.java:320)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at com.hortonworks.spark.sql.hive.llap.HiveWarehouseDataSourceReader.getTableSchema(HiveWarehouseDataSourceReader.java:109)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at com.hortonworks.spark.sql.hive.llap.HiveWarehouseDataSourceReader.readSchema(HiveWarehouseDataSourceReader.java:123)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	... 20 more
26-05-2021 10:32:25 CST DwdSumUser INFO - Caused by: java.sql.SQLException: Could not open client transport for any of the Server URI's in ZooKeeper: java.net.SocketException: Connection reset
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at shadehive.org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:344)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at shadehive.org.apache.hive.jdbc.HiveDriver.connect(HiveDriver.java:107)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at java.sql.DriverManager.getConnection(DriverManager.java:664)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at java.sql.DriverManager.getConnection(DriverManager.java:247)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at org.apache.hadoop.hive.llap.LlapBaseInputFormat.getSplits(LlapBaseInputFormat.java:280)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	... 22 more
26-05-2021 10:32:25 CST DwdSumUser INFO - Caused by: org.apache.thrift.transport.TTransportException: java.net.SocketException: Connection reset
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:129)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at org.apache.thrift.transport.TTransport.readAll(TTransport.java:86)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at org.apache.thrift.transport.TSaslTransport.receiveSaslMessage(TSaslTransport.java:178)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at org.apache.thrift.transport.TSaslTransport.open(TSaslTransport.java:305)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at org.apache.thrift.transport.TSaslClientTransport.open(TSaslClientTransport.java:38)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at shadehive.org.apache.hive.jdbc.HiveConnection.openTransport(HiveConnection.java:431)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at shadehive.org.apache.hive.jdbc.HiveConnection.<init>(HiveConnection.java:312)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	... 26 more
26-05-2021 10:32:25 CST DwdSumUser INFO - Caused by: java.net.SocketException: Connection reset
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at java.net.SocketInputStream.read(SocketInputStream.java:210)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at java.net.SocketInputStream.read(SocketInputStream.java:141)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	at org.apache.thrift.transport.TIOStreamTransport.read(TIOStreamTransport.java:127)
26-05-2021 10:32:25 CST DwdSumUser INFO - 	... 32 more
26-05-2021 10:32:27 CST DwdSumUser INFO - Process with id 118140 completed unsuccessfully in 803 seconds.
26-05-2021 10:32:27 CST DwdSumUser ERROR - Job run failed!
java.lang.RuntimeException: azkaban.jobExecutor.utils.process.ProcessFailureException: Process exited with code 1
	at azkaban.jobExecutor.ProcessJob.run(ProcessJob.java:312)
	at azkaban.execapp.JobRunner.runJob(JobRunner.java:830)
	at azkaban.execapp.JobRunner.doRun(JobRunner.java:607)
	at azkaban.execapp.JobRunner.run(JobRunner.java:568)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: azkaban.jobExecutor.utils.process.ProcessFailureException: Process exited with code 1
	at azkaban.jobExecutor.utils.process.AzkabanProcess.run(AzkabanProcess.java:125)
	at azkaban.jobExecutor.ProcessJob.run(ProcessJob.java:304)
	... 8 more
26-05-2021 10:32:27 CST DwdSumUser ERROR - azkaban.jobExecutor.utils.process.ProcessFailureException: Process exited with code 1 cause: azkaban.jobExecutor.utils.process.ProcessFailureException: Process exited with code 1
26-05-2021 10:32:27 CST DwdSumUser INFO - Finishing job DwdSumUser at 1621996347500 with status FAILED
FirstPrevious0NextLast
  • 写回答

7条回答 默认 最新

  • benbenli 2021-05-26 21:47
    关注

    是不是又得work nodes是后来加上的,但是没有加到配置更新的文件里。

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(6条)

报告相同问题?

悬赏问题

  • ¥15 c#里的静态变量为什么是错误的?
  • ¥15 服务器安装php5.6版本
  • ¥15 我想用51单片机和数码管做一个从0开始的计数表 我写了一串代码 但是放到单片机里面数码管只闪烁一下然后熄灭
  • ¥20 系统工程中,状态空间模型中状态方程的应用。请猛男来完整讲一下下面所有问题
  • ¥15 我想在WPF的Model Code中获取ViewModel Code中的一个参数
  • ¥15 arcgis处理土地利用道路 建筑 林地分类
  • ¥20 使用visual studio 工具用C++语音,调用openslsx库读取excel文件的sheet问题
  • ¥100 寻会做云闪付tn转h5支付链接的技术
  • ¥15 DockerSwarm跨节点无法访问问题
  • ¥15 使用dify通过OpenAI 的API keys添加OpenAI模型时报了“Connection Error”错误