TT Bigdata TT Bigdata
首页
  • 产品中心

    • 当前版本
    • 版本矩阵与下载
  • 安装与使用

    • Ambari Plus 安装
      • 安装前准备
        • 实施总览
        • Step0—源码包下载与目录准备
        • Step1—系统源与基础工具准备
        • Step2—集群免密登录
        • Step3—主机名解析同步
        • Step4—Chrony 时间同步
        • Step5—Nginx 本地 Yum 文件服务
        • Step6—JDK 双环境准备
        • Step7—MySQL 驱动与本地仓库
        • Step8—MariaDB 初始化
        • Step9—AmbariServer 初始化
        • 必须 ambari plus 数据库初始化文件
      • 安装部署
        • 初始化集群
    • 组件安装
      • 组件安装总览
      • Solr 安装
      • Ranger 安装
      • Knox 安装
      • HDFS 安装
      • YARN 安装
      • MapReduce2 安装
      • Tez 安装
      • Hive 安装
      • Sqoop 安装
      • HBase 安装
      • Kafka 安装
      • Flink 安装
      • Spark 安装
      • Hue 安装
      • Livy 安装
      • Zeppelin 安装
      • DolphinScheduler 安装
      • Doris 安装
      • Celeborn 安装
      • Ozone 安装
      • Impala 安装
      • Trino 安装
      • Paimon 安装
      • Hudi 安装
      • Atlas 安装
      • Superset 安装
      • Alluxio 安装
    • 开启高可用
      • 开启高可用总览
      • HDFS 开启 HA
      • YARN 开启 HA
    • 权限与审计
      • 权限与审计总览
      • Kerberos 认证启用
      • LDAP 目录接入
    • Ambari Plus Monitor
      • IoTDB 安装与部署
      • 必须 ambari plus monitor 数据库初始化文件
      • Monitor 安装
      • 监控与告警使用
    • 常见问题
      • 安装使用常见问题
  • 发布与支持

    • 更新日志
    • 服务说明
    • 优惠政策
    • 合作共建
    • 蓝图愿景
    • 历史版本
      • 更新日志 · v2.2.3
      • 更新日志 · v2.2.2
      • 更新日志 · v2.2.1
      • 更新日志 · v2.2.0
      • 更新日志 · v2.1.0
      • 更新日志 · v2.0.0
      • 更新日志 · v1.0.7
      • 更新日志 · v1.0.6
      • 更新日志 · v1.0.5
      • 更新日志 · v1.0.4
      • 更新日志 · v1.0.3
      • 更新日志 · v1.0.2
      • 更新日志 · v1.0.1
      • 更新日志 · v1.0.0
  • 会员与访问

    • 专属内容解锁
  • Ambari 安装

    • 常规安装
      • 适用于Ambari3.0.0-kylin V10-aarch64
        • Step0—源码包下载
        • Step1—基础环境准备
        • Step2—免密登录配置
        • Step3—安装JDK-Bisheng
        • Step5—Nginx安装
        • Step6—本地yum源配置
        • Step7—Mariadb初始化
        • Step8—AmbariServer初始化
        • Step9—Ambari Web UI 初始化安装
        • [快速安装]—脚本极速部署
      • 适用于Ambari3.0.0-kylin V10-x86_64
        • Step0—源码包下载
        • Step1—基础环境准备
        • Step2—免密登录配置
        • Step3—安装JDK17与JDK1.8
        • Step5—Nginx安装
        • Step6—本地yum源配置
        • Step7—Mariadb初始化
        • Step8—AmbariServer初始化
        • Step9—Ambari Web UI 初始化安装
        • [快速安装]—脚本极速部署
      • 适用于Ambari3.0.0-ubuntu22.04
        • Step0—源码包下载
        • Step1—基础环境准备
        • Step3—安装JDK17与JDK1.8
        • Step4—时间同步(Chrony)
        • Step5—Nginx安装
        • Step6—本地apt源
        • Step7—Mariadb初始化
        • Step8—AmbariServer初始化
        • Step9—Ambari Web UI 初始化安装
        • [快速安装]—脚本极速部署
      • 适用于Ambari3.0.0-el7
        • Step0—源码包下载
        • Step3—安装JDK17(Ambari 3.0专用)
        • Step8—AmbariServer初始化
        • Step9—Ambari Web UI 初始化安装
        • [快速安装]—脚本极速部署
      • 适用于Ambari3.0.0-el8
        • Step0—源码包下载
        • Step1—基础环境准备
        • Step3—安装JDK17与JDK1.8
        • Step7—Mariadb初始化
        • Step8—AmbariServer初始化
        • Step9—Ambari Web UI 初始化安装
        • [快速安装]—脚本极速部署
      • 适用于Ambari2.8.0-el7
        • Step1—基础环境准备
        • Step2—免密登陆认证
        • Step3—安装JDK
        • Step4—时间同步(Chrony)
        • Step5—Nginx安装
        • Step6—本地yum源配置
        • Step7—Mariadb初始化
        • Step8—AmbariServer初始化
        • Step9—Ambari Web Ui 初始化安装
    • 一键部署
      • Ambari快速部署—3.0.0
        • 【Kylin V10 aarch64】强力卸载脚本
        • 【Kylin V10 aarch64】自动安装脚本
        • 【Kylin V10 x86_64】强力卸载脚本
        • 【Kylin V10 x86_64】自动安装脚本
        • 【Ubuntu22】强力卸载脚本
        • 【Ubuntu22】自动安装脚本
        • 【Rocky8.10】强力卸载脚本
        • 【Rocky8.10】自动安装脚本
        • 【Centos7.9】自动安装脚本
      • Ambari快速部署—2.8.0
        • 【Centos7.9】自动安装脚本
        • 【Centos7.9】强力卸载脚本
      • 数据库环境
        • PostgreSQL 快速安装脚本
      • JDK环境
        • 安装JDK1.8
        • 安装JDK 17
        • 安装JDK1.8-aarch64
        • 安装JDK 17-aarch64
      • MAVEN环境
        • 安装Maven3.8.4
        • 安装Maven3.9.9
      • GRADLE环境
        • 安装Gradle5.6.4
      • CONDA环境
        • 安装Miniconda2
        • 编译Ambari2.8.0——Miniconda3
      • R环境
        • 【Kylin V10 x86_64】安装R 4.4.2
        • 【Ubuntu22】安装R 4.4.2
        • 【Rocky8.10】安装R 4.4.2
        • 【CentOS7】安装R 4.4.2
  • 组件安装

    • 安装指导
    • 魔改分享
      • Phoenix-JDK17下编译的二进制包适用于Datagrip
        • Q: 高版本 DataGrip 无法使用 Phoenix 驱动
        • A: Phoenix - JDK17 制作&下载
    • 最小化安装(简单)
      • Zookeeper 安装
      • Hadoop 安装
      • Yarn安装
      • Hive 安装
      • Spark 安装
      • HBase 安装
      • Kafka 安装
      • Sqoop 安装
      • Flink 安装
      • DolphinScheduler 安装
      • Zeppelin 安装
      • Redis 安装
      • Doris安装
      • Celeborn安装
      • Ozone安装
      • Impala安装
      • Cloudbeaver 安装
      • Ambari Metrics安装
      • Solr安装
      • Ranger 安装
      • Trino安装
      • Paimon安装
      • Hudi安装
      • Atlas 安装
      • Superset 安装
      • Livy 安装
      • Alluxio 安装
      • Hue 安装
      • Knox 安装
    • 进阶安装技巧(需开启Kerberos)
      • Ambari Metrics 进阶安装技巧
      • Atlas 进阶安装技巧
    • 高可用安装(有难度)
      • Zookeeper
      • Hadoop-Namenode
      • Yarn-ResourceManager
      • Hive
      • Hbase
      • Kafka
      • DolphinScheduler
      • Redis
      • Doris
      • Celeborn
      • Ozone
      • Ranger
  • Kerberos 旧版专题

    • 实战 Kerberos
    • 自建 Kerberos
      • KDC服务初始化安装
        • KDC服务初始化安装(RHEL篇)
        • KDC服务初始化安装(Ubuntu篇)
      • 开启Kerberos认证
        • Ambari 中开启 Kerberos 认证流程详解
        • [不看会报错]-Atlas开启准备工作
        • [不看会报错]-Zeppelin开启准备工作
        • [不看会报错]-Impala开启准备工作
        • [不看会报错]-Trino开启准备工作
      • 关闭Kerberos认证
        • Ambari 中关闭 Kerberos 认证流程详解
    • FreeIPA 认证
      • FreeIPA服务端初始化
        • FreeIPA Server 安装指导
      • FreeIPA客户端初始化及Ambari开启IPA认证
        • [Step1]-FreeIPA Client 安装与入域实战
        • [Step2]-FreeIPA 初始化核心用户
        • [Step3]-Ambari 中开启 Kerberos 认证流程详解
        • [Step3-1]-krb5-conf template调整
      • 部分踩坑-问题发现
        • Ambari Server 启动失败:no valid keystore
        • FreeIPA Client 导致 Ambari 权限异常问题排查
      • 部分踩坑-完美解决
        • Ambari Server 启动失败:no valid keystore
      • 辅助测试
        • FreeIPA Client 调试安装速记
        • Ambari Server 证书调试安装速记
    • 其他优化技巧
      • Atlas-Ranger-StringUtils缺失
      • Atlas-Ranger-commons-compress缺失
    • 部分组件踩坑合集
      • Test Kerberos Client报错:Failed to kinit
      • KERBEROS SERVICE CHECK 报错
      • Ambari开启Kerberos认证加密类型错误
      • [开启Kerberos]-Solr启动失败处理
      • [开启Kerberos]-Kafka启动失败处理
      • [开启Kerberos]-Atlas启动-Hbase权限异常
      • [开启Kerberos]-Atlas启动-Solr权限异常
      • [开启Kerberos]-Atlas启动-Kafka权限异常
      • [开启Kerberos]-Hive服务检查异常处理
      • [开启Kerberos]-Trino启动-配置文件处理
      • [开启Kerberos]-Trino启动-缺失PEM证书处理
      • [开启Kerberos]-Trino启动-连接Hive失败
      • [关闭 Kerberos]-Kafka 注销异常
      • [关闭 Kerberos]-Hive 注销异常
      • Kerberos 客户端模板渲染异常处理(临时处理)
      • Kafka 启动兼容 Kerberos 源码级修改
      • Kerberos 客户端模板渲染异常处理(源码修改)
    • 实战技巧
      • Knox 接入 Trino web-ui 解决方案
      • [开启Kerberos]-Trino启动-配置模板
      • [Knox适配]-Trino-474-转发规则魔改
    • 其他技巧
      • Ambari Security 开启步骤
  • Ranger 旧版专题

    • 实战 Ranger
    • Ranger HA 旧发行版
      • 环境准备
        • [Step1] Haproxy 规划与环境安装
      • Kerberos准备
        • [Step2] 统一访问域名的 Kerberos 票据生成
        • [Step3] 调整 Kerberos Client 配置
      • 安装指导
        • [Step4] Ambari页面开启 Ranger Admin 高可用
        • [Step5] 对齐 Ranger HA 的凭证处理
    • Ranger HA ttr-release
      • [Step2] Ranger Admin HA 自动化安装
    • FreeIPA 与 LDAP
      • [Step1] Ambari 安装 Ranger 并配置 FreeIPA + LDAP
      • [Step2] 制作 Ranger Usersync 证书并应用组件
      • [Step3] 制作 Ranger Admin 证书并应用组件
      • [Step4]Ranger HDFS Repository 创建失败修复
      • [Step5]Ranger HBase Repository 创建失败修复
    • 踩坑汇总
      • 调用 Ranger API 返回 403 问题
      • Ranger Admin LDAP 认证报 Bad credentials 分析
    • 解决方案
      • Ranger Admin LDAP 认证报 Bad credentials 处理
      • Ranger HA 虚拟域名 Principal 缺失修复
      • Ranger Usersync 证书快速导入脚本(LDAPS)
      • Ranger Admin 证书快速导入脚本
      • Ranger HDFS Repository 快速处理
      • Ranger HBase / Yarn Repository 快速处理
  • 开发环境

    • Ambari-Env
      • 环境准备
      • 开始使用
    • 工具与镜像
      • Maven镜像加速
      • Gradle镜像加速
      • Node.js 多版本共存方案
      • Npm镜像加速
      • Bower镜像加速
      • R环境安装+一键安装脚本
      • PostgreSQL 快速安装
  • Ambari 编译

    • Ambari 源码编译
    • 前端开发
    • 后端开发
    • Ambari Web本地启动
  • Bigtop 编译

    • 官方组件编译
    • 扩展组件编译
    • 工具与镜像
      • Ivy配置私有镜像仓库
      • APT仓库增量更新
      • Temurin JDK 23快速安装
  • Ambari 深度专题

    • Ambari Server 原理
    • Ambari Metrics 解读
  • Bigtop 方法论

    • Bigtop 深度专题
  • 自定义集成

    • Redis集成教学
    • Dolphin集成教学
    • Doris集成教学
    • 各组件代码
    • 通用代码模板
  • 报错解决

    • Ambari 报错
      • Ambari Views
        • MDEP-187 从根因到修复
        • Loading node labels问题解决
      • Ambari
        • phantomjs下载失败问题
        • 编译问题:GCC 安装与配置
        • bower CERT_HAS_EXPIRED 错误问题
        • Ambari-admin包出现bower install错误
        • Cannot run program "rpmbuild"
        • Python: No such file or directory
        • Yarn解压报错EOFException排查与解决
        • Rpm-maven-plugin与shebang兼容性报错
        • Rpm-maven-plugin 最佳实践
        • Bower install拉取失败解决
        • 缺少 python3 报错解决
        • Python(>=2.6) but is not installed
        • SSL_ERROR_SYSCALL 的修复方法
      • Ambari-infra
        • org.apache.commons.io does not exist
        • maven-compiler-plugin:3.3:compile
        • java.security.InvalidAlgorithmParameterException
        • ambari-infra-solr-plugin依赖报错解决方案
      • Ambari-metrics
        • psutil 缺失与 archive_util 导入错误
        • Ambari-Metrics Monitor 启动失败
        • Ambari-Metrics Monitor 启动失败
        • Ambari-Metrics Monitor 启动失败
        • Ambari-Metrics Monitor 启动失败
    • Bigtop 报错
      • Hadoop
        • /usr/bin/env: python3: No such file or directory 问题
        • error [email protected]: The engine "node" is incompatible with this module 错误
        • CMake 3.1 or higher is required. You are running version 2.8.12.2 错误
        • fuse is needed by hadoop_3_2_0-3.3.4-1.el7.x86_64 错误
        • Cyrus SASL/GSASL 缺失解决
        • Protobuf PROTOC LIBRARY NOTFOUND
        • EVP CIPHER CTX block size 报错
        • TIRPC_INCLUDE_DIRS NOTFOUND解决
        • 缺失 redhat-rpm-config 报错
      • Spark
        • evaluate,httr2,knitr 包不存在解决办法
        • Pandoc 缺失导致 SparkR 构建失败
      • Trino
        • Trino requires Temurin or Oracle JDK for development
        • GLIBC 与 GLIBCXX 版本过低
      • Hudi
        • javax.annotation.Nullable 缺失
        • 缺失 everit-json-schema 依赖
      • Paimon
        • 缺失 Jindo 依赖
      • Livy
        • apache-incubator-disclaimer-resource-bundle 缺失
      • Flink
        • .git can't be found during `prepare`
        • Angular CLI requires Node >=14.15
        • npm run ci-check 报错退出码 3
        • TypeScript 类型声明错误
      • Atlas
        • Atlas 集成 JanusGraph 启动时报 Solr6Index 实例化失败解决
      • Superset
        • urllib3 v2 only supports OpenSSL 1.1.1+
      • Jsvc
        • jsvc 依赖缺失导致 rpm 构建失败
      • Zookeeper
        • ZooKeeper 构建(缺少 hostname 命令)
        • cppunit-devel 依赖缺失解决方案
      • Hive
        • org.apache.logging.slf4j.Log4j.Marker is not public 解决方案
      • Sqoop
        • xmlto is needed by 解决方法
        • lsb_release、rsync 缺失导致构建中断
        • asciidoc 警告与 relnotes.py 语法不兼容分析
      • Cloudbeaver
        • SelectExpressionItem cannot be resolved 报错分析
      • Bigtop-select
        • bigtop-select 打包缺 compat 报错修复
        • bigtop-select 打包缺 control 文件报错修复
      • Knox
        • xmlsectool 依赖缺失问题解析
        • webhdfs-test 依赖收敛冲突问题处理
        • Invalid keystore format 问题处理
        • Knox is not allowed to impersonate admin
        • X-Forwarded-For 406 错误的原因与处理
      • Hue
        • Hue 访问 Hadoop 权限问题
        • Hue 访问 Yarn 权限问题
        • Hue 访问 Impala 时间格式问题
        • requests-kerberos 兼容性问题
        • libmariadb.so.3 缺失导致 syncdb 失败
        • 生产环境下解决方案——Hue/query_api.py
  • 系统适配

    • Kylin V10系列
      • 通用部分
        • not set for current OS
          • 解读-不支持操作系统解读
          • 解决-增加系统支持范围(一)
          • 解决-增加系统支持范围(二)
          • 解决-增加系统支持范围(三)
          • 解决-增加系统支持范围(四)
        • 解决-TLS1.3导致依赖下载失败终极办法
    • Rocky系列
      • 案例-Ambari重启失败
        • 解读-Ambari3.0.0重启失败问题
        • 解决-追加日志锚点
        • 解决-进一步分析与改造[一]
        • 解决-进一步分析与改造[二]
      • 案例-数据库连接问题
        • 解读-安装完毕后出现Unable to load version data from server
      • 案例-日志级别控制问题
        • 解读-Ambari3.0.0无法调整日志输出级别
        • 解决-临时处理日志级别不生效
        • 解决-源码级处理日志不生效
      • 案例-找不到snappy-devel
        • 解决-HDFS报snappy-devel包缺失现象
      • 案例-编译高级功能
        • 解读-开启Hadoop下ISAL-L和PMDK功能
        • 解决-ISAL-L和PMDK功能完整环境包
    • Ubuntu系列
      • 案例-首次编译环境处理
        • 解决-dpkg-buildpackage依赖缺失
        • 解决-devscripts依赖缺失
        • 首次编译-环境初始化
      • 案例-Bigtop适配Debian
        • 解读-bigtop-select支持deb
        • 解决-Step1-解除限制拥抱deb
        • 解决-Step2-补全代码结构
      • 案例-安装中遇到的问题
        • 解读-APT私有镜像验证失败剖析
        • 解决-快速处理APT私有镜像验证失败问题
      • 案例-编译高级功能
        • 解读-开启Hadoop下ISAL-L和PMDK功能
        • 解决-ISAL-L和PMDK功能完整环境包
    • Centos系列
    • OpenEuler系列
  • 监控与调优

    • Ambari-Metrics插件
    • Infinity插件
      • 准备工作
        • Ambari-Metrics插件失效原因
        • Infinity 插件选择与安装小技巧
        • Grafana9.3.2+Infinity2.3.1
          • Grafana快速安装Infinity插件
        • Grafana11.5.2+Infinity3.4.1
          • Grafana快速安装Infinity插件
      • 创建最简DEMO
        • Grafana9.3.2+Infinity2.3.1
          • 快速创建一个简单demo
          • Panel JSON 配置示例
        • Grafana11.5.2+Infinity3.4.1
          • 快速创建一个简单demo
          • Panel JSON 配置示例
    • 组件配置调优
      • HDFS
        • [0001]访问 HDFS Web UI Logs Unauthorized 失败
        • [0001]>>>>>>Hadoop管理员配置优化
      • RANGER
        • [0002]Ranger 审计日志时间与系统时间不一致调整
        • [0002]>>>>>日期统一规则调优
        • [0001]Resource lookup fail 线程池超时优化
        • [0001]>>>>>>线程池与超时参数调优
    • 组件调优指南
    • 1v1指导调优
  • BUG临时处理

    • 版本-v2.2.2-以前
      • [22213]Ambari 3.0.0 滚动重启只执行一台主机修复
      • [22213]解决办法
      • [22212]Ambari 3.0.0 左侧服务菜单滚动条缺失修复
      • [22212]解决办法
      • [22211]Atlas 缺失 __AtlasUserProfile
      • [22211]解决办法
      • [22210]Atlas Hook 无权限访问 Kafka Topic
      • [22210]解决办法
      • [22209]Ranger Kafka Lookup 缺少 JAAS 配置
      • [22209]解决办法
      • [22208]Atlas Hook 消费 Kafka 报错
      • [22208]解决办法
      • [22207]Hue 内访问 SparkSql 失败
      • [22207]解决办法
      • [22206]Ranger 调用 Knox Topologies 失败
      • [22206]解决办法
      • [22205]Ranger Admin 轮刷ZK 缺失 JAAS
      • [22205]解决办法
      • [22204]KNOX policymgr-ssl 启动告警
      • [22204]解决办法
      • [22203]Hue 服务启动后秒退
      • [22203]解决办法
      • [22202]Hue 启动失败: hadoop 用户不存在
      • [22202]解决办法
      • [22201]Hive 使用 Tez 引擎插入数据失败
      • [22201]解决办法
    • 版本-v2.1.0-以前
      • Sqlline 启动卡死问题处理
  • 实验室

    • VIEW插件
      • CAPACITY-SCHEDULER-VIEW
        • Ambari CAPACITY-SCHEDULER 插件安装详解
      • FILE-VIEW
        • Ambari FILE-VIEW 插件安装详解
    • JIRA速查
    • 虚拟环境思路
