Hive 查看和修改 tez 容器的资源
创始人
2024-04-14 11:59:22
0

1. 查看当前的配置

1.1 进入 AppMaster 或 History

进入运行中,或者运行完作业对应的 “Tracking URL”。以下示例是已经运行完的 job。
点击 Configurations

1.2 进入 tez-ui

进入 tez-ui 之后,点击 Configurations
在这里插入图片描述

1.3 查看配置

输入要查询的配置项,点击"Regex Search"。如果查询的值和默认值不一样,说明管理员修改了 tez-site.xml。

在这里插入图片描述

2. Tez 配置项

查看 tez-site.xml 可以看设置的配置项。查看 tez-default-template.xml 可以看到所有的配置项及默认值。

2.1 AppMaster 的 vcores 和 memory 配置项

  tez.am.resource.cpu.vcores1Int value. The number of virtual cores to be used by the app masterintegertez.am.resource.memory.mb1024Int value. The amount of memory in MB to be used by the AppMasterinteger

2.2 Task 的 vcores 和 memory 配置项

  tez.task.resource.cpu.vcores1Int value. The number of virtual cores to be used by tasks.integertez.task.resource.memory.mb1024Int value. The amount of memory in MB to be used by tasks. This applies to all tasks acrossall vertices. Setting it to the same value for all tasks is helpful for container reuse andthus good for performance typically.integer

3. 动态更改配置项

由于 tez 引擎在连接 driver 的时候,就启动 AppMaster 和一定数量的 container(默认为0),所以动态设置不生效。

3.1 beeline 连接 Hive Server 的方式

beeline 设置 am 的内存的方法如下,其他参数类似。

beeline --hiveconf tez.am.resource.memory.mb=1024

3.2 hive-cli

hive 命令行设置 am 的内存的方法如下,其他参数类似。

hive --hiveconf tez.am.resource.memory.mb=1024

相关内容

热门资讯

监控摄像头接入GB28181平... 流程简介将监控摄像头的视频在网站和APP中直播,要解决的几个问题是:1&...
Windows10添加群晖磁盘... 在使用群晖NAS时,我们需要通过本地映射的方式把NAS映射成本地的一块磁盘使用。 通过...
protocol buffer... 目录 目录 什么是protocol buffer 1.protobuf 1.1安装  1.2使用...
在Word、WPS中插入AxM... 引言 我最近需要写一些文章,在排版时发现AxMath插入的公式竟然会导致行间距异常&#...
【PdgCntEditor】解... 一、问题背景 大部分的图书对应的PDF,目录中的页码并非PDF中直接索引的页码...
Fluent中创建监测点 1 概述某些仿真问题,需要创建监测点,用于获取空间定点的数据࿰...
educoder数据结构与算法...                                                   ...
MySQL下载和安装(Wind... 前言:刚换了一台电脑,里面所有东西都需要重新配置,习惯了所...
MFC文件操作  MFC提供了一个文件操作的基类CFile,这个类提供了一个没有缓存的二进制格式的磁盘...
有效的括号 一、题目 给定一个只包括 '(',')','{','}'...