tajo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hyun...@apache.org
Subject svn commit: r1630531 [1/4] - in /tajo/site/docs/current: ./ _sources/ _sources/configuration/ _sources/functions/ _sources/getting_started/ backup_and_restore/ configuration/ functions/ getting_started/ partitioning/ sql_language/ table_management/
Date Thu, 09 Oct 2014 16:42:38 GMT
Author: hyunsik
Date: Thu Oct  9 16:42:37 2014
New Revision: 1630531

URL: http://svn.apache.org/r1630531
Log:
Reflect latest documentation.

Modified:
    tajo/site/docs/current/_sources/configuration/ha_configuration.txt
    tajo/site/docs/current/_sources/functions/datetime_func_and_operators.txt
    tajo/site/docs/current/_sources/getting_started/downloading_source.txt
    tajo/site/docs/current/_sources/index.txt
    tajo/site/docs/current/backup_and_restore.html
    tajo/site/docs/current/backup_and_restore/catalog.html
    tajo/site/docs/current/configuration.html
    tajo/site/docs/current/configuration/catalog_configuration.html
    tajo/site/docs/current/configuration/cluster_setup.html
    tajo/site/docs/current/configuration/configuration_defaults.html
    tajo/site/docs/current/configuration/ha_configuration.html
    tajo/site/docs/current/configuration/preliminary.html
    tajo/site/docs/current/configuration/tajo_master_configuration.html
    tajo/site/docs/current/configuration/worker_configuration.html
    tajo/site/docs/current/faq.html
    tajo/site/docs/current/functions.html
    tajo/site/docs/current/functions/datetime_func_and_operators.html
    tajo/site/docs/current/functions/math_func_and_operators.html
    tajo/site/docs/current/functions/network_func_and_operators.html
    tajo/site/docs/current/functions/string_func_and_operators.html
    tajo/site/docs/current/genindex.html
    tajo/site/docs/current/getting_started.html
    tajo/site/docs/current/getting_started/building.html
    tajo/site/docs/current/getting_started/downloading_source.html
    tajo/site/docs/current/getting_started/first_query.html
    tajo/site/docs/current/getting_started/local_setup.html
    tajo/site/docs/current/getting_started/prerequisites.html
    tajo/site/docs/current/hcatalog_integration.html
    tajo/site/docs/current/index.html
    tajo/site/docs/current/introduction.html
    tajo/site/docs/current/jdbc_driver.html
    tajo/site/docs/current/objects.inv
    tajo/site/docs/current/partitioning/column_partitioning.html
    tajo/site/docs/current/partitioning/hash_partitioning.html
    tajo/site/docs/current/partitioning/intro_to_partitioning.html
    tajo/site/docs/current/partitioning/range_partitioning.html
    tajo/site/docs/current/search.html
    tajo/site/docs/current/searchindex.js
    tajo/site/docs/current/sql_language.html
    tajo/site/docs/current/sql_language/data_model.html
    tajo/site/docs/current/sql_language/ddl.html
    tajo/site/docs/current/sql_language/insert.html
    tajo/site/docs/current/sql_language/predicates.html
    tajo/site/docs/current/sql_language/queries.html
    tajo/site/docs/current/sql_language/sql_expression.html
    tajo/site/docs/current/table_management.html
    tajo/site/docs/current/table_management/compression.html
    tajo/site/docs/current/table_management/csv.html
    tajo/site/docs/current/table_management/file_formats.html
    tajo/site/docs/current/table_management/parquet.html
    tajo/site/docs/current/table_management/rcfile.html
    tajo/site/docs/current/table_management/sequencefile.html
    tajo/site/docs/current/table_partitioning.html
    tajo/site/docs/current/tajo_client_api.html

Modified: tajo/site/docs/current/_sources/configuration/ha_configuration.txt
URL: http://svn.apache.org/viewvc/tajo/site/docs/current/_sources/configuration/ha_configuration.txt?rev=1630531&r1=1630530&r2=1630531&view=diff
==============================================================================
--- tajo/site/docs/current/_sources/configuration/ha_configuration.txt (original)
+++ tajo/site/docs/current/_sources/configuration/ha_configuration.txt Thu Oct  9 16:42:37 2014
@@ -60,7 +60,7 @@ And then, you need to setup tarball and 
 
 .. note::
 
-  If you want to run active master and backup master on the same host, you may find tajo master port conflicts. To avoid this problem, you must convert backup master primary ports to another port in ``tajo-site.xml`` as follows:
+  If you want to run active master and backup master on the same host, you may find TajoMaster port conflicts. To avoid this problem, you must convert backup master primary ports to another port in ``tajo-site.xml`` as follows:
 
   .. code-block:: xml
 
@@ -108,7 +108,7 @@ Then, execute ``start-tajo.sh`` ::
 
 .. note::
 
-  You can't use HA mode in DerbyStore. Currently, just one tajo master invoke the derby. If another master try to invoke it, it never run itself. Also, if you set another catalog uri for backup master, it is a incorrect configuration. Because they are unequal in every way.
+  You can't use HA mode in DerbyStore. Currently, just one TajoMaster invoke the derby. If another master try to invoke it, it never run itself. Also, if you set another catalog uri for backup master, it is a incorrect configuration. Because they are unequal in every way.
 
 ================================================
   Administration HA state
@@ -132,4 +132,17 @@ If you want to initiate HA information, 
 
 .. note::
 
-  Before format HA, you must shutdown the tajo cluster.
\ No newline at end of file
+  Before format HA, you must shutdown the Tajo cluster.
+
+
+================================================
+  How to Test Automatic Failover
+================================================
+
+If you want to verify automatic failover of TajoMaster, you must deploy your Tajo cluster with TajoMaster HA enable. And then, you need to find which node is active from Tajo web UI.
+
+Once you find your active TajoMaster, you can cause a failure on that node. For example, you can use kill -9 <pid of TajoMaster> to simulate a JVM crash. Or you can shutdown the machine or disconnect network interface. And then, the backup TajoMaster will be automatically active within 5 seconds. The amount of time required to detect a failure and  trigger a failover depends on the config ``tajo.master.ha.monitor.interval``. If there is running queries, it will be finished successfully. Because your TajoClient will get the result data on TajoWorker. But you can't find already query history. Because TajoMaster stores query history on memory. So, the other master can't access already active master query history. And if there is no running query, the automatic failover run successfully.
+
+.. note::
+
+  TajoMaster HA does not consider TajoWorker failure. It guarantees the high availability of both TajoResourceManager and QueryMaster.
\ No newline at end of file

Modified: tajo/site/docs/current/_sources/functions/datetime_func_and_operators.txt
URL: http://svn.apache.org/viewvc/tajo/site/docs/current/_sources/functions/datetime_func_and_operators.txt?rev=1630531&r1=1630530&r2=1630531&view=diff
==============================================================================
--- tajo/site/docs/current/_sources/functions/datetime_func_and_operators.txt (original)
+++ tajo/site/docs/current/_sources/functions/datetime_func_and_operators.txt Thu Oct  9 16:42:37 2014
@@ -2,6 +2,306 @@
 DateTime Functions and Operators
 ********************************
 
