[
https://issues.apache.org/jira/browse/TAJO-1062?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14148682#comment-14148682
]
ASF GitHub Bot commented on TAJO-1062:
--------------------------------------
Github user mhthanh commented on a diff in the pull request:
https://github.com/apache/tajo/pull/156#discussion_r18072638
--- Diff: tajo-docs/src/main/sphinx/tsql/intro.rst ---
@@ -0,0 +1,41 @@
+*****************************
+Introducing to TSQL
+*****************************
+
+==========
+Synopsis
+==========
+
+.. code-block:: bash
+
+ bin/tsql [options] [database name]
+
+If a *database_name* is given, tsql connects to the database at startup
time. Otherwise, tsql connects to ``default`` database.
+
+Options
+
+* ``-c "quoted sql"`` : Execute quoted sql statements, and then the shell
will exist.
+* ``-f filename (--file filename)`` : Use the file named filename as the
source of commands instead of interactive shell.
+* ``-h hostname (--host hostname)`` : Specifies the host name of the
machine on which the Tajo master is running.
+* ``-p port (--port port)`` : Specifies the TCP port. If it is not set,
the port will be 26002 in default.
+* ``-conf configuration (--conf configuration)`` : Setting tajo
configuration value.
+* ``-param parameter (--param parameter)`` : Use a parameter value in SQL
file.
+* ``-B (--background)`` : Execute as background process.
+
+===================
+Entering tsql shell
+===================
+
+If the hostname and the port num are not given, tsql will try to connect
the Tajo master specified in ${TAJO_HOME}/conf/tajo-site.xml. ::
+
+ bin/tsql
+
+ default>
+
+If you want to connect a specified TajoMaster, you should use '-h' and
(or) 'p' options as follows: ::
+
+ bin/tsql -h localhost -p 9004
--- End diff --
Hi Jaehwa,
When I try "bin/tsql -h localhost", it works. But when I try "bin/tsql -h
192.168.x.x", where 192.168.x.x is my PC's IP address, it failed with a message
"org.jboss.netty.channel.ConnectTimeoutException: Connect error to
/192.168.x.x:26002 caused by ConnectException: Connection refused:
/192.168.x.x:26002". Can you tell me why ? What should I do ? Did I miss a
necessary configuration ?
Aso, when I try "bin/tsql -h localhost -p 26007" (just use another port
rather than the default 26002), it also failed. Can you tell me what should I
do ?
Thanks!
> Update TSQL documentation
> -------------------------
>
> Key: TAJO-1062
> URL: https://issues.apache.org/jira/browse/TAJO-1062
> Project: Tajo
> Issue Type: Sub-task
> Components: documentation
> Reporter: Jaehwa Jung
> Assignee: Jaehwa Jung
> Fix For: 0.9.0
>
>
> TSQL is very useful tool for tajo users. But currently, we don't provide
> enough informations to users. Thus, we need to add more informations to
> following documentation.
> http://tajo.apache.org/docs/current/cli.html
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)