Pārlūkot izejas kodu

ECL Playground doc & files for rel. with 3.8

G Panagiotatos 13 gadi atpakaļ
vecāks
revīzija
a2a5de69da

+ 2 - 0
docs/CMakeLists.txt

@@ -59,6 +59,8 @@ add_subdirectory(RDDERef)
 add_subdirectory(RunningHPCCinaVirtualMachine)
 add_subdirectory(UsingConfigManager)
 add_subdirectory(HDFSConnector)
+add_subdirectory(ECLPlayground)
+
 
 
 #WIP -  Docs

+ 19 - 0
docs/ECLPlayground/CMakeLists.txt

@@ -0,0 +1,19 @@
+################################################################################
+#    Copyright (C) 2011 HPCC Systems.
+#
+#    All rights reserved. This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU Affero General Public License as
+#    published by the Free Software Foundation, either version 3 of the
+#    License, or (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU Affero General Public License for more details.
+#
+#    You should have received a copy of the GNU Affero General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+################################################################################
+
+DOCBOOK_TO_PDF( ${FO_XSL} ECLPlayground-includer.xml "ECL_Playground")
+

+ 259 - 0
docs/ECLPlayground/ECLPlay-Mods/ECL_Playground.xml

@@ -0,0 +1,259 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<book xml:base="../">
+  <bookinfo>
+    <title>ECL Playground</title>
+
+    <author>
+      <firstname>Boca Raton</firstname>
+
+      <surname>Documentation Team</surname>
+
+      <affiliation>
+        <orgname>Lexis Nexis</orgname>
+      </affiliation>
+    </author>
+
+    <pubdate>2012</pubdate>
+  </bookinfo>
+
+  <chapter id="ECL_Playgd">
+    <title><emphasis role="bold">Using the ECL Playground</emphasis></title>
+
+    <sect1 id="ECL_Playground" role="nobrk">
+      <title>Using the ECL Playground</title>
+
+      <para>ECL Playground is a tool hosted on an ESP server. A page runs in
+      your browser, allowing you to access and execute self-contained ECL code
+      on your HPCC system without the use of any other tools. The ECL
+      Playground then shows you the results and the graph in your browser. The
+      view is very similar to what the ECL IDE displays.</para>
+
+      <sect2>
+        <title>Accessing ECL Playground</title>
+
+        <para>ECL Playground is installed with the HPCC platform. You can
+        access it through the ECL Watch page.</para>
+
+        <para><orderedlist>
+            <listitem>
+              <para>In your browser, go to the <emphasis role="bold">ECL
+              Watch</emphasis> URL. For example, http://nnn.nnn.nnn.nnn:8010,
+              where nnn.nnn.nnn.nnn is your ESP server node's IP
+              address.</para>
+
+              <para><informaltable colsep="1" frame="all" rowsep="1">
+                  <?dbfo keep-together="always"?>
+
+                  <tgroup cols="2">
+                    <colspec colwidth="49.50pt" />
+
+                    <colspec />
+
+                    <tbody>
+                      <row>
+                        <entry><inlinegraphic
+                        fileref="../../images/caution.png" /></entry>
+
+                        <entry>Your IP address could be different from the
+                        ones provided in the example images. Please use the IP
+                        address of <emphasis role="bold">your</emphasis>
+                        node.</entry>
+                      </row>
+                    </tbody>
+                  </tgroup>
+                </informaltable></para>
+            </listitem>
+
+            <listitem>
+              <?dbfo keep-together="always"?>
+
+              <para>From ECL Watch page, click on the <emphasis
+              role="bold">ECL Playground </emphasis> link in the menu on the
+              left side.</para>
+
+              <para><figure>
+                  <title>ECL Playground link</title>
+
+                  <mediaobject>
+                    <imageobject>
+                      <imagedata fileref="../../images/ECLP_001.JPG" />
+                    </imageobject>
+                  </mediaobject>
+                </figure></para>
+
+              <para>The ECL Playground displays.</para>
+            </listitem>
+          </orderedlist></para>
+      </sect2>
+
+      <sect2 role="brk">
+        <title>Introducing the ECL Playground</title>
+
+        <para>The ECL Playground page is a work area where you can see and run
+        self-contained ECL code. You can see the code, submit it, and see the
+        results. You can even change the code and resubmit it to instantly see
+        the new results right in your browser. This is an ideal tool for the
+        user who is not an ECL programming expert who wants to change some of
+        the ECL code and see the results.</para>
+
+        <para><figure>
+            <title>The ECL Playground</title>
+
+            <mediaobject>
+              <imageobject>
+                <imagedata fileref="../../images/ECLP_002d.JPG" />
+              </imageobject>
+            </mediaobject>
+          </figure></para>
+
+        <para>The ECL Playground page is divided into areas. The top portion
+        contains the <emphasis>Editor</emphasis> area and the <emphasis>Graph
+        Viewer</emphasis>. The Sample code drop list is at the top right. The
+        bottom portion of the page displays the results.</para>
+
+        <para>The ECL Playground comes with a set of ready to run sample ECL
+        code. The drop list contains code samples. Select any one of these
+        samples and it loads in the editor.</para>
+
+        <para><figure>
+            <title>Sample drop list</title>
+
+            <mediaobject>
+              <imageobject>
+                <imagedata fileref="../../images/ECLP_003b.JPG" />
+              </imageobject>
+            </mediaobject>
+          </figure>The selected code displays in the <emphasis>Editor
+        </emphasis>area. You can then submit it as-is, or modify and submit.
+        The results display at the bottom portion of the page.</para>
+      </sect2>
+
+      <sect2>
+        <title>Running ECL Code</title>
+
+        <para>To run the code that you selected, press the <emphasis
+        role="bold">Submit</emphasis> button below the
+        <emphasis>Editor</emphasis> area.</para>
+
+        <para>A successful run displays the word <emphasis
+        role="bold">completed</emphasis> as the status and the results display
+        in the results viewer. You can also view the graph in the upper
+        right.</para>
+
+        <para><figure>
+            <title>Success</title>
+
+            <mediaobject>
+              <imageobject>
+                <imagedata fileref="../../images/ECLP_005.JPG" />
+              </imageobject>
+            </mediaobject>
+          </figure></para>
+
+        <para>A completed job generates a graph. You can examine the graph in
+        greater detail by double-clicking the graph to zoom in. You can also
+        zoom in with the mouse wheel. A double-click on a blank area of the
+        graph will zoom out. You can use the scroll bars on the border of the
+        graph to navigate or you can drag the graph with your mouse.</para>
+
+        <para>Selecting a node in the graph highlights the relevant section of
+        the code in the Editor. This is helpful in troubleshooting or
+        modifying code since it shows you the code that corresponds to a node
+        in the graph.</para>
+
+        <para><figure>
+            <title>Error</title>
+
+            <mediaobject>
+              <imageobject>
+                <imagedata fileref="../../images/ECLP_004a.JPG" />
+              </imageobject>
+            </mediaobject>
+          </figure>The status area displays the job status. If a job fails,
+        errors display in the result viewer and the code is highlighted in red
+        in the <emphasis>Editor</emphasis>. If there are warnings they are
+        displayed in yellow.</para>
+
+        <sect3>
+          <title>Analyze the results</title>
+
+          <para>When running ECL Code that has multiple results, each result
+          is on a separate tab. Select a tab to see that set of results. You
+          can also change number of results displayed or page through the
+          results with the links at the bottom.</para>
+
+          <para><figure>
+              <title>Multiple results</title>
+
+              <mediaobject>
+                <imageobject>
+                  <imagedata fileref="../../images/ECLP_006a.JPG" />
+                </imageobject>
+              </mediaobject>
+            </figure></para>
+        </sect3>
+      </sect2>
+
+      <sect2 role="brk">
+        <title>ECL Playground from a Workunit</title>
+
+        <para>You can access ECL Playground from a Workunit Details page in
+        ECL Watch.<orderedlist>
+            <listitem>
+              <?dbfo keep-together="always"?>
+
+              <para>Select <emphasis role="bold">Browse Workunits</emphasis>
+              from the ECL Watch menu.</para>
+
+              <para><figure>
+                  <title>Browse Workunits</title>
+
+                  <mediaobject>
+                    <imageobject>
+                      <imagedata fileref="../../images/ECLP_007.JPG" />
+                    </imageobject>
+                  </mediaobject>
+                </figure></para>
+            </listitem>
+
+            <listitem>
+              <para>Click on a workunit hyperlink to open the Workunit Details
+              page.</para>
+            </listitem>
+
+            <listitem>
+              <?dbfo keep-together="always"?>
+
+              <para>Click on the <emphasis role="bold">ECL Playground
+              </emphasis>hyperlink to open it in the ECL Playground.<figure>
+                  <title>ECL Playground link</title>
+
+                  <mediaobject>
+                    <imageobject>
+                      <imagedata fileref="../../images/ECLP_008.JPG" />
+                    </imageobject>
+                  </mediaobject>
+                </figure></para>
+            </listitem>
+
+            <listitem>
+              <?dbfo keep-together="always"?>
+
+              <para>You can then edit the ECL and resubmit to see the results.
+              This creates a new workunit. <figure>
+                  <title>Workunit in ECL Playground</title>
+
+                  <mediaobject>
+                    <imageobject>
+                      <imagedata fileref="../../images/ECLP_009.JPG" />
+                    </imageobject>
+                  </mediaobject>
+                </figure></para>
+            </listitem>
+          </orderedlist></para>
+      </sect2>
+    </sect1>
+  </chapter>
+</book>