+  * Note : Example result may be various based on time zone.
+
+.. function:: add_days (date date|timestamp, day int)
+
+  Returns date value which is added with given day parameter.
+
+  :param date: base timestamp or date
+  :param day: day value to be added
+  :rtype: timestamp
+  :example:
+          
+  .. code-block:: sql
+
+    select add_days(date '2013-12-30', 5);
+    > 2014-01-03 15:00:00
+
+    select add_days(timestamp '2013-12-05 12:10:20', -7);
+    > 2013-11-28 03:10:20
+
+.. function:: add_months (date date|timestamp, month int)
+
+  Returns date value which is added with given month parameter.
+
+  :param date: base timestamp or date
+  :param month: month value to be added
+  :rtype: timestamp
+  :example:
+          
+  .. code-block:: sql
+
+    select add_months(date '2013-12-17', 2);
+    > 2014-02-16 15:00:00
+
+.. function:: current_date ()
+
+  Returns current date
+
+  :rtype: date
+          
+  .. code-block:: sql
+
+    select current_date();
+    > 2014-09-23
+
+.. function:: current_time ()
+
+  Returns current time
+
+  :rtype: time
+          
+  .. code-block:: sql
+
+    select current_time();
+    > 05:18:27.651999
+
+.. function:: extract(field FROM source)
+
+  The extract function retrieves subfields such as year or hour from date/time values. *source* must be a value expression of type *timestamp*, or *time*. (Expressions of type *date* are cast to *timestamp* and can therefore be used as well.) *field* is an identifier that selects what field to extract from the source value. The extract function returns values of type double precision. The following are valid field names:
+
+  **century**
+
+  The century
+
+  .. code-block:: sql
+
+    select extract(century from timestamp '2001-12-16 12:21:13');
+    > 21.0
+
+  The first century starts at 0001-01-01 00:00:00 AD, although they did not know it at the time. This definition applies to all Gregorian calendar countries. There is no century number 0, you go from -1 century to 1 century. If you disagree with this, please write your complaint to: Pope, Cathedral Saint-Peter of Roma, Vatican.
+
+  **day**
+
+  For *timestamp* values, the day (of the month) field (1 - 31)
+
+  .. code-block:: sql
+
+    select extract(day from timestamp '2001-02-16 20:38:40');
+    > 16.0
+
+  **decade**
+
+  The year field divided by 10
+
+  .. code-block:: sql
+
+    select extract(decade from timestamp '2001-02-16 20:38:40');
+    > 200.0
+
+  **dow**
+
+  The day of the week as Sunday(0) to Saturday(6)
+
+  .. code-block:: sql
+
+    select extract(dow from timestamp '2001-02-16 20:38:40');
+    > 5.0
+
+  Note that extract's day of the week numbering differs from that of the to_char(..., 'D') function.
+
+  **doy**
+
+  The day of the year (1 - 365/366)
+
+  .. code-block:: sql
+
+    select extract(doy from timestamp '2001-02-16 20:38:40');
+    > 47.0
+
+  **hour**
+
+  The hour field (0 - 23)
+
+  .. code-block:: sql
+
+    select extract(hour from timestamp '2001-02-16 20:38:40');
+    > 20.0
+
+  **isodow**
+
+  The day of the week as Monday(1) to Sunday(7)
+
+  .. code-block:: sql
+
+    select extract(isodow from timestamp '2001-02-18 20:38:40');
+    > 7.0
+
+  This is identical to dow except for Sunday. This matches the ISO 8601 day of the week numbering.
+
+  **isoyear**
+
+  The ISO 8601 year that the date falls in
+
+  .. code-block:: sql
+
+    select extract(isoyear from date '2006-01-01');
+    > 2005.0
+
+  Each ISO year begins with the Monday of the week containing the 4th of January, so in early January or late December the ISO year may be different from the Gregorian year. See the week field for more information.
+
+  **microseconds**
+
+  The seconds field, including fractional parts, multiplied by 1 000 000; note that this includes full seconds
+
+  .. code-block:: sql
+
+    select extract(microseconds from time '17:12:28.5');
+    > 2.85E7
+
+  **millennium**
+
+  The millennium
+
+  .. code-block:: sql
+
+    select extract(millennium from timestamp '2001-02-16 20:38:40');
+    > 3.0
+
+  Years in the 1900s are in the second millennium. The third millennium started January 1, 2001.
+
+  **milliseconds**
+
+  The seconds field, including fractional parts, multiplied by 1000. Note that this includes full seconds.
+
+  .. code-block:: sql
+
+    select extract(milliseconds from time '17:12:28.5');
+    > 28500.0
+
+  **minute**
+
+  The minutes field (0 - 59)
+
+  .. code-block:: sql
+
+    select extract(minute from timestamp '2001-02-16 20:38:40');
+    > 38.0
+
+  **month**
+
+  For timestamp values, the number of the month within the year (1 - 12)
+
+  .. code-block:: sql
+
+    select extract(month from timestamp '2001-02-16 20:38:40');
+    > 2.0
+
+  **quarter**
+
+  The quarter of the year (1 - 4) that the date is in
+
+  .. code-block:: sql
+
+    select extract(quarter from timestamp '2001-02-16 20:38:40');
+    > 1.0
+
+  **second**
+
+  The seconds field, including fractional parts (0 - 59[1])
+
+  .. code-block:: sql
+
+    select extract(second from timestamp '2001-02-16 20:38:40');
+    > 40.0
+
+  **week**
+
+  The number of the week of the year that the day is in. By definition (ISO 8601), weeks start on Mondays and the first week of a year contains January 4 of that year. In other words, the first Thursday of a year is in week 1 of that year.
+
+  In the ISO definition, it is possible for early-January dates to be part of the 52nd or 53rd week of the previous year, and for late-December dates to be part of the first week of the next year. For example, 2005-01-01 is part of the 53rd week of year 2004, and 2006-01-01 is part of the 52nd week of year 2005, while 2012-12-31 is part of the first week of 2013. It's recommended to use the isoyear field together with week to get consistent results.
+
+  .. code-block:: sql
+
+    select extract(week from timestamp '2001-02-16 20:38:40');
+    > 7.0
+
+  **year**
+
+  The year field. Keep in mind there is no 0 AD, so subtracting BC years from AD years should be done with care.
+
+  .. code-block:: sql
+
+    select extract(year from timestamp '2001-02-16 20:38:40');
+    > 2001.0
+
+  The extract function is primarily intended for computational processing.
+
+  The date_part function is also supported. It is equivalent to the SQL-standard function extract:
+
+.. function:: date_part('field', source)
+
+  Note that here the field parameter needs to be a string value, not a name. The valid field names for date_part are the same as for extract.
+
+  .. code-block:: sql
+
+    select date_part('day', timestamp '2001-02-16 20:38:40');
+    > 16.0
+
+.. function:: now()
+
+  Returns current timestamp
+
+  :rtype: timestamp
+  :example:
+
+  .. code-block:: sql
+
+    select now();
+    > 2014-09-23 08:32:43.286
+
+.. function:: to_char(src timestamp, format text)
+
+  Converts timestamp to text. For more detailed, see 'Date/Time Formatting and Conversion' section below.
+
+  :param src: timestamp to be converted
+  :param format: format string
+  :rtype: text
+
+  .. code-block:: sql
+
+    select to_char(current_timestamp, 'yyyy-MM-dd');
+    > 2014-09-23
+
+.. function:: to_date(src text, format text)
+
+  Converts text to date. For more detailed, see 'Date/Time Formatting and Conversion' section below.
+
+  :param src: date string to be converted
+  :param format: format string
+  :rtype: date
+
+  .. code-block:: sql
+
+    select to_date('2014-01-04', 'YYYY-MM-DD');
+    > 2014-01-04
+
+.. function:: to_timestamp(epoch int)
+
+  Converts int(UNIX epoch) to timestamp.
+
+  :param epoch: second value from Jan. 1, 1970
+  :rtype: timestamp
+
+  .. code-block:: sql
+
+    select to_timestamp(412312345);
+    > 1983-01-25 03:12:25
+
+.. function:: to_timestamp(src text, format text)
+
+  Converts text timestamp. For more detailed, see 'Date/Time Formatting and Conversion' section below.
+
+  :param src: timestamp string to be converted
+  :param format: format string
+  :rtype: timestamp
+
+  .. code-block:: sql
+
+    select to_timestamp('97/2/16 8:14:30', 'FMYYYY/FMMM/FMDD FMHH:FMMI:FMSS');
+    > 0097-02-15 23:14:30
+
 .. function:: utc_usec_to (string text , long timestamp , int dayOfWeek)
 
   * If the **first parameter** is 'day'.