GitHub (opens new window)

JaneTTR

数据酿造智慧,每一滴都是沉淀!
首页
  • 产品中心

    • 当前版本
    • 版本矩阵与下载
  • 安装与使用

    • Ambari Plus 安装
      • 安装前准备
        • 实施总览
        • Step0—源码包下载与目录准备
        • Step1—系统源与基础工具准备
        • Step2—集群免密登录
        • Step3—主机名解析同步
        • Step4—Chrony 时间同步
        • Step5—Nginx 本地 Yum 文件服务
        • Step6—JDK 双环境准备
        • Step7—MySQL 驱动与本地仓库
        • Step8—MariaDB 初始化
        • Step9—AmbariServer 初始化
        • 必须 ambari plus 数据库初始化文件
      • 安装部署
        • 初始化集群
    • 组件安装
      • 组件安装总览
      • Solr 安装
      • Ranger 安装
      • Knox 安装
      • HDFS 安装
      • YARN 安装
      • MapReduce2 安装
      • Tez 安装
      • Hive 安装
      • Sqoop 安装
      • HBase 安装
      • Kafka 安装
      • Flink 安装
      • Spark 安装
      • Hue 安装
      • Livy 安装
      • Zeppelin 安装
      • DolphinScheduler 安装
      • Doris 安装
      • Celeborn 安装
      • Ozone 安装
      • Impala 安装
      • Trino 安装
      • Paimon 安装
      • Hudi 安装
      • Atlas 安装
      • Superset 安装
      • Alluxio 安装
    • 开启高可用
      • 开启高可用总览
      • HDFS 开启 HA
      • YARN 开启 HA
    • 权限与审计
      • 权限与审计总览
      • Kerberos 认证启用
      • LDAP 目录接入
    • Ambari Plus Monitor
      • IoTDB 安装与部署
      • 必须 ambari plus monitor 数据库初始化文件
      • Monitor 安装
      • 监控与告警使用
    • 常见问题
      • 安装使用常见问题
  • 发布与支持

    • 更新日志
    • 服务说明
    • 优惠政策
    • 合作共建
    • 蓝图愿景
    • 历史版本
      • 更新日志 · v2.2.3
      • 更新日志 · v2.2.2
      • 更新日志 · v2.2.1
      • 更新日志 · v2.2.0
      • 更新日志 · v2.1.0
      • 更新日志 · v2.0.0
      • 更新日志 · v1.0.7
      • 更新日志 · v1.0.6
      • 更新日志 · v1.0.5
      • 更新日志 · v1.0.4
      • 更新日志 · v1.0.3
      • 更新日志 · v1.0.2
      • 更新日志 · v1.0.1
      • 更新日志 · v1.0.0
  • 会员与访问

    • 专属内容解锁
  • Ambari 安装

    • 常规安装
      • 适用于Ambari3.0.0-kylin V10-aarch64
        • Step0—源码包下载
        • Step1—基础环境准备
        • Step2—免密登录配置
        • Step3—安装JDK-Bisheng
        • Step5—Nginx安装
        • Step6—本地yum源配置
        • Step7—Mariadb初始化
        • Step8—AmbariServer初始化
        • Step9—Ambari Web UI 初始化安装
        • [快速安装]—脚本极速部署
      • 适用于Ambari3.0.0-kylin V10-x86_64
        • Step0—源码包下载
        • Step1—基础环境准备
        • Step2—免密登录配置
        • Step3—安装JDK17与JDK1.8
        • Step5—Nginx安装
        • Step6—本地yum源配置
        • Step7—Mariadb初始化
        • Step8—AmbariServer初始化
        • Step9—Ambari Web UI 初始化安装
        • [快速安装]—脚本极速部署
      • 适用于Ambari3.0.0-ubuntu22.04
        • Step0—源码包下载
        • Step1—基础环境准备
        • Step3—安装JDK17与JDK1.8
        • Step4—时间同步(Chrony)
        • Step5—Nginx安装
        • Step6—本地apt源
        • Step7—Mariadb初始化
        • Step8—AmbariServer初始化
        • Step9—Ambari Web UI 初始化安装
        • [快速安装]—脚本极速部署
      • 适用于Ambari3.0.0-el7
        • Step0—源码包下载
        • Step3—安装JDK17(Ambari 3.0专用)
        • Step8—AmbariServer初始化
        • Step9—Ambari Web UI 初始化安装
        • [快速安装]—脚本极速部署
      • 适用于Ambari3.0.0-el8
        • Step0—源码包下载
        • Step1—基础环境准备
        • Step3—安装JDK17与JDK1.8
        • Step7—Mariadb初始化
        • Step8—AmbariServer初始化
        • Step9—Ambari Web UI 初始化安装
        • [快速安装]—脚本极速部署
      • 适用于Ambari2.8.0-el7
        • Step1—基础环境准备
        • Step2—免密登陆认证
        • Step3—安装JDK
        • Step4—时间同步(Chrony)
        • Step5—Nginx安装
        • Step6—本地yum源配置
        • Step7—Mariadb初始化
        • Step8—AmbariServer初始化
        • Step9—Ambari Web Ui 初始化安装
    • 一键部署
      • Ambari快速部署—3.0.0
        • 【Kylin V10 aarch64】强力卸载脚本
        • 【Kylin V10 aarch64】自动安装脚本
        • 【Kylin V10 x86_64】强力卸载脚本
        • 【Kylin V10 x86_64】自动安装脚本
        • 【Ubuntu22】强力卸载脚本
        • 【Ubuntu22】自动安装脚本
        • 【Rocky8.10】强力卸载脚本
        • 【Rocky8.10】自动安装脚本
        • 【Centos7.9】自动安装脚本
      • Ambari快速部署—2.8.0
        • 【Centos7.9】自动安装脚本
        • 【Centos7.9】强力卸载脚本
      • 数据库环境
        • PostgreSQL 快速安装脚本
      • JDK环境
        • 安装JDK1.8
        • 安装JDK 17
        • 安装JDK1.8-aarch64
        • 安装JDK 17-aarch64
      • MAVEN环境
        • 安装Maven3.8.4
        • 安装Maven3.9.9
      • GRADLE环境
        • 安装Gradle5.6.4
      • CONDA环境
        • 安装Miniconda2
        • 编译Ambari2.8.0——Miniconda3
      • R环境
        • 【Kylin V10 x86_64】安装R 4.4.2
        • 【Ubuntu22】安装R 4.4.2
        • 【Rocky8.10】安装R 4.4.2
        • 【CentOS7】安装R 4.4.2
  • 组件安装

    • 安装指导
    • 魔改分享
      • Phoenix-JDK17下编译的二进制包适用于Datagrip
        • Q: 高版本 DataGrip 无法使用 Phoenix 驱动
        • A: Phoenix - JDK17 制作&下载
    • 最小化安装(简单)
      • Zookeeper 安装
      • Hadoop 安装
      • Yarn安装
      • Hive 安装
      • Spark 安装
      • HBase 安装
      • Kafka 安装
      • Sqoop 安装
      • Flink 安装
      • DolphinScheduler 安装
      • Zeppelin 安装
      • Redis 安装
      • Doris安装
      • Celeborn安装
      • Ozone安装
      • Impala安装
      • Cloudbeaver 安装
      • Ambari Metrics安装
      • Solr安装
      • Ranger 安装
      • Trino安装
      • Paimon安装
      • Hudi安装
      • Atlas 安装
      • Superset 安装
      • Livy 安装
      • Alluxio 安装
      • Hue 安装
      • Knox 安装
    • 进阶安装技巧(需开启Kerberos)
      • Ambari Metrics 进阶安装技巧
      • Atlas 进阶安装技巧
    • 高可用安装(有难度)
      • Zookeeper
      • Hadoop-Namenode
      • Yarn-ResourceManager
      • Hive
      • Hbase
      • Kafka
      • DolphinScheduler
      • Redis
      • Doris
      • Celeborn
      • Ozone
      • Ranger
  • Kerberos 旧版专题

    • 实战 Kerberos
    • 自建 Kerberos
      • KDC服务初始化安装
        • KDC服务初始化安装(RHEL篇)
        • KDC服务初始化安装(Ubuntu篇)
      • 开启Kerberos认证
        • Ambari 中开启 Kerberos 认证流程详解
        • [不看会报错]-Atlas开启准备工作
        • [不看会报错]-Zeppelin开启准备工作
        • [不看会报错]-Impala开启准备工作
        • [不看会报错]-Trino开启准备工作
      • 关闭Kerberos认证
        • Ambari 中关闭 Kerberos 认证流程详解
    • FreeIPA 认证
      • FreeIPA服务端初始化
        • FreeIPA Server 安装指导
      • FreeIPA客户端初始化及Ambari开启IPA认证
        • [Step1]-FreeIPA Client 安装与入域实战
        • [Step2]-FreeIPA 初始化核心用户
        • [Step3]-Ambari 中开启 Kerberos 认证流程详解
        • [Step3-1]-krb5-conf template调整
      • 部分踩坑-问题发现
        • Ambari Server 启动失败:no valid keystore
        • FreeIPA Client 导致 Ambari 权限异常问题排查
      • 部分踩坑-完美解决
        • Ambari Server 启动失败:no valid keystore
      • 辅助测试
        • FreeIPA Client 调试安装速记
        • Ambari Server 证书调试安装速记
    • 其他优化技巧
      • Atlas-Ranger-StringUtils缺失
      • Atlas-Ranger-commons-compress缺失
    • 部分组件踩坑合集
      • Test Kerberos Client报错:Failed to kinit
      • KERBEROS SERVICE CHECK 报错
      • Ambari开启Kerberos认证加密类型错误
      • [开启Kerberos]-Solr启动失败处理
      • [开启Kerberos]-Kafka启动失败处理
      • [开启Kerberos]-Atlas启动-Hbase权限异常
      • [开启Kerberos]-Atlas启动-Solr权限异常
      • [开启Kerberos]-Atlas启动-Kafka权限异常
      • [开启Kerberos]-Hive服务检查异常处理
      • [开启Kerberos]-Trino启动-配置文件处理
      • [开启Kerberos]-Trino启动-缺失PEM证书处理
      • [开启Kerberos]-Trino启动-连接Hive失败
      • [关闭 Kerberos]-Kafka 注销异常
      • [关闭 Kerberos]-Hive 注销异常
      • Kerberos 客户端模板渲染异常处理(临时处理)
      • Kafka 启动兼容 Kerberos 源码级修改
      • Kerberos 客户端模板渲染异常处理(源码修改)
    • 实战技巧
      • Knox 接入 Trino web-ui 解决方案
      • [开启Kerberos]-Trino启动-配置模板
      • [Knox适配]-Trino-474-转发规则魔改
    • 其他技巧
      • Ambari Security 开启步骤
  • Ranger 旧版专题

    • 实战 Ranger
    • Ranger HA 旧发行版
      • 环境准备
        • [Step1] Haproxy 规划与环境安装
      • Kerberos准备
        • [Step2] 统一访问域名的 Kerberos 票据生成
        • [Step3] 调整 Kerberos Client 配置
      • 安装指导
        • [Step4] Ambari页面开启 Ranger Admin 高可用
        • [Step5] 对齐 Ranger HA 的凭证处理
    • Ranger HA ttr-release
      • [Step2] Ranger Admin HA 自动化安装
    • FreeIPA 与 LDAP
      • [Step1] Ambari 安装 Ranger 并配置 FreeIPA + LDAP
      • [Step2] 制作 Ranger Usersync 证书并应用组件
      • [Step3] 制作 Ranger Admin 证书并应用组件
      • [Step4]Ranger HDFS Repository 创建失败修复
      • [Step5]Ranger HBase Repository 创建失败修复
    • 踩坑汇总
      • 调用 Ranger API 返回 403 问题
      • Ranger Admin LDAP 认证报 Bad credentials 分析
    • 解决方案
      • Ranger Admin LDAP 认证报 Bad credentials 处理
      • Ranger HA 虚拟域名 Principal 缺失修复
      • Ranger Usersync 证书快速导入脚本(LDAPS)
      • Ranger Admin 证书快速导入脚本
      • Ranger HDFS Repository 快速处理
      • Ranger HBase / Yarn Repository 快速处理
  • 开发环境

    • Ambari-Env
      • 环境准备
      • 开始使用
    • 工具与镜像
      • Maven镜像加速
      • Gradle镜像加速
      • Node.js 多版本共存方案
      • Npm镜像加速
      • Bower镜像加速
      • R环境安装+一键安装脚本
      • PostgreSQL 快速安装
  • Ambari 编译

    • Ambari 源码编译
    • 前端开发
    • 后端开发
    • Ambari Web本地启动
  • Bigtop 编译

    • 官方组件编译
    • 扩展组件编译
    • 工具与镜像
      • Ivy配置私有镜像仓库
      • APT仓库增量更新
      • Temurin JDK 23快速安装
  • Ambari 深度专题

    • Ambari Server 原理
    • Ambari Metrics 解读
  • Bigtop 方法论

    • Bigtop 深度专题
  • 自定义集成

    • Redis集成教学
    • Dolphin集成教学
    • Doris集成教学
    • 各组件代码
    • 通用代码模板
  • 报错解决

    • Ambari 报错
      • Ambari Views
        • MDEP-187 从根因到修复
        • Loading node labels问题解决
      • Ambari
        • phantomjs下载失败问题
        • 编译问题:GCC 安装与配置
        • bower CERT_HAS_EXPIRED 错误问题
        • Ambari-admin包出现bower install错误
        • Cannot run program "rpmbuild"
        • Python: No such file or directory
        • Yarn解压报错EOFException排查与解决
        • Rpm-maven-plugin与shebang兼容性报错
        • Rpm-maven-plugin 最佳实践
        • Bower install拉取失败解决
        • 缺少 python3 报错解决
        • Python(>=2.6) but is not installed
        • SSL_ERROR_SYSCALL 的修复方法
      • Ambari-infra
        • org.apache.commons.io does not exist
        • maven-compiler-plugin:3.3:compile
        • java.security.InvalidAlgorithmParameterException
        • ambari-infra-solr-plugin依赖报错解决方案
      • Ambari-metrics
        • psutil 缺失与 archive_util 导入错误
        • Ambari-Metrics Monitor 启动失败
        • Ambari-Metrics Monitor 启动失败
        • Ambari-Metrics Monitor 启动失败
        • Ambari-Metrics Monitor 启动失败
    • Bigtop 报错
      • Hadoop
        • /usr/bin/env: python3: No such file or directory 问题
        • error [email protected]: The engine "node" is incompatible with this module 错误
        • CMake 3.1 or higher is required. You are running version 2.8.12.2 错误
        • fuse is needed by hadoop_3_2_0-3.3.4-1.el7.x86_64 错误
        • Cyrus SASL/GSASL 缺失解决
        • Protobuf PROTOC LIBRARY NOTFOUND
        • EVP CIPHER CTX block size 报错
        • TIRPC_INCLUDE_DIRS NOTFOUND解决
        • 缺失 redhat-rpm-config 报错
      • Spark
        • evaluate,httr2,knitr 包不存在解决办法
        • Pandoc 缺失导致 SparkR 构建失败
      • Trino
        • Trino requires Temurin or Oracle JDK for development
        • GLIBC 与 GLIBCXX 版本过低
      • Hudi
        • javax.annotation.Nullable 缺失
        • 缺失 everit-json-schema 依赖
      • Paimon
        • 缺失 Jindo 依赖
      • Livy
        • apache-incubator-disclaimer-resource-bundle 缺失
      • Flink
        • .git can't be found during `prepare`
        • Angular CLI requires Node >=14.15
        • npm run ci-check 报错退出码 3
        • TypeScript 类型声明错误
      • Atlas
        • Atlas 集成 JanusGraph 启动时报 Solr6Index 实例化失败解决
      • Superset
        • urllib3 v2 only supports OpenSSL 1.1.1+
      • Jsvc
        • jsvc 依赖缺失导致 rpm 构建失败
      • Zookeeper
        • ZooKeeper 构建(缺少 hostname 命令)
        • cppunit-devel 依赖缺失解决方案
      • Hive
        • org.apache.logging.slf4j.Log4j.Marker is not public 解决方案
      • Sqoop
        • xmlto is needed by 解决方法
        • lsb_release、rsync 缺失导致构建中断
        • asciidoc 警告与 relnotes.py 语法不兼容分析
      • Cloudbeaver
        • SelectExpressionItem cannot be resolved 报错分析
      • Bigtop-select
        • bigtop-select 打包缺 compat 报错修复
        • bigtop-select 打包缺 control 文件报错修复
      • Knox
        • xmlsectool 依赖缺失问题解析
        • webhdfs-test 依赖收敛冲突问题处理
        • Invalid keystore format 问题处理
        • Knox is not allowed to impersonate admin
        • X-Forwarded-For 406 错误的原因与处理
      • Hue
        • Hue 访问 Hadoop 权限问题
        • Hue 访问 Yarn 权限问题
        • Hue 访问 Impala 时间格式问题
        • requests-kerberos 兼容性问题
        • libmariadb.so.3 缺失导致 syncdb 失败
        • 生产环境下解决方案——Hue/query_api.py
  • 系统适配

    • Kylin V10系列
      • 通用部分
        • not set for current OS
          • 解读-不支持操作系统解读
          • 解决-增加系统支持范围(一)
          • 解决-增加系统支持范围(二)
          • 解决-增加系统支持范围(三)
          • 解决-增加系统支持范围(四)
        • 解决-TLS1.3导致依赖下载失败终极办法
    • Rocky系列
      • 案例-Ambari重启失败
        • 解读-Ambari3.0.0重启失败问题
        • 解决-追加日志锚点
        • 解决-进一步分析与改造[一]
        • 解决-进一步分析与改造[二]
      • 案例-数据库连接问题
        • 解读-安装完毕后出现Unable to load version data from server
      • 案例-日志级别控制问题
        • 解读-Ambari3.0.0无法调整日志输出级别
        • 解决-临时处理日志级别不生效
        • 解决-源码级处理日志不生效
      • 案例-找不到snappy-devel
        • 解决-HDFS报snappy-devel包缺失现象
      • 案例-编译高级功能
        • 解读-开启Hadoop下ISAL-L和PMDK功能
        • 解决-ISAL-L和PMDK功能完整环境包
    • Ubuntu系列
      • 案例-首次编译环境处理
        • 解决-dpkg-buildpackage依赖缺失
        • 解决-devscripts依赖缺失
        • 首次编译-环境初始化
      • 案例-Bigtop适配Debian
        • 解读-bigtop-select支持deb
        • 解决-Step1-解除限制拥抱deb
        • 解决-Step2-补全代码结构
      • 案例-安装中遇到的问题
        • 解读-APT私有镜像验证失败剖析
        • 解决-快速处理APT私有镜像验证失败问题
      • 案例-编译高级功能
        • 解读-开启Hadoop下ISAL-L和PMDK功能
        • 解决-ISAL-L和PMDK功能完整环境包
    • Centos系列
    • OpenEuler系列
  • 监控与调优

    • Ambari-Metrics插件
    • Infinity插件
      • 准备工作
        • Ambari-Metrics插件失效原因
        • Infinity 插件选择与安装小技巧
        • Grafana9.3.2+Infinity2.3.1
          • Grafana快速安装Infinity插件
        • Grafana11.5.2+Infinity3.4.1
          • Grafana快速安装Infinity插件
      • 创建最简DEMO
        • Grafana9.3.2+Infinity2.3.1
          • 快速创建一个简单demo
          • Panel JSON 配置示例
        • Grafana11.5.2+Infinity3.4.1
          • 快速创建一个简单demo
          • Panel JSON 配置示例
    • 组件配置调优
      • HDFS
        • [0001]访问 HDFS Web UI Logs Unauthorized 失败
        • [0001]>>>>>>Hadoop管理员配置优化
      • RANGER
        • [0002]Ranger 审计日志时间与系统时间不一致调整
        • [0002]>>>>>日期统一规则调优
        • [0001]Resource lookup fail 线程池超时优化
        • [0001]>>>>>>线程池与超时参数调优
    • 组件调优指南
    • 1v1指导调优
  • BUG临时处理

    • 版本-v2.2.2-以前
      • [22213]Ambari 3.0.0 滚动重启只执行一台主机修复
      • [22213]解决办法
      • [22212]Ambari 3.0.0 左侧服务菜单滚动条缺失修复
      • [22212]解决办法
      • [22211]Atlas 缺失 __AtlasUserProfile
      • [22211]解决办法
      • [22210]Atlas Hook 无权限访问 Kafka Topic
      • [22210]解决办法
      • [22209]Ranger Kafka Lookup 缺少 JAAS 配置
      • [22209]解决办法
      • [22208]Atlas Hook 消费 Kafka 报错
      • [22208]解决办法
      • [22207]Hue 内访问 SparkSql 失败
      • [22207]解决办法
      • [22206]Ranger 调用 Knox Topologies 失败
      • [22206]解决办法
      • [22205]Ranger Admin 轮刷ZK 缺失 JAAS
      • [22205]解决办法
      • [22204]KNOX policymgr-ssl 启动告警
      • [22204]解决办法
      • [22203]Hue 服务启动后秒退
      • [22203]解决办法
      • [22202]Hue 启动失败: hadoop 用户不存在
      • [22202]解决办法
      • [22201]Hive 使用 Tez 引擎插入数据失败
      • [22201]解决办法
    • 版本-v2.1.0-以前
      • Sqlline 启动卡死问题处理
  • 实验室

    • VIEW插件
      • CAPACITY-SCHEDULER-VIEW
        • Ambari CAPACITY-SCHEDULER 插件安装详解
      • FILE-VIEW
        • Ambari FILE-VIEW 插件安装详解
    • JIRA速查
    • 虚拟环境思路
