• spark运行信息及报错问题解决集锦




    错误1:

    ERROR client.RemoteDriver: Failed to start SparkContext: java.lang.IllegalArgumentException: Executor memory 456340275 must be at least 471859200.

    Please increase executor memory using the --executor-memory option or spark.executor.memory in Spark configuration

    解决方法:搜索 spark.executor.memory 进行配置到可使用的范围大小,如下图:

          

    错误2:

    Caused by: java.lang.IllegalArgumentException:

    Executor memory 456340275 must be at least 471859200.

    Please increase executor memory using the --executor-memory option or spark.executor.memory in Spark configuration

    解决方法:

              spark.executor.memory(Spark 执行程序最大 Java 堆栈大小)的值过小,把 spark.executor.memory 设置大于 报错信息中规定的 at least 471859200。

                 

    错误3:

    使用 yarn HA时,运行 hive on yarn 的任务无法得出结果时,并且出现以下错误

    Caused by:javax.servlet.ServletException: Could not determine the proxy server for redirection

    解决办法:禁用 YARN HA,即ResourceManager只使用一个主节点,其实一般yarn HA仍然能运行 hive on yarn 的任务并且能得出正常结果,但是还是会报出同样错误

            

    错误4:

    YARN HA(node1、node2均部署了ResourceManager)的情况下,执行 hive on spark 的程序,虽然能得出正常执行成功得出结果,

    但是对应该程序的日志信息仍然报错:无法确定用于重定向的代理服务器 Could not determine the proxy server for redirection。

    select * from test_tb;

    select count(*) from test_tb;

    insert into test_tb values(2,'ushionagisa');

            

    解决办法:

    脚本中定义任务提交的命令:

    Default Hive database:hdfs://nameservice1/user/hive/warehouse

    spark.master:spark://master:7077

    /root/spark/bin/spark-sql --master spark://node1:7077 --executor-memory 1g --total-executor-cores 2 --conf spark.sql.warehouse.dir=hdfs://nameservice1/user/hive/warehouse

  • 相关阅读:
    把旧系统迁移到.Net Core 2.0 日记 (18) --JWT 认证(Json Web Token)
    把旧系统迁移到.Net Core 2.0 日记 (17) --多租户和SoftDelete
    swagger访问api, TypeError: Failed to fetch
    nop 4.1 Widget 探究- 视图组件
    Nop 4.1版本已经迁移到.net core2.1版本
    link标签和css引入方式
    script标签
    MIME 类型
    bae64编码
    chrome调试技巧和插件介绍
  • 原文地址:https://www.cnblogs.com/Raodi/p/11465803.html
Copyright © 2020-2023  润新知