@@ -33,10 +333,115 @@ DateTime Functions and Operators
   :param long: unix timestamp in microseconds
   :param int: day of the week from 0 (Sunday) to 6 (Saturday).Optional parameter required only if first parameter is 'week'
   :rtype: long
-  :alias: utc_usec_to
   :example:
 
   .. code-block:: sql
 
     SELECT utc_usec_to('day', 1274259481071200);
-    > 1274227200000000
\ No newline at end of file
+    > 1274227200000000
+
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+Date/Time Formatting and Conversion
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
+
+*Template patterns for date/time formatting*
+
+=========================== ================================================================
+Pattern                     Description
+=========================== ================================================================
+HH                          hour of day (01-12)
+HH12                        hour of day (01-12)
+HH24                        hour of day (00-23)
+MI                          minute (00-59)
+SS                          second (00-59)
+MS                          millisecond (000-999)
+US                          microsecond (000000-999999)
+SSSS                        seconds past midnight (0-86399)
+AM, am, PM or pm            meridiem indicator (without periods)
+A.M., a.m., P.M. or p.m.    meridiem indicator (with periods)
+Y,YYY                       year (4 and more digits) with comma
+YYYY                        year (4 and more digits)
+YYY                         last 3 digits of year
+YY                          last 2 digits of year
+Y                           last digit of year
+IYYY                        ISO year (4 and more digits)
+IYY                         last 3 digits of ISO year
+IY                          last 2 digits of ISO year
+I                           last digit of ISO year
+BC, bc, AD or ad            era indicator (without periods)
+B.C., b.c., A.D. or a.d.    era indicator (with periods)
+MONTH                       full upper case month name (blank-padded to 9 chars)
+Month                       full capitalized month name (blank-padded to 9 chars)
+month                       full lower case month name (blank-padded to 9 chars)
+MON                         abbreviated upper case month name (3 chars in English, localized lengths vary)
+Mon                         abbreviated capitalized month name (3 chars in English, localized lengths vary)
+mon                         abbreviated lower case month name (3 chars in English, localized lengths vary)
+MM                          month number (01-12)
+DAY                         full upper case day name (blank-padded to 9 chars)
+Day                         full capitalized day name (blank-padded to 9 chars)
+day                         full lower case day name (blank-padded to 9 chars)
+DY                          abbreviated upper case day name (3 chars in English, localized lengths vary)
+Dy                          abbreviated capitalized day name (3 chars in English, localized lengths vary)
+dy                          abbreviated lower case day name (3 chars in English, localized lengths vary)
+DDD                         day of year (001-366)
+IDDD                        ISO day of year (001-371; day 1 of the year is Monday of the first ISO week.)
+DD                          day of month (01-31)
+D                           day of the week, Sunday(1) to Saturday(7)
+ID                          ISO day of the week, Monday(1) to Sunday(7)
+W                           week of month (1-5) (The first week starts on the first day of the month.)
+WW                          week number of year (1-53) (The first week starts on the first day of the year.)
+IW                          ISO week number of year (01 - 53; the first Thursday of the new year is in week 1.)
+CC                          century (2 digits) (The twenty-first century starts on 2001-01-01.)
+J                           Julian Day (integer days since November 24, 4714 BC at midnight UTC)
+Q                           quarter (ignored by to_date and to_timestamp)
+RM                          month in upper case Roman numerals (I-XII; I=January)
+rm                          month in lower case Roman numerals (i-xii; i=January)
+TZ                          upper case time-zone name
+tz                          lower case time-zone name
+=========================== ================================================================
+
+
+*Template pattern modifiers for date/time formatting*
+
+=========== ======================================================================= ================
+Modifier    Description                                                             Example
+=========== ======================================================================= ================
+FM prefix   fill mode (suppress padding blanks and trailing zeroes)                 FMMonth
+TH suffix   upper case ordinal number suffix    DDTH, e.g.,                         12TH
+th suffix   lower case ordinal number suffix    DDth, e.g.,                         12th
+FX prefix   fixed format global option (see usage notes)                            FX Month DD Day
+TM prefix   translation mode (print localized day and month names based on lc_time) TMMonth
+SP suffix   spell mode (not implemented)                                            DDSP
+=========== ======================================================================= ================
+
+  * FM suppresses leading zeroes and trailing blanks that would otherwise be added to make the output of a pattern be fixed-width. In Tajo, FM modifies only the next specification, while in Oracle FM affects all subsequent specifications, and repeated FM modifiers toggle fill mode on and off.
+
+  * TM does not include trailing blanks.
+
+  * *to_timestamp* and *to_date* skip multiple blank spaces in the input string unless the FX option is used. For example, *to_timestamp* ('2000    JUN', 'YYYY MON') works, but *to_timestamp* ('2000    JUN', 'FXYYYY MON') returns an error because *to_timestamp* expects one space only. FX must be specified as the first item in the template.
+
+  * Ordinary text is allowed in *to_char* templates and will be output literally. You can put a substring in double quotes to force it to be interpreted as literal text even if it contains pattern key words. For example, in '"Hello Year "YYYY', the YYYY will be replaced by the year data, but the single Y in Year will not be. In *to_date*, to_number, and *to_timestamp*, double-quoted strings skip the number of input characters contained in the string, e.g. "XX" skips two input characters.
+
+  * If you want to have a double quote in the output you must precede it with a backslash, for example '\"YYYY Month\"'.
+
+  * If the year format specification is less than four digits, e.g. YYY, and the supplied year is less than four digits, the year will be adjusted to be nearest to the year 2020, e.g. 95 becomes 1995.
+
+  * The YYYY conversion from string to timestamp or date has a restriction when processing years with more than 4 digits. You must use some non-digit character or template after YYYY, otherwise the year is always interpreted as 4 digits. For example (with the year 20000): *to_date* ('200001131', 'YYYYMMDD') will be interpreted as a 4-digit year; instead use a non-digit separator after the year, like *to_date* ('20000-1131', 'YYYY-MMDD') or *to_date* ('20000Nov31', 'YYYYMonDD').
+
+  * In conversions from string to timestamp or date, the CC (century) field is ignored if there is a YYY, YYYY or Y,YYY field. If CC is used with YY or Y then the year is computed as the year in the specified century. If the century is specified but the year is not, the first year of the century is assumed.
+
+  * An ISO week date (as distinct from a Gregorian date) can be specified to *to_timestamp* and *to_date* in one of two ways:
+
+  * Year, week, and weekday: for example *to_date* ('2006-42-4', 'IYYY-IW-ID') returns the date 2006-10-19. If you omit the weekday it is assumed to be 1 (Monday).
+
+  * Year and day of year: for example *to_date* ('2006-291', 'IYYY-IDDD') also returns 2006-10-19.
+
+  * Attempting to construct a date using a mixture of ISO week and Gregorian date fields is nonsensical, and will cause an error. In the context of an ISO year, the concept of a "month" or "day of month" has no meaning. In the context of a Gregorian year, the ISO week has no meaning. Users should avoid mixing Gregorian and ISO date specifications.
+
+  * In a conversion from string to timestamp, millisecond (MS) or microsecond (US) values are used as the seconds digits after the decimal point. For example *to_timestamp* ('12:3', 'SS:MS') is not 3 milliseconds, but 300, because the conversion counts it as 12 + 0.3 seconds. This means for the format SS:MS, the input values 12:3, 12:30, and 12:300 specify the same number of milliseconds. To get three milliseconds, one must use 12:003, which the conversion counts as 12 + 0.003 = 12.003 seconds.
+
+  * Here is a more complex example: *to_timestamp* ('15:12:02.020.001230', 'HH:MI:SS.MS.US') is 15 hours, 12 minutes, and 2 seconds + 20 milliseconds + 1230 microseconds = 2.021230 seconds.
+
+  * *to_char* (..., 'ID')'s day of the week numbering matches the extract(isodow from ...) function, but *to_char* (..., 'D')'s does not match extract(dow from ...)'s day numbering.
+
+  * *to_char* (interval) formats HH and HH12 as shown on a 12-hour clock, i.e. zero hours and 36 hours output as 12, while HH24 outputs the full hour value, which can exceed 23 for intervals.

