HDP3.1 中配置 YARN 的 timeline server 使用外部的 HBase

    HDP3.1 中的 YARN 的 timeline server 默认使用内置的 HBase,不知道为何,老是过几天就挂掉,暂时还没找到缘由。后来想着让它使用外部的 HBase 看看会不会还有此问题。配置以下:node

    前提: Ambari 中已经装好 YARN 和 HBase 了。shell

(1)把 YARN 的配置页中 Advanced yarn-hbase-env 部分里的下面三个值改为 HBase 配置页里相应的值。而后重启 YARN 的服务。apache

  • hbase.zookeeper.quorum
  • hbase.zookeeper.property.clientPort
  • zookeeper.znode.parent

(2)登录到某台机器,执行下面的命令,建立须要的表。oop

export HBASE_CLASSPATH_PREFIX={hdp-dir}/hadoop-yarn/timelineservice/*

{hdp-dir}/hbase/bin/hbase 
org.apache.hadoop.yarn.server.timelineservice.storage.TimelineSchemaCreator -Dhbase.client.retries.number=35 -create -s
上面{hdp-dir} 是HDP 安装的目录,个人是 /usr/hdp/3.1.0.0-78

(3)登录 HBase shell,给 yarn 用户赋权限。
grant 'yarn', 'RWXCA'spa

相关文章
相关标签/搜索