+ 61 - 0
docs/ECLPlayground/ECLPlayground-includer.xml

@@ -0,0 +1,61 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
+"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
+<book xml:base="../">
+  <bookinfo>
+    <title>ECL Playground</title>
+
+    <mediaobject>
+      <imageobject>
+        <imagedata fileref="images/redswooshWithLogo3.jpg" />
+      </imageobject>
+    </mediaobject>
+
+    <author>
+      <surname>Boca Raton Documentation Team</surname>
+    </author>
+
+    <legalnotice>
+      <para>We welcome your comments and feedback about this document via
+      email to <email>docfeedback@hpccsystems.com</email> Please include
+      <emphasis role="bold">Documentation Feedback</emphasis> in the subject
+      line and reference the document name, page numbers, and current Version
+      Number in the text of the message.</para>
+
+      <para>LexisNexis and the Knowledge Burst logo are registered trademarks
+      of Reed Elsevier Properties Inc., used under license. Other products,
+      logos, and services may be trademarks or registered trademarks of their
+      respective companies. All names and example data used in this manual are
+      fictitious. Any similarity to actual persons, living or dead, is purely
+      coincidental.</para>
+
+      <para />
+    </legalnotice>
+
+    <xi:include href="common/Version.xml" xpointer="FooterInfo"
+                xmlns:xi="http://www.w3.org/2001/XInclude" />
+
+    <xi:include href="common/Version.xml" xpointer="DateVer"
+                xmlns:xi="http://www.w3.org/2001/XInclude" />
+
+    <corpname>HPCC Systems</corpname>
+
+    <xi:include href="common/Version.xml" xpointer="Copyright"
+                xmlns:xi="http://www.w3.org/2001/XInclude" />
+
+    <mediaobject role="logo">
+      <imageobject>
+        <imagedata fileref="images/LN_Rightjustified.jpg" />
+      </imageobject>
+    </mediaobject>
+  </bookinfo>
+
+  <chapter id="ECLPlaygroundChap">
+    <title>
+      <emphasis>ECL Playground</emphasis>
+    </title>
+
+    <xi:include href="ECLPlayground/ECLPlay-Mods/ECL_Playground.xml"  xpointer="ECL_Playground"
+                xmlns:xi="http://www.w3.org/2001/XInclude" />
+  </chapter>
+</book>