Modified: tajo/site/docs/current/_sources/getting_started/downloading_source.txt
URL: http://svn.apache.org/viewvc/tajo/site/docs/current/_sources/getting_started/downloading_source.txt?rev=1630531&r1=1630530&r2=1630531&view=diff
==============================================================================
--- tajo/site/docs/current/_sources/getting_started/downloading_source.txt (original)
+++ tajo/site/docs/current/_sources/getting_started/downloading_source.txt Thu Oct  9 16:42:37 2014
@@ -1,23 +1,23 @@
-****************************************************
-Dowload and unpack the source code of Apache Tajo
-****************************************************
+*************************************
+Dowload and unpack the source code
+*************************************
 
-You can get either the source code release of Apache Tajo or check out the development code base from Git.
+You can either download the source code release of Tajo or check out the development codebase from Git.
 
 ================================================
-Dowload the latest source release
+Download the latest source release
 ================================================
 
 Choose a download site from this list of `Apache Download Mirrors <http://www.apache.org/dyn/closer.cgi/tajo>`_.
 Click on the suggested mirror link. This will take you to a mirror of Tajo Releases. 
-Download the file that ends in .tar.gz to your local filesystem; e.g. tajo-x.y.z-src.tar.gz.
+Download the file that ends in .tar.gz to your local filesystem, e.g. tajo-x.y.z-src.tar.gz.
 
-Decompress and untar your download and then change into the unpacked directory. ::
+Decompress and untar your downloaded file and then change into the unpacked directory. ::
 
   tar xzvf tajo-x.y.z-src.tar.gz
 
 ================================================
-Get the source code via Git
+Check out the source code via Git
 ================================================
 
 The development codebase can also be downloaded from `the Apache git repository <https://git-wip-us.apache.org/repos/asf/tajo.git>`_ as follows: ::
@@ -26,7 +26,6 @@ The development codebase can also be dow
 
 A read-only git repository is also mirrored on `Github <https://github.com/apache/tajo>`_.
 
-Once you have downloaded Tajo, follow the `getting started instructions <http://tajo.apache.org/tajo-0.8.0-doc.html#GettingStarted>`_, and take a look at the rest of the Tajo documentation.
 
 
 

Modified: tajo/site/docs/current/_sources/index.txt
URL: http://svn.apache.org/viewvc/tajo/site/docs/current/_sources/index.txt?rev=1630531&r1=1630530&r2=1630531&view=diff
==============================================================================
--- tajo/site/docs/current/_sources/index.txt (original)
+++ tajo/site/docs/current/_sources/index.txt Thu Oct  9 16:42:37 2014
@@ -31,7 +31,7 @@ Table of Contents:
    introduction
    getting_started
    configuration
-   cli
+   tsql
    sql_language
    functions
    table_management

Modified: tajo/site/docs/current/backup_and_restore.html
URL: http://svn.apache.org/viewvc/tajo/site/docs/current/backup_and_restore.html?rev=1630531&r1=1630530&r2=1630531&view=diff
==============================================================================
--- tajo/site/docs/current/backup_and_restore.html (original)
+++ tajo/site/docs/current/backup_and_restore.html Thu Oct  9 16:42:37 2014
@@ -61,7 +61,7 @@
 <li class="toctree-l1"><a class="reference internal" href="introduction.html">Introduction</a></li>
 <li class="toctree-l1"><a class="reference internal" href="getting_started.html">Getting Started</a><ul>
 <li class="toctree-l2"><a class="reference internal" href="getting_started/prerequisites.html">Prerequisites</a></li>
-<li class="toctree-l2"><a class="reference internal" href="getting_started/downloading_source.html">Dowload and unpack the source code of Apache Tajo</a></li>
+<li class="toctree-l2"><a class="reference internal" href="getting_started/downloading_source.html">Dowload and unpack the source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="getting_started/building.html">Build source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="getting_started/local_setup.html">Setting up a local Tajo cluster</a></li>
 <li class="toctree-l2"><a class="reference internal" href="getting_started/first_query.html">First query execution</a></li>
@@ -77,10 +77,15 @@
 <li class="toctree-l2"><a class="reference internal" href="configuration/ha_configuration.html">High Availability for TajoMaster</a></li>
 </ul>
 </li>