GitHub (opens new window)
  • 报错解决

  • 系统适配

  • 监控与调优

  • BUG临时处理
    • 版本-v2.2.2-以前

      • [22213]Ambari 3.0.0 滚动重启只执行一台主机修复
      • [22213]解决办法
      • [22212]Ambari 3.0.0 左侧服务菜单滚动条缺失修复
      • [22212]解决办法
      • [22211]Atlas 缺失 __AtlasUserProfile
      • [22211]解决办法
      • [22210]Atlas Hook 无权限访问 Kafka Topic
      • [22210]解决办法
      • [22209]Ranger Kafka Lookup 缺少 JAAS 配置
      • [22209]解决办法
      • [22208]Atlas Hook 消费 Kafka 报错
      • [22208]解决办法
      • [22207]Hue 内访问 SparkSql 失败
      • [22207]解决办法
      • [22206]Ranger 调用 Knox Topologies 失败
      • [22206]解决办法
      • [22205]Ranger Admin 轮刷ZK 缺失 JAAS
      • [22205]解决办法
      • [22204]KNOX policymgr-ssl 启动告警
      • [22204]解决办法
      • [22203]Hue 服务启动后秒退
      • [22203]解决办法
      • [22202]Hue 启动失败: hadoop 用户不存在
      • [22202]解决办法
      • [22201]Hive 使用 Tez 引擎插入数据失败
      • [22201]解决办法
        • 一、报错分析
          • 1、Hive 侧现象:TezTask 执行失败
          • 2、YARN 侧关键信号:ExitCode=127 + prelaunch.err
          • 3、Tez 失败形态:Map Vertex 反复重试后失败
          • 4、根因收敛:hive.tez.java.opts 被“格式化换行”了
          • 5、为什么换行会致命:Shell 解析语义被改变
        • 二、如何解决
          • 1、修复原则:所有 *.java.opts 必须单行
          • 2、替换为单行参数
          • 3、下发配置并重启(确保 NodeManager 拿到新参数)
        • 三、处理结果
          • 1、回到 Hue 再次执行 INSERT
          • 2、完整的报错日志
    • 版本-v2.1.0-以前

  • 实验室

  • 运维资料
  • BUG临时处理
  • 版本-v2.2.2-以前
