You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by jr...@apache.org on 2016/11/01 20:24:00 UTC
incubator-impala git commit: Adding new file for build instructions,
in Markdown format.
Repository: incubator-impala
Updated Branches:
refs/heads/doc_prototype df7bf40db -> 2568d81c0
Adding new file for build instructions, in Markdown format.
Project: http://git-wip-us.apache.org/repos/asf/incubator-impala/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-impala/commit/2568d81c
Tree: http://git-wip-us.apache.org/repos/asf/incubator-impala/tree/2568d81c
Diff: http://git-wip-us.apache.org/repos/asf/incubator-impala/diff/2568d81c
Branch: refs/heads/doc_prototype
Commit: 2568d81c0434900ba3b6cab5a16d65d22d9afec0
Parents: df7bf40
Author: John Russell <jr...@cloudera.com>
Authored: Tue Nov 1 13:23:49 2016 -0700
Committer: John Russell <jr...@cloudera.com>
Committed: Tue Nov 1 13:23:49 2016 -0700
----------------------------------------------------------------------
docs/generatingImpalaDoc.md | 72 ++++++++++++++++++++++++++++++++++++++++
1 file changed, 72 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-impala/blob/2568d81c/docs/generatingImpalaDoc.md
----------------------------------------------------------------------
diff --git a/docs/generatingImpalaDoc.md b/docs/generatingImpalaDoc.md
new file mode 100644
index 0000000..d57ec47
--- /dev/null
+++ b/docs/generatingImpalaDoc.md
@@ -0,0 +1,72 @@
+#Generating HTML or a PDF of Apache Impala (Incubating) Documentation
+
+##Prerequisites:
+Make sure that you have a recent version of a Java JDK installed and that your JAVA\_HOME environment variable is set. This procedure has been tested with JDK 1.8.0. See "Setting JAVA\_HOME" at the end of these instructions.
+
+* Open a terminal window and run the following commands to get the Impala documentation source files from Git:
+
+ <pre><code>git clone https://git-wip-us.apache.org/repos/asf/incubator-impala.git/docs
+ cd \<local\_directory\>
+ git checkout doc\_prototype</code></pre>
+
+ Where <code>doc\_prototype</code> is the branch where Impala documentation source files are uploaded.
+
+* Download the DITA Open Toolkit version 2.3.3 from the DITA Open Toolkit web site:
+
+ [https://github.com/dita-ot/dita-ot/releases/download/2.3.3/dita-ot-2.3.3.zip] (https://github.com/dita-ot/dita-ot/releases/download/2.3.3/dita-ot-2.3.3.zip)
+
+ **Note:** A DITA-OT 2.3.3 User Guide is included in the <code>doc</code> directory when you extract the DITA-OT2.3.3 compressed file. Look for <code>userguide.pdf</code> in the <code>doc</code> directory of the toolkit. For example, if you extract the toolkit package to the <code>/Users/_\<username\>_/DITA-OT</code directory on Mac OS, you will find the <code>userguide.pdf</code> at the following location:
+
+ <code>/Users/_\<username\>_/DITA-OT/doc/userguide.pdf</code>
+
+##To generate HTML or PDF:
+
+1. In the directory where you cloned the Impala documentation files, you will find the following important configuration files in the <code>docs</code> subdirectory. These files are used to convert the XML source you downloaded from the Apache site to PDF and HTML:
+ * <code>impala.ditamap</code>: Tells the DITA Open Toolkit what topics to include in the Impala User/Administration Guide. This guide also includes the Impala SQL Reference.
+ * <code>impala_sqlref.ditamap</code>: Tells the DITA Open Toolkit what topics to include in the Impala SQL Reference.
+ * <code>impala\_html.ditaval</code>: Further defines what topics to include in the Impala HTML output.
+ * <code>impala_pdf.ditaval</code>: Further defines what topics to include in the Impala PDF output.
+2. Extract the contents of the DITA-OT package into a directory where you want to generate the HTML or the PDF.
+3. Open a terminal window and navigate to the directory where you extracted the DITA-OT package.
+4. Run one of the following commands, depending on what you want to generate:
+ * **To generate HTML output of the Impala User and Administration Guide, run the following command:**
+
+ <code>./bin/dita -input _\<path\_to\__impala.ditamap\> -format html5 -output _\<path\_to\_build\_output\_directory\>_ -filter _\<path\_to\__impala\_html.ditaval\></code>
+
+ * **To generate PDF output of the Impala User and Administration Guide, run the following command:**
+
+ <code>./bin/dita -input _\<path\_to\__impala.ditamap\> -format pdf -output _\<path\_to\_build\_output\_directory\>_ -filter _\<path\_to\__impala\_pdf.ditaval\></code>
+
+ * **To generate HTML output of the Impala SQL Reference, run the following command:**
+
+ <code>./bin/dita -input _\<path\_to\__impala\_sqlref.ditamap\> -format html5 -output _\<path\_to\_build\_output\_directory\>_ -filter _\<path\_to\__impala\_html.ditaval\></code>
+
+ * **To generate PDF output of the Impala SQL Reference, run the following command:**
+
+ <code>./bin/dita -input _\<path\_to\__impala\_sqlref.ditamap\> -format pdf -output _\<path\_to\_build\_output\_directory\>_ -filter _\<path\_to\__impala\_pdf.ditaval\></code>
+
+ **Note:** For a description of all command-line options, see the _DITA Open Toolkit User Guide_ in the <code>doc</code> directory of your downloaded DITA Open Toolkit.
+
+5. Go to the output directory that you specified in Step 3 to view the HTML or PDF that you generated. If you generated HTML, open the <code>index.html</code> file with a browser to view the output.
+
+#Setting JAVA\_HOME
+
+
+Set your JAVA\_HOME environment variable to tell your computer where to find the Java executable file. For example, to set your JAVA\_HOME environment on Mac OS X when you the the 1.8.0\_101 version of the Java Development Kit (JDK) installed and you are using the Bash version 3.2 shell, perform the following steps:
+
+1. Edit your <code>/Users/_\<username\>/.bash\_profile</code> file and add the following lines to the end of the file:
+
+ <pre><code>\#Set JAVA\_HOME
+ JAVA\_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0\_101.jdk/Contents/Home
+ export JAVA\_HOME;</code></pre>
+
+ Where <code>jdk1.8.0\_101.jdk</code> is the version of JDK that you have installed. For example, if you have installed <code>jdk1.8.0\_102.jdk</code>, you would use that value instead.
+
+2. Test to make sure you have set your JAVA\_HOME correctly:
+ * Open a terminal window and type: <code>$JAVA\_HOME/bin/java -version</code>
+ * Press return. If you see something like the following:
+ <pre><code>java version "1.5.0\_16"
+ Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0\_16-b06-284)
+ Java HotSpot (TM) Client VM (build 1.5.0\_16-133, mixed mode, sharing)</code></pre>
+
+ Then you've successfully set your JAVA\_HOME environment variable to the binary stored in <code>/Library/Java/JavaVirtualMachines/jdk1.8.0\_101.jdk/Contents/Home</code>.
\ No newline at end of file