官术网_书友最值得收藏!

Enabling the co-processor

In this version, the co-processor is loaded dynamically.

Copy the timeline service .jar to HDFS from where HBase can load it. It is needed for the flowrun table creation in the schema creator. The default HDFS location is /hbase/coprocessor.

For example:

hadoop fs -mkdir /hbase/coprocessor hadoop fs -put hadoop-yarn-server-timelineservice-hbase-3.0.0-alpha1-SNAPSHOT.jar /hbase/coprocessor/hadoop-yarn-server-timelineservice.jar

To place the JAR at a different location on HDFS, there also exists a YARN configuration setting called yarn.timeline-service.hbase.coprocessor.jar.hdfs.location, shown as follows:

<property>
  <name>yarn.timeline-service.hbase.coprocessor.jar.hdfs.location</name>
  <value>/custom/hdfs/path/jarName</value>
</property>

Create the timeline service schema using the schema creator tool. For this to happen, we also need to make sure the JARs are all found correctly:

export HADOOP_CLASSPATH=$HADOOP_CLASSPATH:/Users/sridharalla/hbase-1.2.6/lib/:/Users/sridharalla/hadoop-3.1.0/share/hadoop/yarn/timelineservice/

Once we have the classpath corrected, we can create the HBase schema/tables using a simple command, shown as follows:

./bin/hadoop org.apache.hadoop.yarn.server.timelineservice.storage.TimelineSchemaCreator -create -skipExistingTable

The following is the HBase schema created as a result of the preceding command:

主站蜘蛛池模板: 图木舒克市| 安岳县| 阳山县| 卫辉市| 汝阳县| 伊金霍洛旗| 崇明县| 清新县| 双峰县| 建阳市| 冀州市| 阜康市| 贡嘎县| 蕉岭县| 崇仁县| 浮山县| 香格里拉县| 稻城县| 神木县| 丰原市| 皋兰县| 南江县| 澳门| 文安县| 都匀市| 通化县| 攀枝花市| 镇宁| 建湖县| 个旧市| 舞钢市| 綦江县| 监利县| 巴楚县| 固镇县| 永州市| 乃东县| 尚义县| 铜鼓县| 信宜市| 昌都县|