JaneTTR
2026-01-15
目录

[22201]解决办法

# 一、报错分析

# 1、Hive 侧现象:TezTask 执行失败

在 Hue 中执行 INSERT 后,Hive 直接返回 TezTask 失败:

Error while processing statement: FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.tez.TezTask.
Vertex failed, vertexName=Map 1
...
DAG did not succeed due to VERTEX_FAILURE. failedVertices:1 killedVertices:1
1
2
3
4

image-20260115213819894

从 Hive 的报错文案来看,容易把注意力放在:

  • Tez Vertex 失败
  • Map 阶段异常
  • Reducer 被 Kill(联动失败)

但这类报错通常只是“上层结果”,真正原因需要下钻到 YARN Container 的启动诊断。

# 2、YARN 侧关键信号:ExitCode=127 + prelaunch.err

日志中出现非常关键的组合信号:

  • Container exited with a non-zero exit code 127
  • prelaunch.err 中出现 command not found
  • Java Usage 输出被反复打印

典型片段如下:

Container failed, exitCode=127.
...
Last 4096 bytes of stderr :
/bin/bash: line 1: -XX:+PrintGCDetails: command not found
1
2
3
4

经验判断

ExitCode=127 在 Linux 语义里通常指向:命令不存在 / 命令无法执行。 放在 YARN Container 场景中,优先怀疑:启动脚本拼接后的命令行被 Shell 误解析。

