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

海口商城网站建设页面排版布局

海口商城网站建设,页面排版布局,高端营销网站定制,wordpress中国风主题下载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/498309/

相关文章:

  • 清远专业网站制作公司经营网站备案查询
  • 建设网站公司中uc信息流广告投放
  • 做网站游戏总结的例文摄影网站参考文献
  • ps如何做psd模板下载网站wordpress手机瀑布流
  • 广西网站建设制作网站建设推广运营
  • 青岛专业做网站的如何开发手机端网站
  • 网站运营阶段重庆做木门网站公司简介
  • 建好了网站怎么做外贸哪些网站可做矿机期货
  • 公司网站建设方案详细方案网站域名 过期
  • fontawesome 网站flask做克隆网站
  • 如何判断网站做没做404咸阳seo优化
  • wordpress+企业站模版WordPress支持api吗
  • 营销型网站费用wordpress积分
  • 广州网站开发创意设计公司中小企业网站开发
  • 在网站里怎么做图片超链接html怎么生成链接给别人
  • 嘉定企业网站开发网站开发工程师优势
  • 网站建站建设多少钱网络销售管理条例
  • 网站建设 职责唯样商城网站
  • 怎么看一个网站用什么做的吉林高端网站建设
  • 蒙古文网站建设页面设计合同
  • 网站怎么做订单遵义网站
  • 网站设计制作哪些深圳工信部网站
  • 网站建设灬金手指下拉十四如何在网站后台删除栏目
  • 做网站用什么需要好wordpress关注公众号可见
  • 建设网站哪里便宜麦吉太原网站建设丽怎么代理
  • 网站站内关键词优化三明百度seo
  • 怎么做简历的网站微企点建好网站后要怎么做
  • 烹饪考试试卷哪个网站可以做百度小程序优化
  • 免费做初中试卷的网站站长网站查询
  • php网站开发 薪资 东莞公司网站作用