-<li class="toctree-l1"><a class="reference internal" href="cli.html">Tajo Shell (TSQL)</a><ul>
-<li class="toctree-l2"><a class="reference internal" href="cli.html#synopsis">Synopsis</a></li>
-<li class="toctree-l2"><a class="reference internal" href="cli.html#entering-tsql-shell">Entering tsql shell</a></li>
-<li class="toctree-l2"><a class="reference internal" href="cli.html#meta-commands">Meta Commands</a></li>
+<li class="toctree-l1"><a class="reference internal" href="tsql.html">Tajo Shell (TSQL)</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="tsql/meta_command.html">Meta Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/dfs_command.html">Executing HDFS commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/variables.html">Session Variables</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/admin_command.html">Administration Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/intro.html">Introducing to TSQL</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/single_command.html">Executing a single command</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/execute_file.html">Executing Queries from Files</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/background_command.html">Executing as background process</a></li>
 </ul>
 </li>
 <li class="toctree-l1"><a class="reference internal" href="sql_language.html">SQL Language</a><ul>

Modified: tajo/site/docs/current/backup_and_restore/catalog.html
URL: http://svn.apache.org/viewvc/tajo/site/docs/current/backup_and_restore/catalog.html?rev=1630531&r1=1630530&r2=1630531&view=diff
==============================================================================
--- tajo/site/docs/current/backup_and_restore/catalog.html (original)
+++ tajo/site/docs/current/backup_and_restore/catalog.html Thu Oct  9 16:42:37 2014
@@ -62,7 +62,7 @@
 <li class="toctree-l1"><a class="reference internal" href="../introduction.html">Introduction</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../getting_started.html">Getting Started</a><ul>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/prerequisites.html">Prerequisites</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../getting_started/downloading_source.html">Dowload and unpack the source code of Apache Tajo</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../getting_started/downloading_source.html">Dowload and unpack the source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/building.html">Build source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/local_setup.html">Setting up a local Tajo cluster</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/first_query.html">First query execution</a></li>
@@ -78,10 +78,15 @@
 <li class="toctree-l2"><a class="reference internal" href="../configuration/ha_configuration.html">High Availability for TajoMaster</a></li>
 </ul>
 </li>
-<li class="toctree-l1"><a class="reference internal" href="../cli.html">Tajo Shell (TSQL)</a><ul>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#synopsis">Synopsis</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#entering-tsql-shell">Entering tsql shell</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#meta-commands">Meta Commands</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../tsql.html">Tajo Shell (TSQL)</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/meta_command.html">Meta Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/dfs_command.html">Executing HDFS commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/variables.html">Session Variables</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/admin_command.html">Administration Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/intro.html">Introducing to TSQL</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/single_command.html">Executing a single command</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/execute_file.html">Executing Queries from Files</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/background_command.html">Executing as background process</a></li>
 </ul>
 </li>
 <li class="toctree-l1"><a class="reference internal" href="../sql_language.html">SQL Language</a><ul>

Modified: tajo/site/docs/current/configuration.html
URL: http://svn.apache.org/viewvc/tajo/site/docs/current/configuration.html?rev=1630531&r1=1630530&r2=1630531&view=diff
==============================================================================
--- tajo/site/docs/current/configuration.html (original)
+++ tajo/site/docs/current/configuration.html Thu Oct  9 16:42:37 2014
@@ -61,7 +61,7 @@
 <li class="toctree-l1"><a class="reference internal" href="introduction.html">Introduction</a></li>
 <li class="toctree-l1"><a class="reference internal" href="getting_started.html">Getting Started</a><ul>
 <li class="toctree-l2"><a class="reference internal" href="getting_started/prerequisites.html">Prerequisites</a></li>
-<li class="toctree-l2"><a class="reference internal" href="getting_started/downloading_source.html">Dowload and unpack the source code of Apache Tajo</a></li>
+<li class="toctree-l2"><a class="reference internal" href="getting_started/downloading_source.html">Dowload and unpack the source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="getting_started/building.html">Build source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="getting_started/local_setup.html">Setting up a local Tajo cluster</a></li>
 <li class="toctree-l2"><a class="reference internal" href="getting_started/first_query.html">First query execution</a></li>
@@ -77,10 +77,15 @@
 <li class="toctree-l2"><a class="reference internal" href="configuration/ha_configuration.html">High Availability for TajoMaster</a></li>
 </ul>
 </li>
-<li class="toctree-l1"><a class="reference internal" href="cli.html">Tajo Shell (TSQL)</a><ul>
-<li class="toctree-l2"><a class="reference internal" href="cli.html#synopsis">Synopsis</a></li>
-<li class="toctree-l2"><a class="reference internal" href="cli.html#entering-tsql-shell">Entering tsql shell</a></li>
-<li class="toctree-l2"><a class="reference internal" href="cli.html#meta-commands">Meta Commands</a></li>
+<li class="toctree-l1"><a class="reference internal" href="tsql.html">Tajo Shell (TSQL)</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="tsql/meta_command.html">Meta Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/dfs_command.html">Executing HDFS commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/variables.html">Session Variables</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/admin_command.html">Administration Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/intro.html">Introducing to TSQL</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/single_command.html">Executing a single command</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/execute_file.html">Executing Queries from Files</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/background_command.html">Executing as background process</a></li>
 </ul>
 </li>
 <li class="toctree-l1"><a class="reference internal" href="sql_language.html">SQL Language</a><ul>

Modified: tajo/site/docs/current/configuration/catalog_configuration.html
URL: http://svn.apache.org/viewvc/tajo/site/docs/current/configuration/catalog_configuration.html?rev=1630531&r1=1630530&r2=1630531&view=diff
==============================================================================
--- tajo/site/docs/current/configuration/catalog_configuration.html (original)
+++ tajo/site/docs/current/configuration/catalog_configuration.html Thu Oct  9 16:42:37 2014
@@ -62,7 +62,7 @@
 <li class="toctree-l1"><a class="reference internal" href="../introduction.html">Introduction</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../getting_started.html">Getting Started</a><ul>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/prerequisites.html">Prerequisites</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../getting_started/downloading_source.html">Dowload and unpack the source code of Apache Tajo</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../getting_started/downloading_source.html">Dowload and unpack the source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/building.html">Build source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/local_setup.html">Setting up a local Tajo cluster</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/first_query.html">First query execution</a></li>
@@ -78,10 +78,15 @@
 <li class="toctree-l2"><a class="reference internal" href="ha_configuration.html">High Availability for TajoMaster</a></li>
 </ul>
 </li>
-<li class="toctree-l1"><a class="reference internal" href="../cli.html">Tajo Shell (TSQL)</a><ul>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#synopsis">Synopsis</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#entering-tsql-shell">Entering tsql shell</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#meta-commands">Meta Commands</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../tsql.html">Tajo Shell (TSQL)</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/meta_command.html">Meta Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/dfs_command.html">Executing HDFS commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/variables.html">Session Variables</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/admin_command.html">Administration Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/intro.html">Introducing to TSQL</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/single_command.html">Executing a single command</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/execute_file.html">Executing Queries from Files</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/background_command.html">Executing as background process</a></li>
 </ul>
 </li>
 <li class="toctree-l1"><a class="reference internal" href="../sql_language.html">SQL Language</a><ul>