# 3、Tez 失败形态:Map Vertex 反复重试后失败

这类问题在 Tez 运行界面里呈现出“高度一致的确定性失败”:

  • TaskAttempt 反复重试
  • 每次都在 Container 启动阶段失败
  • 最终 Map Vertex 标记失败,Reducer 触发联动 Kill

这里的关键点在于: 不是跑着跑着挂了,而是 JVM 压根没成功起来。

# 4、根因收敛:hive.tez.java.opts 被“格式化换行”了

继续把视线拉回 Hive/Tez 的 JVM 参数配置。

在配置界面中可以看到 hive.tez.java.opts 被拆成了多行(换行来自格式化或编辑器自动折行):

image-20260115210441202

进一步看完整表现,-XX:+PrintGCDetails 落到了新的一行:

057610cbbd164c385897ebae78bc1b46

# 5、为什么换行会致命:Shell 解析语义被改变

YARN NodeManager 启动 Container 时,本质上会生成类似形式的脚本执行:

/bin/bash -c "java ${JAVA_OPTS} ..."
1

当 ${JAVA_OPTS} 内部带换行时,Shell 会把换行当成“命令分隔”,等价于:

java -server ... -XX:+ResizeTLAB
-XX:+PrintGCDetails
1
2

于是第二行不再是 JVM 参数,而被当成独立命令执行,直接触发:

/bin/bash: line 1: -XX:+PrintGCDetails: command not found
1

这就解释了为什么会出现:

  • Java Usage 输出(因为 Java 命令被破坏)
  • ExitCode=127(因为执行了不存在的命令)
  • TaskAttempt 反复失败(每次启动命令都一样)

结论

这类报错不是 Tez 本身的问题,而是 Container 启动命令行被拆断 导致的确定性失败。

# 二、如何解决

# 1、修复原则:所有 *.java.opts 必须单行

对 Hive / Tez / Spark / MR 来说,*.java.opts 这类参数必须遵循同一条规则:

必须遵守

JVM 参数必须是一整行,不允许换行。

# 2、替换为单行参数

将原配置内容替换为如下单行:

-server -Djava.net.preferIPv4Stack=true -XX:NewRatio=8 -XX:+UseNUMA -XX:+UseG1GC -XX:+ResizeTLAB -XX:+PrintGCDetails -verbose:gc -XX:+PrintGCTimeStamps
1

这样做的目的就是:消除换行符,避免 Shell 将参数拆成多条命令。

# 3、下发配置并重启(确保 NodeManager 拿到新参数)

修改完成后,需要确保配置已真正生效到执行侧:

  • Ambari 保存配置
  • 重启 Hive / Tez 相关组件(至少保证新的 opts 已下发)
  • 必要时重启 NodeManager(用于快速确保运行环境完全刷新)

image-20260115213948522

为什么“重启”能解决?

Tez 的 Container 启动参数来自运行时下发的配置与环境变量拼接。 如果只改配置不重启,运行中的进程可能仍使用旧参数,导致复现“修了但没好”的错觉。

# 三、处理结果

# 1、回到 Hue 再次执行 INSERT

配置生效后,再回到 Hue 中执行同一条插入语句。

现象变化非常明确:

  • 不再出现 Tez Vertex 启动失败
  • TaskAttempt 不再因 ExitCode=127 重试
  • SQL 可以正常执行完成

image-20260115211752250

# 2、完整的报错日志