+ 1 - 1
docs/HPCCDataTutorial/DataTutorial.xml

@@ -281,7 +281,7 @@
 
           <listitem>
             <para>In your browser, go to the <emphasis role="bold">ECL
-            Watch</emphasis> URL For example, http://nnn.nnn.nnn.nnn:8010,
+            Watch</emphasis> URL. For example, http://nnn.nnn.nnn.nnn:8010,
             where nnn.nnn.nnn.nnn is your ESP<footnote>
                 <para>The ESP (Enterprise Services Platform) Server is the
                 communication layer server in you HPCC environment.</para>

+ 1 - 1
docs/IMDB/IMDB.xml

@@ -258,7 +258,7 @@ Blankline</programlisting></para>
 
           <listitem>
             <para>In your browser, go to the <emphasis role="bold">ECL
-            Watch</emphasis> URL For example, http://nnn.nnn.nnn.nnn:8010,
+            Watch</emphasis> URL. For example, http://nnn.nnn.nnn.nnn:8010,
             where nnn.nnn.nnn.nnn is your ESP Server's IP address.</para>
 
             <para><informaltable colsep="1" frame="all" rowsep="1">

+ 2 - 2
docs/Installing_and_RunningTheHPCCPlatform/Installing_and_RunningTheHPCCPlatform.xml