Modified: tajo/site/docs/current/configuration/cluster_setup.html
URL: http://svn.apache.org/viewvc/tajo/site/docs/current/configuration/cluster_setup.html?rev=1630531&r1=1630530&r2=1630531&view=diff
==============================================================================
--- tajo/site/docs/current/configuration/cluster_setup.html (original)
+++ tajo/site/docs/current/configuration/cluster_setup.html Thu Oct  9 16:42:37 2014
@@ -62,7 +62,7 @@
 <li class="toctree-l1"><a class="reference internal" href="../introduction.html">Introduction</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../getting_started.html">Getting Started</a><ul>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/prerequisites.html">Prerequisites</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../getting_started/downloading_source.html">Dowload and unpack the source code of Apache Tajo</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../getting_started/downloading_source.html">Dowload and unpack the source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/building.html">Build source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/local_setup.html">Setting up a local Tajo cluster</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/first_query.html">First query execution</a></li>
@@ -78,10 +78,15 @@
 <li class="toctree-l2"><a class="reference internal" href="ha_configuration.html">High Availability for TajoMaster</a></li>
 </ul>
 </li>
-<li class="toctree-l1"><a class="reference internal" href="../cli.html">Tajo Shell (TSQL)</a><ul>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#synopsis">Synopsis</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#entering-tsql-shell">Entering tsql shell</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#meta-commands">Meta Commands</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../tsql.html">Tajo Shell (TSQL)</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/meta_command.html">Meta Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/dfs_command.html">Executing HDFS commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/variables.html">Session Variables</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/admin_command.html">Administration Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/intro.html">Introducing to TSQL</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/single_command.html">Executing a single command</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/execute_file.html">Executing Queries from Files</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/background_command.html">Executing as background process</a></li>
 </ul>
 </li>
 <li class="toctree-l1"><a class="reference internal" href="../sql_language.html">SQL Language</a><ul>

Modified: tajo/site/docs/current/configuration/configuration_defaults.html
URL: http://svn.apache.org/viewvc/tajo/site/docs/current/configuration/configuration_defaults.html?rev=1630531&r1=1630530&r2=1630531&view=diff
==============================================================================
--- tajo/site/docs/current/configuration/configuration_defaults.html (original)
+++ tajo/site/docs/current/configuration/configuration_defaults.html Thu Oct  9 16:42:37 2014
@@ -62,7 +62,7 @@
 <li class="toctree-l1"><a class="reference internal" href="../introduction.html">Introduction</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../getting_started.html">Getting Started</a><ul>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/prerequisites.html">Prerequisites</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../getting_started/downloading_source.html">Dowload and unpack the source code of Apache Tajo</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../getting_started/downloading_source.html">Dowload and unpack the source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/building.html">Build source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/local_setup.html">Setting up a local Tajo cluster</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/first_query.html">First query execution</a></li>
@@ -78,10 +78,15 @@
 <li class="toctree-l2"><a class="reference internal" href="ha_configuration.html">High Availability for TajoMaster</a></li>
 </ul>
 </li>
-<li class="toctree-l1"><a class="reference internal" href="../cli.html">Tajo Shell (TSQL)</a><ul>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#synopsis">Synopsis</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#entering-tsql-shell">Entering tsql shell</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#meta-commands">Meta Commands</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../tsql.html">Tajo Shell (TSQL)</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/meta_command.html">Meta Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/dfs_command.html">Executing HDFS commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/variables.html">Session Variables</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/admin_command.html">Administration Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/intro.html">Introducing to TSQL</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/single_command.html">Executing a single command</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/execute_file.html">Executing Queries from Files</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/background_command.html">Executing as background process</a></li>
 </ul>
 </li>
 <li class="toctree-l1"><a class="reference internal" href="../sql_language.html">SQL Language</a><ul>

Modified: tajo/site/docs/current/configuration/ha_configuration.html
URL: http://svn.apache.org/viewvc/tajo/site/docs/current/configuration/ha_configuration.html?rev=1630531&r1=1630530&r2=1630531&view=diff
==============================================================================
--- tajo/site/docs/current/configuration/ha_configuration.html (original)
+++ tajo/site/docs/current/configuration/ha_configuration.html Thu Oct  9 16:42:37 2014
@@ -30,7 +30,7 @@
   
     <link rel="top" title="Apache Tajo 0.8.0 documentation" href="../index.html"/>
         <link rel="up" title="Configuration" href="../configuration.html"/>
-        <link rel="next" title="Tajo Shell (TSQL)" href="../cli.html"/>
+        <link rel="next" title="Tajo Shell (TSQL)" href="../tsql.html"/>
         <link rel="prev" title="Configuration Defaults" href="configuration_defaults.html"/> 
 
   
@@ -62,7 +62,7 @@
 <li class="toctree-l1"><a class="reference internal" href="../introduction.html">Introduction</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../getting_started.html">Getting Started</a><ul>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/prerequisites.html">Prerequisites</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../getting_started/downloading_source.html">Dowload and unpack the source code of Apache Tajo</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../getting_started/downloading_source.html">Dowload and unpack the source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/building.html">Build source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/local_setup.html">Setting up a local Tajo cluster</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/first_query.html">First query execution</a></li>
@@ -78,10 +78,15 @@
 <li class="toctree-l2 current"><a class="current reference internal" href="">High Availability for TajoMaster</a></li>
 </ul>
 </li>
-<li class="toctree-l1"><a class="reference internal" href="../cli.html">Tajo Shell (TSQL)</a><ul>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#synopsis">Synopsis</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#entering-tsql-shell">Entering tsql shell</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#meta-commands">Meta Commands</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../tsql.html">Tajo Shell (TSQL)</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/meta_command.html">Meta Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/dfs_command.html">Executing HDFS commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/variables.html">Session Variables</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/admin_command.html">Administration Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/intro.html">Introducing to TSQL</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/single_command.html">Executing a single command</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/execute_file.html">Executing Queries from Files</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/background_command.html">Executing as background process</a></li>
 </ul>
 </li>
 <li class="toctree-l1"><a class="reference internal" href="../sql_language.html">SQL Language</a><ul>
@@ -209,7 +214,7 @@ host2.domain.com
 <p>And then, you need to setup tarball and set configuration files on backup masters.</p>
 <div class="admonition note">
 <p class="first admonition-title">Note</p>
-<p>If you want to run active master and backup master on the same host, you may find tajo master port conflicts. To avoid this problem, you must convert backup master primary ports to another port in <tt class="docutils literal"><span class="pre">tajo-site.xml</span></tt> as follows:</p>
+<p>If you want to run active master and backup master on the same host, you may find TajoMaster port conflicts. To avoid this problem, you must convert backup master primary ports to another port in <tt class="docutils literal"><span class="pre">tajo-site.xml</span></tt> as follows:</p>
 <div class="highlight-xml"><div class="highlight"><pre><span class="nt">&lt;property&gt;</span>
   <span class="nt">&lt;name&gt;</span>tajo.master.umbilical-rpc.address<span class="nt">&lt;/name&gt;</span>
   <span class="nt">&lt;value&gt;</span>localhost:36001<span class="nt">&lt;/value&gt;</span>
