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!
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---