@@ -737,7 +737,7 @@
           <para><orderedlist>
               <listitem>
                 <para>In your browser, go to the <emphasis role="bold">ECL
-                Watch</emphasis> URL For example, http://nnn.nnn.nnn.nnn:8010,
+                Watch</emphasis> URL. For example, http://nnn.nnn.nnn.nnn:8010,
                 where nnn.nnn.nnn.nnn is your node's IP address.</para>
 
                 <para><informaltable colsep="1" frame="all" rowsep="1">
@@ -1767,7 +1767,7 @@ OUTPUT(L);</programlisting></para>
         <orderedlist>
           <listitem>
             <para>In your browser, go to the <emphasis role="bold">ECL
-            Watch</emphasis> URL For example, http://nnn.nnn.nnn.nnn:8010,
+            Watch</emphasis> URL. For example, http://nnn.nnn.nnn.nnn:8010,
             where nnn.nnn.nnn.nnn is your ESP Server's IP address.</para>
 
             <para><informaltable colsep="1" frame="all" rowsep="1">

+ 1 - 1
docs/RunningHPCCinaVirtualMachine/RunningHPCCinaVirtualMachine.xml

@@ -845,7 +845,7 @@ OUTPUT(L);</programlisting></para>
           <orderedlist>
             <listitem>
               <para>In your browser, go to the <emphasis role="bold">ECL
-              Watch</emphasis> URL For example, http://nnn.nnn.nnn.nnn:8010,
+              Watch</emphasis> URL. For example, http://nnn.nnn.nnn.nnn:8010,
               where nnn.nnn.nnn.nnn is your ESP Server's IP address.</para>
 
               <para><informaltable colsep="1" frame="all" rowsep="1">

BIN
docs/images/ECLP_001.jpg


BIN
docs/images/ECLP_002d.jpg


BIN
docs/images/ECLP_002d.snag


BIN
docs/images/ECLP_003-1.snag


BIN
docs/images/ECLP_003.jpg


BIN
docs/images/ECLP_003b.jpg


BIN
docs/images/ECLP_004a.jpg


BIN
docs/images/ECLP_005.jpg


BIN
docs/images/ECLP_006a.jpg


BIN
docs/images/ECLP_007.jpg


BIN
docs/images/ECLP_008.jpg


BIN
docs/images/ECLP_009.jpg