You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by kr...@apache.org on 2015/12/29 02:20:40 UTC

drill-site git commit: add last-modified instruction to readme

Repository: drill-site
Updated Branches:
  refs/heads/asf-site 420f739ff -> 9fd132a09


add last-modified instruction to readme


Project: http://git-wip-us.apache.org/repos/asf/drill-site/repo
Commit: http://git-wip-us.apache.org/repos/asf/drill-site/commit/9fd132a0
Tree: http://git-wip-us.apache.org/repos/asf/drill-site/tree/9fd132a0
Diff: http://git-wip-us.apache.org/repos/asf/drill-site/diff/9fd132a0

Branch: refs/heads/asf-site
Commit: 9fd132a09412a607039c76273917765f4da06e22
Parents: 420f739
Author: Kris Hahn <kr...@apache.org>
Authored: Mon Dec 28 17:20:32 2015 -0800
Committer: Kris Hahn <kr...@apache.org>
Committed: Mon Dec 28 17:20:32 2015 -0800

----------------------------------------------------------------------
 README.md                                       | 25 ++++++++++++++++++++
 .../index.html                                  | 11 +++++----
 feed.xml                                        |  4 ++--
 3 files changed, 33 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/drill-site/blob/9fd132a0/README.md
----------------------------------------------------------------------
diff --git a/README.md b/README.md
index 56d6cb6..2fdc1e4 100644
--- a/README.md
+++ b/README.md
@@ -11,6 +11,31 @@ jekyll serve --config _config.yml,_config-prod.yml
 ```
 Note that you can skip the first two commands (and only run `jekyll serve`) if you haven't changed the title or path of any of the documentation pages.
 
+To automatically add the last-modified-on date, a one-time local setup is required:
+
+1.  In your cloned directory of Drill, in drill/.git/hooks, create a file named pre-commit (no extension) that contains this script:
+
+          #!/bin/sh
+          # Contents of .git/hooks/pre-commit
+
+          git diff --cached --name-status | grep "^M" | while read a b; do
+            cat $b | sed "/---.*/,/---.*/s/^date:.*$/date: $(date -u "+%Y-%m-%d %T %Z")/" > tmp
+            mv tmp $b
+            git add $b
+          done
+
+2. Make the file executable.
+
+          chmod +x pre-commit
+
+In addition the title: and parent:, add date: to the front matter of any file you create. For example:
+
+          ---
+          title: "Configuring Multitenant Resources"
+          parent: "Configuring a Multitenant Cluster"
+          date: 
+          ---
+
 # Compiling the Website
 
 Once the website is ready, you'll need to compile the site to static HTML so that it can then be published to Apache. This is as simple as running the `jekyll build` command. The _config-prod.yml configuration file causes a few changes to the site:

http://git-wip-us.apache.org/repos/asf/drill-site/blob/9fd132a0/docs/configuring-multitenant-resources/index.html
----------------------------------------------------------------------
diff --git a/docs/configuring-multitenant-resources/index.html b/docs/configuring-multitenant-resources/index.html
index cb88456..7127949 100644
--- a/docs/configuring-multitenant-resources/index.html
+++ b/docs/configuring-multitenant-resources/index.html
@@ -1040,7 +1040,7 @@
 
     </div>
 
-     
+     Dec 29, 2015
 
     <link href="/css/docpage.css" rel="stylesheet" type="text/css">
 
@@ -1050,14 +1050,15 @@
 
 <p>Configure a multitenant cluster manager to account for resources required for Drill. Configuring <code>drill-env.sh</code> allocates resources for Drill to use during query execution. It might be necessary to configure the cluster manager from committing the resources to other processes.</p>
 
-<h2 id="configuring-drill-in-a-yarn-enabled">Configuring Drill in a YARN-enabled</h2>
+<h2 id="configuring-drill-in-a-yarn-enabled-cluster">Configuring Drill in a YARN-enabled cluster</h2>
 
-<p>To add Drill to a YARN-enabled cluster, change memory resources to suit your application. For example, you have 120G of available memory that you allocate to following workloads in a Yarn-enabled cluster:</p>
+<p>To add Drill to a YARN-enabled cluster, change memory resources to suit your application. For example, you have 128G of available memory that you allocate to following workloads in a Yarn-enabled cluster:</p>
 
 <p>File system = 20G<br>
 HBase = 20G<br>
-Yarn = 20G<br>
-OS = 8G  </p>
+OS = 8G<br>
+Yarn = ?
+Drill = ?</p>
 
 <p>If Yarn does most of the work, give Drill 20G, for example, and give Yarn 60G. If you expect a heavy query load, give Drill 60G and Yarn 20G.</p>
 

http://git-wip-us.apache.org/repos/asf/drill-site/blob/9fd132a0/feed.xml
----------------------------------------------------------------------
diff --git a/feed.xml b/feed.xml
index a598f93..77647d5 100644
--- a/feed.xml
+++ b/feed.xml
@@ -6,8 +6,8 @@
 </description>
     <link>/</link>
     <atom:link href="/feed.xml" rel="self" type="application/rss+xml"/>
-    <pubDate>Mon, 28 Dec 2015 16:26:40 -0800</pubDate>
-    <lastBuildDate>Mon, 28 Dec 2015 16:26:40 -0800</lastBuildDate>
+    <pubDate>Mon, 28 Dec 2015 17:14:09 -0800</pubDate>
+    <lastBuildDate>Mon, 28 Dec 2015 17:14:09 -0800</lastBuildDate>
     <generator>Jekyll v2.5.3</generator>
     
       <item>