Error while processing statement: FAILED: Execution Error, return code 2 from
org.apache.hadoop.hive.ql.exec.tez.TezTask. Vertex failed, vertexName=Map 1, vertexId=vertex_1768471010735_0012_1_00,
diagnostics=[Task failed, taskId=task_1768471010735_0012_1_00_000000, diagnostics=[TaskAttempt 0 failed, info=[Container
container_1768471010735_0012_01_000002 finished with diagnostics set to [Container failed,
exitCode=127. [2026-01-15 21:22:10.581]Exception from container-launch. Container id:
container_1768471010735_0012_01_000002 Exit code: 127 Exception message: Launch container failed Shell error output:
Nonzero exit code=127, error message='Unknown error code' Shell output: main : command provided 1 main : run as user is
admin main : requested yarn user is admin Getting exit code file... Creating script paths... Writing pid file... Writing
to tmp file
/hadoop/yarn/local/nmPrivate/application_1768471010735_0012/container_1768471010735_0012_01_000002/container_1768471010735_0012_01_000002.pid.tmp
Writing to cgroup task files... Creating local dirs... Launching container... [2026-01-15 21:22:10.584]Container exited
with a non-zero exit code 127. Error file: prelaunch.err. Last 4096 bytes of prelaunch.err : Usage: java [-options]
class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options
include: -d32 use a 32-bit data model if available -d64 use a 64-bit data model if available -server to select the "
server" VM The default VM is server, because you are running on a server-class machine. -cp <class search path of
directories and zip/jar files> -classpath <class search path of directories and zip/jar files> A : separated list of
directories, JAR archives, and ZIP archives to search for class files. -D<name>=<value> set a system property
-verbose:[class|gc|jni] enable verbose output -version print product version and exit -version:<value> Warning: this
feature is deprecated and will be removed in a future release. require the specified version to run -showversion print
product version and continue -jre-restrict-search | -no-jre-restrict-search Warning: this feature is deprecated and will
be removed in a future release. include/exclude user private JREs in the version search -? -help print this help message
-X print help on non-standard options -ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>] enable assertions with specified granularity
-da[:<packagename>...|:<classname>] -disableassertions[:<packagename>...|:<classname>] disable assertions with specified
granularity -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system
assertions -agentlib:<libname>[=<options>] load native agent library <libname>, e.g. -agentlib:hprof see also,
-agentlib:jdwp=help and -agentlib:hprof=help -agentpath:<pathname>[=<options>] load native agent library by full
pathname -javaagent:<jarpath>[=<options>] load Java programming language agent, see java.lang.instrument
-splash:<imagepath> show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details. Last 4096 bytes of stderr :
/bin/bash: line 1:undefined: -XX:+PrintGCDetails: command not found [2026-01-15 21:22:10.585]Container exited with a
non-zero exit code 127. Error file: prelaunch.err. Last 4096 bytes of prelaunch.err : Usage: java [-options]
class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options
include: -d32 use a 32-bit data model if available -d64 use a 64-bit data model if available -server to select the "
server" VM The default VM is server, because you are running on a server-class machine. -cp <class search path of
directories and zip/jar files> -classpath <class search path of directories and zip/jar files> A : separated list of
directories, JAR archives, and ZIP archives to search for class files. -D<name>=<value> set a system property
-verbose:[class|gc|jni] enable verbose output -version print product version and exit -version:<value> Warning: this
feature is deprecated and will be removed in a future release. require the specified version to run -showversion print
product version and continue -jre-restrict-search | -no-jre-restrict-search Warning: this feature is deprecated and will
be removed in a future release. include/exclude user private JREs in the version search -? -help print this help message
-X print help on non-standard options -ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>] enable assertions with specified granularity
-da[:<packagename>...|:<classname>] -disableassertions[:<packagename>...|:<classname>] disable assertions with specified
granularity -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system
assertions -agentlib:<libname>[=<options>] load native agent library <libname>, e.g. -agentlib:hprof see also,
-agentlib:jdwp=help and -agentlib:hprof=help -agentpath:<pathname>[=<options>] load native agent library by full
pathname -javaagent:<jarpath>[=<options>] load Java programming language agent, see java.lang.instrument
-splash:<imagepath> show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details. Last 4096 bytes of stderr :
/bin/bash: line 1: -XX:+PrintGCDetails: command not found ]], TaskAttempt 1 failed, info=[Container
container_1768471010735_0012_01_000003 finished with diagnostics set to [Container failed,
exitCode=127. [2026-01-15 21:22:14.372]Exception from container-launch. Container id:
container_1768471010735_0012_01_000003 Exit code: 127 Exception message: Launch container failed Shell error output:
Nonzero exit code=127, error message='Unknown error code' Shell output: main : command provided 1 main : run as user is
admin main : requested yarn user is admin Getting exit code file... Creating script paths... Writing pid file... Writing
to tmp file
/hadoop/yarn/local/nmPrivate/application_1768471010735_0012/container_1768471010735_0012_01_000003/container_1768471010735_0012_01_000003.pid.tmp
Writing to cgroup task files... Creating local dirs... Launching container... [2026-01-15 21:22:14.375]Container exited
with a non-zero exit code 127. Error file: prelaunch.err. Last 4096 bytes of prelaunch.err : Usage: java [-options]
class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options
include: -d32 use a 32-bit data model if available -d64 use a 64-bit data model if available -server to select the "
server" VM The default VM is server, because you are running on a server-class machine. -cp <class search path of
directories and zip/jar files> -classpath <class search path of directories and zip/jar files> A : separated list of
directories, JAR archives, and ZIP archives to search for class files. -D<name>=<value> set a system property
-verbose:[class|gc|jni] enable verbose output -version print product version and exit -version:<value> Warning: this
feature is deprecated and will be removed in a future release. require the specified version to run -showversion print
product version and continue -jre-restrict-search | -no-jre-restrict-search Warning: this feature is deprecated and will
be removed in a future release. include/exclude user private JREs in the version search -? -help print this help message
-X print help on non-standard options -ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>] enable assertions with specified granularity
-da[:<packagename>...|:<classname>] -disableassertions[:<packagename>...|:<classname>] disable assertions with specified
granularity -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system
assertions -agentlib:<libname>[=<options>] load native agent library <libname>, e.g. -agentlib:hprof see also,
-agentlib:jdwp=help and -agentlib:hprof=help -agentpath:<pathname>[=<options>] load native agent library by full
pathname -javaagent:<jarpath>[=<options>] load Java programming language agent, see java.lang.instrument
-splash:<imagepath> show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details. Last 4096 bytes of stderr :
/bin/bash: line 1: -XX:+PrintGCDetails: command not found [2026-01-15 21:22:14.375]Container exited with a non-zero exit
code 127. Error file: prelaunch.err. Last 4096 bytes of prelaunch.err : Usage: java [-options] class [args...] (to
execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: -d32 use a
32-bit data model if available -d64 use a 64-bit data model if available -server to select the "server" VM The default
VM is server, because you are running on a server-class machine. -cp <class search path of directories and zip/jar
files> -classpath <class search path of directories and zip/jar files> A : separated list of directories, JAR archives,
and ZIP archives to search for class files. -D<name>=<value> set a system property -verbose:[class|gc|jni] enable
verbose output -version print product version and exit -version:<value> Warning: this feature is deprecated and will be
removed in a future release. require the specified version to run -showversion print product version and continue
-jre-restrict-search | -no-jre-restrict-search Warning: this feature is deprecated and will be removed in a future
release. include/exclude user private JREs in the version search -? -help print this help message -X print help on
non-standard options -ea[:<packagename>...|:<classname>] -enableassertions[:<packagename>...|:<classname>] enable
assertions with specified granularity -da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>] disable assertions with specified granularity -esa |
-enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system assertions
-agentlib:<libname>[=<options>] load native agent library <libname>, e.g. -agentlib:hprof see also, -agentlib:jdwp=help
and -agentlib:hprof=help -agentpath:<pathname>[=<options>] load native agent library by full pathname
-javaagent:<jarpath>[=<options>] load Java programming language agent, see java.lang.instrument -splash:<imagepath> show
splash screen with specified image See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more
details. Last 4096 bytes of stderr : /bin/bash: line 1: -XX:+PrintGCDetails: command not found ]], TaskAttempt 2 failed,
info=[Container container_1768471010735_0012_01_000004 finished with diagnostics set to [Container failed,
exitCode=127. [2026-01-15 21:22:15.376]Exception from container-launch. Container id:
container_1768471010735_0012_01_000004 Exit code: 127 Exception message: Launch container failed Shell error output:
Nonzero exit code=127, error message='Unknown error code' Shell output: main : command provided 1 main : run as user is
admin main : requested yarn user is admin Getting exit code file... Creating script paths... Writing pid file... Writing
to tmp file
/hadoop/yarn/local/nmPrivate/application_1768471010735_0012/container_1768471010735_0012_01_000004/container_1768471010735_0012_01_000004.pid.tmp
Writing to cgroup task files... Creating local dirs... Launching container... [2026-01-15 21:22:15.378]Container exited
with a non-zero exit code 127. Error file: prelaunch.err. Last 4096 bytes of prelaunch.err : Usage: java [-options]
class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options
include: -d32 use a 32-bit data model if available -d64 use a 64-bit data model if available -server to select the "
server" VM The default VM is server, because you are running on a server-class machine. -cp <class search path of
directories and zip/jar files> -classpath <class search path of directories and zip/jar files> A : separated list of
directories, JAR archives, and ZIP archives to search for class files. -D<name>=<value> set a system property
-verbose:[class|gc|jni] enable verbose output -version print product version and exit -version:<value> Warning: this
feature is deprecated and will be removed in a future release. require the specified version to run -showversion print
product version and continue -jre-restrict-search | -no-jre-restrict-search Warning: this feature is deprecated and will
be removed in a future release. include/exclude user private JREs in the version search -? -help print this help message
-X print help on non-standard options -ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>] enable assertions with specified granularity
-da[:<packagename>...|:<classname>] -disableassertions[:<packagename>...|:<classname>] disable assertions with specified
granularity -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system
assertions -agentlib:<libname>[=<options>] load native agent library <libname>, e.g. -agentlib:hprof see also,
-agentlib:jdwp=help and -agentlib:hprof=help -agentpath:<pathname>[=<options>] load native agent library by full
pathname -javaagent:<jarpath>[=<options>] load Java programming language agent, see java.lang.instrument
-splash:<imagepath> show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details. Last 4096 bytes of stderr :
/bin/bash: line 1: -XX:+PrintGCDetails: command not found [2026-01-15 21:22:15.379]Container exited with a non-zero exit
code 127. Error file: prelaunch.err. Last 4096 bytes of prelaunch.err : Usage: java [-options] class [args...] (to
execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: -d32 use a
32-bit data model if available -d64 use a 64-bit data model if available -server to select the "server" VM The default
VM is server, because you are running on a server-class machine. -cp <class search path of directories and zip/jar
files> -classpath <class search path of directories and zip/jar files> A : separated list of directories, JAR archives,
and ZIP archives to search for class files. -D<name>=<value> set a system property -verbose:[class|gc|jni] enable
verbose output -version print product version and exit -version:<value> Warning: this feature is deprecated and will be
removed in a future release. require the specified version to run -showversion print product version and continue
-jre-restrict-search | -no-jre-restrict-search Warning: this feature is deprecated and will be removed in a future
release. include/exclude user private JREs in the version search -? -help print this help message -X print help on
non-standard options -ea[:<packagename>...|:<classname>] -enableassertions[:<packagename>...|:<classname>] enable
assertions with specified granularity -da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>] disable assertions with specified granularity -esa |
-enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system assertions
-agentlib:<libname>[=<options>] load native agent library <libname>, e.g. -agentlib:hprof see also, -agentlib:jdwp=help
and -agentlib:hprof=help -agentpath:<pathname>[=<options>] load native agent library by full pathname
-javaagent:<jarpath>[=<options>] load Java programming language agent, see java.lang.instrument -splash:<imagepath> show
splash screen with specified image See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more
details. Last 4096 bytes of stderr : /bin/bash: line 1: -XX:+PrintGCDetails: command not found ]], TaskAttempt 3 failed,
info=[Container container_1768471010735_0012_01_000005 finished with diagnostics set to [Container failed,
exitCode=127. [2026-01-15 21:22:16.835]Exception from container-launch. Container id:
container_1768471010735_0012_01_000005 Exit code: 127 Exception message: Launch container failed Shell error output:
Nonzero exit code=127, error message='Unknown error code' Shell output: main : command provided 1 main : run as user is
admin main : requested yarn user is admin Getting exit code file... Creating script paths... Writing pid file... Writing
to tmp file
/hadoop/yarn/local/nmPrivate/application_1768471010735_0012/container_1768471010735_0012_01_000005/container_1768471010735_0012_01_000005.pid.tmp
Writing to cgroup task files... Creating local dirs... Launching container... [2026-01-15 21:22:16.837]Container exited
with a non-zero exit code 127. Error file: prelaunch.err. Last 4096 bytes of prelaunch.err : Usage: java [-options]
class [args...] (to execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options
include: -d32 use a 32-bit data model if available -d64 use a 64-bit data model if available -server to select the "
server" VM The default VM is server, because you are running on a server-class machine. -cp <class search path of
directories and zip/jar files> -classpath <class search path of directories and zip/jar files> A : separated list of
directories, JAR archives, and ZIP archives to search for class files. -D<name>=<value> set a system property
-verbose:[class|gc|jni] enable verbose output -version print product version and exit -version:<value> Warning: this
feature is deprecated and will be removed in a future release. require the specified version to run -showversion print
product version and continue -jre-restrict-search | -no-jre-restrict-search Warning: this feature is deprecated and will
be removed in a future release. include/exclude user private JREs in the version search -? -help print this help message
-X print help on non-standard options -ea[:<packagename>...|:<classname>]
-enableassertions[:<packagename>...|:<classname>] enable assertions with specified granularity
-da[:<packagename>...|:<classname>] -disableassertions[:<packagename>...|:<classname>] disable assertions with specified
granularity -esa | -enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system
assertions -agentlib:<libname>[=<options>] load native agent library <libname>, e.g. -agentlib:hprof see also,
-agentlib:jdwp=help and -agentlib:hprof=help -agentpath:<pathname>[=<options>] load native agent library by full
pathname -javaagent:<jarpath>[=<options>] load Java programming language agent, see java.lang.instrument
-splash:<imagepath> show splash screen with specified image
See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more details. Last 4096 bytes of stderr :
/bin/bash: line 1: -XX:+PrintGCDetails: command not found [2026-01-15 21:22:16.837]Container exited with a non-zero exit
code 127. Error file: prelaunch.err. Last 4096 bytes of prelaunch.err : Usage: java [-options] class [args...] (to
execute a class) or java [-options] -jar jarfile [args...] (to execute a jar file) where options include: -d32 use a
32-bit data model if available -d64 use a 64-bit data model if available -server to select the "server" VM The default
VM is server, because you are running on a server-class machine. -cp <class search path of directories and zip/jar
files> -classpath <class search path of directories and zip/jar files> A : separated list of directories, JAR archives,
and ZIP archives to search for class files. -D<name>=<value> set a system property -verbose:[class|gc|jni] enable
verbose output -version print product version and exit -version:<value> Warning: this feature is deprecated and will be
removed in a future release. require the specified version to run -showversion print product version and continue
-jre-restrict-search | -no-jre-restrict-search Warning: this feature is deprecated and will be removed in a future
release. include/exclude user private JREs in the version search -? -help print this help message -X print help on
non-standard options -ea[:<packagename>...|:<classname>] -enableassertions[:<packagename>...|:<classname>] enable
assertions with specified granularity -da[:<packagename>...|:<classname>]
-disableassertions[:<packagename>...|:<classname>] disable assertions with specified granularity -esa |
-enablesystemassertions enable system assertions -dsa | -disablesystemassertions disable system assertions
-agentlib:<libname>[=<options>] load native agent library <libname>, e.g. -agentlib:hprof see also, -agentlib:jdwp=help
and -agentlib:hprof=help -agentpath:<pathname>[=<options>] load native agent library by full pathname
-javaagent:<jarpath>[=<options>] load Java programming language agent, see java.lang.instrument -splash:<imagepath> show
splash screen with specified image See http://www.oracle.com/technetwork/java/javase/documentation/index.html for more
details. Last 4096 bytes of stderr : /bin/bash: line 1: -XX:+PrintGCDetails: command not found ]]], Vertex did not
succeed due to OWN_TASK_FAILURE, failedTasks:1 killedTasks:0, Vertex vertex_1768471010735_0012_1_00 [Map 1]
killed/failed due to:OWN_TASK_FAILURE]Vertex killed, vertexName=Reducer 2, vertexId=vertex_1768471010735_0012_1_01,
diagnostics=[Vertex received Kill while in RUNNING state., Vertex did not succeed due to OTHER_VERTEX_FAILURE,
failedTasks:0 killedTasks:1, Vertex vertex_1768471010735_0012_1_01 [Reducer 2] killed/failed due to:
OTHER_VERTEX_FAILURE]DAG did not succeed due to VERTEX_FAILURE. failedVertices:1 killedVertices:1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
#错误排查#Hive#Tez#YARN#Ambari
[22201]Hive 使用 Tez 引擎插入数据失败
Sqlline 启动卡死问题处理

← [22201]Hive 使用 Tez 引擎插入数据失败 Sqlline 启动卡死问题处理→

最近更新
01
当前版本 2026/06
06-05
02
Step7—Mariadb初始化
03-23
03
【Kylin V10 aarch64】强力卸载脚本 aarch64
03-22
更多文章>
Theme by Vdoing | Copyright © 2017-2026 JaneTTR | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式