当前位置: 首页 > news >正文

写作网站原码上海产品网站建设

写作网站原码,上海产品网站建设,宽屏大气企业网站源码,设计制作合同模板Remote threads 是仅当 Hive metastore 作为单独的服务运行是启动,请求需要开启 compactor。 有以下几种: 1. AcidOpenTxnsCounterService 统计当前 open 的事务数 从表 TXNS 中统计状态为 open 的事务。此事务数量可以再 hive metrics 中。 2. Acid…

Remote threads 是仅当 Hive metastore 作为单独的服务运行是启动,请求需要开启 compactor。

有以下几种:

1. AcidOpenTxnsCounterService 统计当前 open 的事务数

从表 TXNS 中统计状态为 open 的事务。此事务数量可以再 hive metrics 中。

2. AcidHouseKeeperService

定期调用 txnHandler.performTimeOuts();
默认的 txn 的 timeout是 300s。删除300秒没有心跳的事务。

TXN_TIMEOUT("metastore.txn.timeout", "hive.txn.timeout", 300, TimeUnit.SECONDS,"time after which transactions are declared aborted if the client has not sent a heartbeat."),

DumpDirCleanerTask

dump dir 是

REPLDIR("hive.repl.rootdir","/user/hive/repl/","HDFS root dir for all replication dumps."),

此目录的 ttl 是

REPL_DUMPDIR_TTL("hive.repl.dumpdir.ttl", "7d",new TimeValidator(TimeUnit.DAYS),

AcidCompactionHistoryService

周期行调用 txnHandler.purgeCompactionHistory();
purgeCompactionHistory 的内容如下。对于可以合并的 entity(分区或者表(非分区表)),只保留最后几次的history。

/*** For any given compactable entity (partition, table if not partitioned) the history of compactions* may look like "sssfffaaasffss", for example.  The idea is to retain the tail (most recent) of the* history such that a configurable number of each type of state is present.  Any other entries* can be purged.  This scheme has advantage of always retaining the last failure/success even if* it's not recent.* @throws MetaException*/@RetrySemantics.SafeToRetryvoid purgeCompactionHistory() throws MetaException;

RuntimeStatsCleanerTask

如果此参数设置true,则query reexecution 的时候会收集统计信息。

HIVE_QUERY_REEXECUTION_ALWAYS_COLLECT_OPERATOR_STATS("hive.query.reexecution.always.collect.operator.stats", false,"If sessionstats are enabled; this option can be used to collect statistics all the time"),
RawStore ms = HMSHandler.getMSForConf(conf);
int maxRetainSecs=(int) MetastoreConf.getTimeVar(conf, MetastoreConf.ConfVars.RUNTIME_STATS_MAX_AGE, TimeUnit.SECONDS);int deleteCnt = ms.deleteRuntimeStats(maxRetainSecs);

maxRetainSecs 默认 3天。
删除表 RUNTIME_STATS 中 createTime <= 3天前的记录

RUNTIME_STATS_MAX_AGE("runtime.stats.max.age", "hive.metastore.runtime.stats.max.age", 86400 * 3, TimeUnit.SECONDS,"Stat entries which are older than this are removed.")

AcidWriteSetService

默认每60秒的周期调用一次 txnHandler.performWriteSetGC(); .

执行类似以下的语句。

select min(txn_id) commitHighWaterMark from TXNS where txn_state='OPEN';
delete from WRITE_SET where ws_commit_id < commitHighWaterMark;

EventCleanerTask

定期执行以下语句。

RawStore ms = HMSHandler.getMSForConf(conf);
long deleteCnt = ms.cleanupEvents();

cleanupEvents 删除 PARTITION_EVENTS表的过期数据。
PARTITION_EVENTS 表的数据,进在 hcatalog 中使用

MaterializationsRebuildLockCleanerTask

从表 MATERIALIZATION_REBUILD_LOCKS 中找到过期数据,然后删除。

http://www.yayakq.cn/news/696297/

相关文章:

  • 建设的基本流程网站网站制作企业有哪些
  • 潍坊仿站定制模板建站谷歌seo建站
  • 搭建网站流程python 做网站优势
  • 网站做备案关停会显示什么推广公众号有哪些方法
  • 怎样做自己的加密网站河北省住房城乡建设局网站首页
  • 镇江网站制作网站建设网页版qq登录网址
  • 外贸建站 宁波建筑施工单位网站
  • 网站建设投标书组成wordpress七牛云缩略图
  • 网站管理助手 ftp建设商务网站的经济可行性分析
  • 购物网站建设公wordpress为什么是英文
  • 网站建设 常用字体建筑公司网站宣传建筑工地文案范文图片
  • 在网站上怎么做招聘信息青岛平面设计公司
  • 做旧工艺品网站黄骅港属于哪个市
  • 建设网站第一步龙海建设局网站
  • 网站网站地图怎么做8848网站盈利模式
  • mysql做镜像网站网络美工是干啥的
  • 企业门户网站功能描述建设厅是什么单位
  • 网站推广的方法和渠道兴义市住房和城乡建设局网站
  • 平湖网站建设流程重庆建设工程造价信息
  • 北京麒麟网站建设中国艺术设计联盟
  • 网站页面怎么算图库素材网站模板
  • 信阳网站建设信阳做网站的股哥
  • 佛山市南海区交通建设网站重庆做seo网站优化选择哪家
  • 网站设计服务要不要交文化事业建设费公司网站设计要求
  • 龙岗网站制作设计爱奇艺的网站是用什么做的
  • 做网站 需要什么商标珠海斗门建设局官方网站
  • 南昌建设医院官方网站免费的室内装修设计软件
  • 关于服饰搭配做的比较好的网站给公司做网站和公众号需要多少钱
  • 个人做网站赚钱么广州站图片
  • php网站开发 教案wordpress设置视频图片不显示