You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tajo.apache.org by xiaohui Huang <mr...@gmail.com> on 2017/05/04 13:58:44 UTC
ClientConnectionException: Connection refused
> Hello,
>
> I want to install Tajo(version: 0.11.3) in a three-nodes cluster(a master and two slaves), I have confirmed related .xml files in the master node, and delivered the whole tajo-0.11.3 directory to other slaves�� side. When I executed start-tajo.sh in the master node, it was fine, BUT, 1��when I executed tsql command in he master node, there are some bug notifications. 2��the Web UI (master:26080) can not work.
>
> I sincerely want to know how to solve the problem.
>
> Thanks a lot.
>
> <https://lh3.googleusercontent.com/-sjXKlRWXhmg/WQlkPIlWD7I/AAAAAAAAADU/sG3j-vwcYogBSX9_QUgwq8e0GCGZrJFaQCLcB/s1600/1.png>
>
>
> Here are my terminal records.
>
> [hadoop@master ~]$ start-tajo.sh
> Starting single TajoMaster
> starting master, logging to /home/hadoop/tajo-0.11.3/logs/tajo-hadoop-master-master.out
> slave1: starting worker, logging to /home/hadoop/tajo-0.11.3/logs/tajo-hadoop-worker-slave1.out
> slave2: starting worker, logging to /home/hadoop/tajo-0.11.3/logs/tajo-hadoop-worker-slave2.out
> Tajo master web UI: http://master:26080 <http://master:26080/>
> Tajo Client Service: master:26002
> [hadoop@master ~]$ tsql
> Exception in thread "main" org.apache.tajo.exception.TajoRuntimeException: org.apache.tajo.client.v2.exception.ClientConnectionException: Connection refused: master/59.71.229.189:26002 (Notes: the IP address of the master is 59.71.229.189)
> at org.apache.tajo.client.SessionConnection.getTajoMasterConnection(SessionConnection.java:137)
> at org.apache.tajo.client.SessionConnection.<init>(SessionConnection.java:110)
> at org.apache.tajo.client.TajoClientImpl.<init>(TajoClientImpl.java:64)
> at org.apache.tajo.cli.tsql.TajoCli.<init>(TajoCli.java:255)
> at org.apache.tajo.cli.tsql.TajoCli.main(TajoCli.java:719)
> Caused by: org.apache.tajo.client.v2.exception.ClientConnectionException: Connection refused: master/59.71.229.189:26002
> ... 5 more
> Caused by: io.netty.channel.ConnectTimeoutException: Connection refused: master/59.71.229.189:26002
> at org.apache.tajo.rpc.NettyClientBase.makeConnectException(NettyClientBase.java:202)
> at org.apache.tajo.rpc.NettyClientBase.doReconnect(NettyClientBase.java:251)
> at org.apache.tajo.rpc.NettyClientBase.connect(NettyClientBase.java:220)
> at org.apache.tajo.rpc.RpcClientManager.newBlockingClient(RpcClientManager.java:164)
> at org.apache.tajo.client.SessionConnection.getTajoMasterConnection(SessionConnection.java:134)
> ... 4 more
> [hadoop@master ~]$
>
>
> and my tajo-site.xml is as follows:
>
> <!-- System Settings -->
> <property>
> <name>tajo.rootdir</name>
> <value>hdfs://master:9000/tajo</value> <hdfs://master:9000/tajo%3C/value%3E>
> <description>Base directory including system directories.</description>
> </property>
>
> <!-- Tajo Worker Configuration Defaults -->
>
> <property>
> <name>tajo.master.umbilical-rpc.address</name>
> <value>master:26001</value>
> <description>TajoMaster binding address between master and workers.</description>
> </property>
>
> <property>
> <name>tajo.master.client-rpc.address</name>
> <value>master:26002</value>
> <description>TajoMaster binding address between master and clients.</description>
> </property>
>
> <property>
> <name>tajo.resource-tracker.rpc.address</name>
> <value>master:26003</value>
> <description>TajoMaster binding address between master and workers.</description>
> </property>
>
> <property>
> <name>tajo.catalog.client-rpc.address</name>
> <value>master:26005</value>
> <description>CatalogServer binding address between catalog server and workers.</description>
> </property>
>
>
> <property>
> <name>tajo.master.info <http://tajo.master.info/>-http.address</name>
> <value>master:26080</value>
> <description>Tajo Master Info Http</description>
> </property>
>
>
> <!-- Tajo Worker Configuration Defaults -->
> <property>
> <name>tajo.worker.peer-rpc.address</name>
> <value>0.0.0.0:28091</value>
> <description>Tajo Worker Peer Rpc</description>
> </property>
>
> <property>
> <name>tajo.worker.client-rpc.address</name>
> <value>0.0.0.0:28092</value>
> <description>Tajo Worker Client Rpc</description>
> </property>
>
> <property>
> <name>tajo.worker.info <http://tajo.worker.info/>-http.address</name>
> <value>0.0.0.0:28080</value>
> <description>Tajo Worker Info Http</description>
> </property>
>
>
> <property>
> <name>tajo.worker.tmpdir.locations</name>
> <value>/home/hadoop/tajo-0.11.3/tmp</value>
> <description>A base for other temporary directories.</description>
> </property>
>
> <property>
> <name>tajo.worker.resource.dfs-dir-aware</name>
> <value>true</value>
> </property>
Re: ClientConnectionException: Connection refused
Posted by Jinho Kim <jh...@apache.org>.
Hi xiaohui Huang,
Could you check your conf/storage-site.json ?
Looks like your json is invalid syntax.
http://tajo.apache.org/docs/current/configuration/storage-site-json.html
-Jinho
Best regards
2017-05-04 22:58 GMT+09:00 xiaohui Huang <mr...@gmail.com>:
> Hello,
>
> I want to install Tajo(version: 0.11.3) in a three-nodes cluster(a master
> and two slaves), I have confirmed related .xml files in the master node,
> and delivered the whole tajo-0.11.3 directory to other slaves’ side. When
> I executed *start-tajo.sh* in the master node, it was fine, BUT, 1)when I
> executed *tsql* command in he master node, there are some bug
> notifications. 2)the Web UI (master:26080) can not work.
>
> I sincerely want to know how to solve the problem.
>
> Thanks a lot.
>
>
> <https://lh3.googleusercontent.com/-sjXKlRWXhmg/WQlkPIlWD7I/AAAAAAAAADU/sG3j-vwcYogBSX9_QUgwq8e0GCGZrJFaQCLcB/s1600/1.png>
>
>
> Here are my terminal records.
>
> [hadoop@master ~]$ start-tajo.sh
> Starting single TajoMaster
> starting master, logging to /home/hadoop/tajo-0.11.3/logs/
> tajo-hadoop-master-master.out
> slave1: starting worker, logging to /home/hadoop/tajo-0.11.3/logs/
> tajo-hadoop-worker-slave1.out
> slave2: starting worker, logging to /home/hadoop/tajo-0.11.3/logs/
> tajo-hadoop-worker-slave2.out
> Tajo master web UI: http://master:26080
> Tajo Client Service: master:26002
> [hadoop@master ~]$ tsql
> Exception in thread "main" org.apache.tajo.exception.TajoRuntimeException:
> org.apache.tajo.client.v2.exception.ClientConnectionException: Connection
> refused: master/59.71.229.189:26002 (Notes: the IP address of the master
> is 59.71.229.189)
> at org.apache.tajo.client.SessionConnection.getTajoMasterConnection(
> SessionConnection.java:137)
> at org.apache.tajo.client.SessionConnection.<init>(
> SessionConnection.java:110)
> at org.apache.tajo.client.TajoClientImpl.<init>(
> TajoClientImpl.java:64)
> at org.apache.tajo.cli.tsql.TajoCli.<init>(TajoCli.java:255)
> at org.apache.tajo.cli.tsql.TajoCli.main(TajoCli.java:719)
> Caused by: org.apache.tajo.client.v2.exception.ClientConnectionException:
> Connection refused: master/59.71.229.189:26002
> ... 5 more
> Caused by: io.netty.channel.ConnectTimeoutException: Connection refused:
> master/59.71.229.189:26002
> at org.apache.tajo.rpc.NettyClientBase.makeConnectException(
> NettyClientBase.java:202)
> at org.apache.tajo.rpc.NettyClientBase.doReconnect(
> NettyClientBase.java:251)
> at org.apache.tajo.rpc.NettyClientBase.connect(
> NettyClientBase.java:220)
> at org.apache.tajo.rpc.RpcClientManager.newBlockingClient(
> RpcClientManager.java:164)
> at org.apache.tajo.client.SessionConnection.getTajoMasterConnection(
> SessionConnection.java:134)
> ... 4 more
> [hadoop@master ~]$
>
>
> and my tajo-site.xml is as follows:
>
> <!-- System Settings -->
> <property>
> <name>tajo.rootdir</name>
> <value>hdfs://master:9000/tajo</value>
> <description>Base directory including system directories.</description>
> </property>
>
> <!-- Tajo Worker Configuration Defaults -->
>
> <property>
> <name>tajo.master.umbilical-rpc.address</name>
> <value>master:26001</value>
> <description>TajoMaster binding address between master and
> workers.</description>
> </property>
>
> <property>
> <name>tajo.master.client-rpc.address</name>
> <value>master:26002</value>
> <description>TajoMaster binding address between master and
> clients.</description>
> </property>
>
> <property>
> <name>tajo.resource-tracker.rpc.address</name>
> <value>master:26003</value>
> <description>TajoMaster binding address between master and
> workers.</description>
> </property>
>
> <property>
> <name>tajo.catalog.client-rpc.address</name>
> <value>master:26005</value>
> <description>CatalogServer binding address between catalog server and
> workers.</description>
> </property>
>
>
> <property>
> <name>tajo.master.info-http.address</name>
> <value>master:26080</value>
> <description>Tajo Master Info Http</description>
> </property>
>
>
> <!-- Tajo Worker Configuration Defaults -->
> <property>
> <name>tajo.worker.peer-rpc.address</name>
> <value>0.0.0.0:28091</value>
> <description>Tajo Worker Peer Rpc</description>
> </property>
>
> <property>
> <name>tajo.worker.client-rpc.address</name>
> <value>0.0.0.0:28092</value>
> <description>Tajo Worker Client Rpc</description>
> </property>
>
> <property>
> <name>tajo.worker.info-http.address</name>
> <value>0.0.0.0:28080</value>
> <description>Tajo Worker Info Http</description>
> </property>
>
>
> <property>
> <name>tajo.worker.tmpdir.locations</name>
> <value>/home/hadoop/tajo-0.11.3/tmp</value>
> <description>A base for other temporary directories.</description>
> </property>
>
> <property>
> <name>tajo.worker.resource.dfs-dir-aware</name>
> <value>true</value>
> </property>
>
>
>
>
>
>