@@ -252,7 +257,7 @@ host2.domain.com
 </div>
 <div class="admonition note">
 <p class="first admonition-title">Note</p>
-<p class="last">You can&#8217;t use HA mode in DerbyStore. Currently, just one tajo master invoke the derby. If another master try to invoke it, it never run itself. Also, if you set another catalog uri for backup master, it is a incorrect configuration. Because they are unequal in every way.</p>
+<p class="last">You can&#8217;t use HA mode in DerbyStore. Currently, just one TajoMaster invoke the derby. If another master try to invoke it, it never run itself. Also, if you set another catalog uri for backup master, it is a incorrect configuration. Because they are unequal in every way.</p>
 </div>
 </div>
 <div class="section" id="administration-ha-state">
@@ -275,7 +280,16 @@ host2.domain.com
 </div>
 <div class="admonition note">
 <p class="first admonition-title">Note</p>
-<p class="last">Before format HA, you must shutdown the tajo cluster.</p>
+<p class="last">Before format HA, you must shutdown the Tajo cluster.</p>
+</div>
+</div>
+<div class="section" id="how-to-test-automatic-failover">
+<h2>How to Test Automatic Failover<a class="headerlink" href="#how-to-test-automatic-failover" title="Permalink to this headline">¶</a></h2>
+<p>If you want to verify automatic failover of TajoMaster, you must deploy your Tajo cluster with TajoMaster HA enable. And then, you need to find which node is active from Tajo web UI.</p>
+<p>Once you find your active TajoMaster, you can cause a failure on that node. For example, you can use kill -9 &lt;pid of TajoMaster&gt; to simulate a JVM crash. Or you can shutdown the machine or disconnect network interface. And then, the backup TajoMaster will be automatically active within 5 seconds. The amount of time required to detect a failure and  trigger a failover depends on the config <tt class="docutils literal"><span class="pre">tajo.master.ha.monitor.interval</span></tt>. If there is running queries, it will be finished successfully. Because your TajoClient will get the result data on TajoWorker. But you can&#8217;t find already query history. Because TajoMaster stores query history on memory. So, the other master can&#8217;t access already active master query history. And if there is no running query, the automatic failover run successfully.</p>
+<div class="admonition note">
+<p class="first admonition-title">Note</p>
+<p class="last">TajoMaster HA does not consider TajoWorker failure. It guarantees the high availability of both TajoResourceManager and QueryMaster.</p>
 </div>
 </div>
 </div>
@@ -286,7 +300,7 @@ host2.domain.com
   
     <div class="rst-footer-buttons" role="navigation" aria-label="footer navigation">
       
-        <a href="../cli.html" class="btn btn-neutral float-right" title="Tajo Shell (TSQL)"/>Next <span class="fa fa-arrow-circle-right"></span></a>
+        <a href="../tsql.html" class="btn btn-neutral float-right" title="Tajo Shell (TSQL)"/>Next <span class="fa fa-arrow-circle-right"></span></a>
       
       
         <a href="configuration_defaults.html" class="btn btn-neutral" title="Configuration Defaults"><span class="fa fa-arrow-circle-left"></span> Previous</a>

Modified: tajo/site/docs/current/configuration/preliminary.html
URL: http://svn.apache.org/viewvc/tajo/site/docs/current/configuration/preliminary.html?rev=1630531&r1=1630530&r2=1630531&view=diff
==============================================================================
--- tajo/site/docs/current/configuration/preliminary.html (original)
+++ tajo/site/docs/current/configuration/preliminary.html Thu Oct  9 16:42:37 2014
@@ -62,7 +62,7 @@
 <li class="toctree-l1"><a class="reference internal" href="../introduction.html">Introduction</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../getting_started.html">Getting Started</a><ul>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/prerequisites.html">Prerequisites</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../getting_started/downloading_source.html">Dowload and unpack the source code of Apache Tajo</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../getting_started/downloading_source.html">Dowload and unpack the source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/building.html">Build source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/local_setup.html">Setting up a local Tajo cluster</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/first_query.html">First query execution</a></li>
@@ -78,10 +78,15 @@
 <li class="toctree-l2"><a class="reference internal" href="ha_configuration.html">High Availability for TajoMaster</a></li>
 </ul>
 </li>
-<li class="toctree-l1"><a class="reference internal" href="../cli.html">Tajo Shell (TSQL)</a><ul>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#synopsis">Synopsis</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#entering-tsql-shell">Entering tsql shell</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#meta-commands">Meta Commands</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../tsql.html">Tajo Shell (TSQL)</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/meta_command.html">Meta Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/dfs_command.html">Executing HDFS commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/variables.html">Session Variables</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/admin_command.html">Administration Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/intro.html">Introducing to TSQL</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/single_command.html">Executing a single command</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/execute_file.html">Executing Queries from Files</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/background_command.html">Executing as background process</a></li>
 </ul>
 </li>
 <li class="toctree-l1"><a class="reference internal" href="../sql_language.html">SQL Language</a><ul>

Modified: tajo/site/docs/current/configuration/tajo_master_configuration.html
URL: http://svn.apache.org/viewvc/tajo/site/docs/current/configuration/tajo_master_configuration.html?rev=1630531&r1=1630530&r2=1630531&view=diff
==============================================================================
--- tajo/site/docs/current/configuration/tajo_master_configuration.html (original)
+++ tajo/site/docs/current/configuration/tajo_master_configuration.html Thu Oct  9 16:42:37 2014
@@ -62,7 +62,7 @@
 <li class="toctree-l1"><a class="reference internal" href="../introduction.html">Introduction</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../getting_started.html">Getting Started</a><ul>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/prerequisites.html">Prerequisites</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../getting_started/downloading_source.html">Dowload and unpack the source code of Apache Tajo</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../getting_started/downloading_source.html">Dowload and unpack the source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/building.html">Build source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/local_setup.html">Setting up a local Tajo cluster</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/first_query.html">First query execution</a></li>
@@ -78,10 +78,15 @@
 <li class="toctree-l2"><a class="reference internal" href="ha_configuration.html">High Availability for TajoMaster</a></li>
 </ul>
 </li>
-<li class="toctree-l1"><a class="reference internal" href="../cli.html">Tajo Shell (TSQL)</a><ul>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#synopsis">Synopsis</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#entering-tsql-shell">Entering tsql shell</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#meta-commands">Meta Commands</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../tsql.html">Tajo Shell (TSQL)</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/meta_command.html">Meta Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/dfs_command.html">Executing HDFS commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/variables.html">Session Variables</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/admin_command.html">Administration Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/intro.html">Introducing to TSQL</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/single_command.html">Executing a single command</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/execute_file.html">Executing Queries from Files</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/background_command.html">Executing as background process</a></li>
 </ul>
 </li>
 <li class="toctree-l1"><a class="reference internal" href="../sql_language.html">SQL Language</a><ul>

