From common-commits-return-93778-archive-asf-public=cust-asf.ponee.io@hadoop.apache.org Tue Mar 19 06:41:29 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx-eu-01.ponee.io (Postfix) with SMTP id 59802180626 for ; Tue, 19 Mar 2019 07:41:29 +0100 (CET) Received: (qmail 38543 invoked by uid 500); 19 Mar 2019 06:41:28 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 38533 invoked by uid 99); 19 Mar 2019 06:41:27 -0000 Received: from ec2-52-202-80-70.compute-1.amazonaws.com (HELO gitbox.apache.org) (52.202.80.70) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Mar 2019 06:41:27 +0000 Received: by gitbox.apache.org (ASF Mail Server at gitbox.apache.org, from userid 33) id 42D5E82F24; Tue, 19 Mar 2019 06:41:27 +0000 (UTC) Date: Tue, 19 Mar 2019 06:41:27 +0000 To: "common-commits@hadoop.apache.org" Subject: [hadoop] branch trunk updated: YARN-9365. Fix table creation command in TimelineServiceV2.md MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Message-ID: <155297768712.13508.9909513253632465509@gitbox.apache.org> From: rohithsharmaks@apache.org X-Git-Host: gitbox.apache.org X-Git-Repo: hadoop X-Git-Refname: refs/heads/trunk X-Git-Reftype: branch X-Git-Oldrev: f10d49332522beca7cb7342e68b2acdbe4c974f8 X-Git-Newrev: c9e50c48de4ff7ef6bb89153362531833fd8da9f X-Git-Rev: c9e50c48de4ff7ef6bb89153362531833fd8da9f X-Git-NotificationType: ref_changed_plus_diff X-Git-Multimail-Version: 1.5.dev Auto-Submitted: auto-generated This is an automated email from the ASF dual-hosted git repository. rohithsharmaks pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/hadoop.git The following commit(s) were added to refs/heads/trunk by this push: new c9e50c4 YARN-9365. Fix table creation command in TimelineServiceV2.md c9e50c4 is described below commit c9e50c48de4ff7ef6bb89153362531833fd8da9f Author: Rohith Sharma K S AuthorDate: Tue Mar 19 12:05:28 2019 +0530 YARN-9365. Fix table creation command in TimelineServiceV2.md --- .../src/site/markdown/TimelineServiceV2.md | 26 +++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/TimelineServiceV2.md b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/TimelineServiceV2.md index 73176ef..eb84377 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/TimelineServiceV2.md +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-site/src/site/markdown/TimelineServiceV2.md @@ -252,9 +252,33 @@ For example, ``` ##### Step 3) Create the timeline service schema +The schema creation can be run on the hbase cluster which is going to store the timeline +service tables. The schema creator tool requires both the timelineservice-hbase as well +as the hbase-server jars. Hence, during schema creation, you need to ensure that the +hbase classpath contains the yarn-timelineservice-hbase jar. + +On the hbase cluster, you can get it from hdfs since we placed it there for the +coprocessor in the step above. + +``` + hadoop fs -get /hbase/coprocessor/hadoop-yarn-server-timelineservice-hbase-client-${project.version}.jar /. + hadoop fs -get /hbase/coprocessor/hadoop-yarn-server-timelineservice-${project.version}.jar /. + hadoop fs -get /hbase/coprocessor/hadoop-yarn-server-timelineservice-hbase-common-${project.version}.jar /. +``` + +Next, add it to the hbase classpath as follows: + +``` + export HBASE_CLASSPATH=$HBASE_CLASSPATH:/home/yarn/hadoop-current/share/hadoop/yarn/timelineservice/hadoop-yarn-server-timelineservice-hbase-client-${project.version}.jar + export HBASE_CLASSPATH=$HBASE_CLASSPATH:/home/yarn/hadoop-current/share/hadoop/yarn/timelineservice/hadoop-yarn-server-timelineservice-${project.version}.jar + export HBASE_CLASSPATH=$HBASE_CLASSPATH:/home/yarn/hadoop-current/share/hadoop/yarn/timelineservice/hadoop-yarn-server-timelineservice-hbase-common-${project.version}.jar +``` + Finally, run the schema creator tool to create the necessary tables: - bin/hadoop org.apache.hadoop.yarn.server.timelineservice.storage.TimelineSchemaCreator -create +``` + bin/hbase org.apache.hadoop.yarn.server.timelineservice.storage.TimelineSchemaCreator -create +``` The `TimelineSchemaCreator` tool supports a few options that may come handy especially when you are testing. For example, you can use `-skipExistingTable` (`-s` for short) to skip existing tables --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-commits-help@hadoop.apache.org