Modified: tajo/site/docs/current/configuration/worker_configuration.html
URL: http://svn.apache.org/viewvc/tajo/site/docs/current/configuration/worker_configuration.html?rev=1630531&r1=1630530&r2=1630531&view=diff
==============================================================================
--- tajo/site/docs/current/configuration/worker_configuration.html (original)
+++ tajo/site/docs/current/configuration/worker_configuration.html Thu Oct  9 16:42:37 2014
@@ -62,7 +62,7 @@
 <li class="toctree-l1"><a class="reference internal" href="../introduction.html">Introduction</a></li>
 <li class="toctree-l1"><a class="reference internal" href="../getting_started.html">Getting Started</a><ul>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/prerequisites.html">Prerequisites</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../getting_started/downloading_source.html">Dowload and unpack the source code of Apache Tajo</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../getting_started/downloading_source.html">Dowload and unpack the source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/building.html">Build source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/local_setup.html">Setting up a local Tajo cluster</a></li>
 <li class="toctree-l2"><a class="reference internal" href="../getting_started/first_query.html">First query execution</a></li>
@@ -78,10 +78,15 @@
 <li class="toctree-l2"><a class="reference internal" href="ha_configuration.html">High Availability for TajoMaster</a></li>
 </ul>
 </li>
-<li class="toctree-l1"><a class="reference internal" href="../cli.html">Tajo Shell (TSQL)</a><ul>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#synopsis">Synopsis</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#entering-tsql-shell">Entering tsql shell</a></li>
-<li class="toctree-l2"><a class="reference internal" href="../cli.html#meta-commands">Meta Commands</a></li>
+<li class="toctree-l1"><a class="reference internal" href="../tsql.html">Tajo Shell (TSQL)</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/meta_command.html">Meta Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/dfs_command.html">Executing HDFS commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/variables.html">Session Variables</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/admin_command.html">Administration Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/intro.html">Introducing to TSQL</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/single_command.html">Executing a single command</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/execute_file.html">Executing Queries from Files</a></li>
+<li class="toctree-l2"><a class="reference internal" href="../tsql/background_command.html">Executing as background process</a></li>
 </ul>
 </li>
 <li class="toctree-l1"><a class="reference internal" href="../sql_language.html">SQL Language</a><ul>

Modified: tajo/site/docs/current/faq.html
URL: http://svn.apache.org/viewvc/tajo/site/docs/current/faq.html?rev=1630531&r1=1630530&r2=1630531&view=diff
==============================================================================
--- tajo/site/docs/current/faq.html (original)
+++ tajo/site/docs/current/faq.html Thu Oct  9 16:42:37 2014
@@ -60,7 +60,7 @@
 <li class="toctree-l1"><a class="reference internal" href="introduction.html">Introduction</a></li>
 <li class="toctree-l1"><a class="reference internal" href="getting_started.html">Getting Started</a><ul>
 <li class="toctree-l2"><a class="reference internal" href="getting_started/prerequisites.html">Prerequisites</a></li>
-<li class="toctree-l2"><a class="reference internal" href="getting_started/downloading_source.html">Dowload and unpack the source code of Apache Tajo</a></li>
+<li class="toctree-l2"><a class="reference internal" href="getting_started/downloading_source.html">Dowload and unpack the source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="getting_started/building.html">Build source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="getting_started/local_setup.html">Setting up a local Tajo cluster</a></li>
 <li class="toctree-l2"><a class="reference internal" href="getting_started/first_query.html">First query execution</a></li>
@@ -76,10 +76,15 @@
 <li class="toctree-l2"><a class="reference internal" href="configuration/ha_configuration.html">High Availability for TajoMaster</a></li>
 </ul>
 </li>
-<li class="toctree-l1"><a class="reference internal" href="cli.html">Tajo Shell (TSQL)</a><ul>
-<li class="toctree-l2"><a class="reference internal" href="cli.html#synopsis">Synopsis</a></li>
-<li class="toctree-l2"><a class="reference internal" href="cli.html#entering-tsql-shell">Entering tsql shell</a></li>
-<li class="toctree-l2"><a class="reference internal" href="cli.html#meta-commands">Meta Commands</a></li>
+<li class="toctree-l1"><a class="reference internal" href="tsql.html">Tajo Shell (TSQL)</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="tsql/meta_command.html">Meta Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/dfs_command.html">Executing HDFS commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/variables.html">Session Variables</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/admin_command.html">Administration Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/intro.html">Introducing to TSQL</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/single_command.html">Executing a single command</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/execute_file.html">Executing Queries from Files</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/background_command.html">Executing as background process</a></li>
 </ul>
 </li>
 <li class="toctree-l1"><a class="reference internal" href="sql_language.html">SQL Language</a><ul>

Modified: tajo/site/docs/current/functions.html
URL: http://svn.apache.org/viewvc/tajo/site/docs/current/functions.html?rev=1630531&r1=1630530&r2=1630531&view=diff
==============================================================================
--- tajo/site/docs/current/functions.html (original)
+++ tajo/site/docs/current/functions.html Thu Oct  9 16:42:37 2014
@@ -61,7 +61,7 @@
 <li class="toctree-l1"><a class="reference internal" href="introduction.html">Introduction</a></li>
 <li class="toctree-l1"><a class="reference internal" href="getting_started.html">Getting Started</a><ul>
 <li class="toctree-l2"><a class="reference internal" href="getting_started/prerequisites.html">Prerequisites</a></li>
-<li class="toctree-l2"><a class="reference internal" href="getting_started/downloading_source.html">Dowload and unpack the source code of Apache Tajo</a></li>
+<li class="toctree-l2"><a class="reference internal" href="getting_started/downloading_source.html">Dowload and unpack the source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="getting_started/building.html">Build source code</a></li>
 <li class="toctree-l2"><a class="reference internal" href="getting_started/local_setup.html">Setting up a local Tajo cluster</a></li>
 <li class="toctree-l2"><a class="reference internal" href="getting_started/first_query.html">First query execution</a></li>
@@ -77,10 +77,15 @@
 <li class="toctree-l2"><a class="reference internal" href="configuration/ha_configuration.html">High Availability for TajoMaster</a></li>
 </ul>
 </li>
-<li class="toctree-l1"><a class="reference internal" href="cli.html">Tajo Shell (TSQL)</a><ul>
-<li class="toctree-l2"><a class="reference internal" href="cli.html#synopsis">Synopsis</a></li>
-<li class="toctree-l2"><a class="reference internal" href="cli.html#entering-tsql-shell">Entering tsql shell</a></li>
-<li class="toctree-l2"><a class="reference internal" href="cli.html#meta-commands">Meta Commands</a></li>
+<li class="toctree-l1"><a class="reference internal" href="tsql.html">Tajo Shell (TSQL)</a><ul>
+<li class="toctree-l2"><a class="reference internal" href="tsql/meta_command.html">Meta Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/dfs_command.html">Executing HDFS commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/variables.html">Session Variables</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/admin_command.html">Administration Commands</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/intro.html">Introducing to TSQL</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/single_command.html">Executing a single command</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/execute_file.html">Executing Queries from Files</a></li>
+<li class="toctree-l2"><a class="reference internal" href="tsql/background_command.html">Executing as background process</a></li>
 </ul>
 </li>
 <li class="toctree-l1"><a class="reference internal" href="sql_language.html">SQL Language</a><ul>



Mime
View raw message