You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@tajo.apache.org by "Jihoon Son (JIRA)" <ji...@apache.org> on 2015/08/22 12:30:45 UTC

[jira] [Commented] (TAJO-1797) Workers cannot bind web server address when it starts

    [ https://issues.apache.org/jira/browse/TAJO-1797?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14707974#comment-14707974 ] 

Jihoon Son commented on TAJO-1797:
----------------------------------

This problem is caused by that Inet4Address.getLocalHost().getHostName() returns mac's local network name instead of just "localhost". 
The simple solution is enrolling mac's local network name as 127.0.0.1. You can find your mac's local network name at Sharing preferences. Please refer to https://support.apple.com/kb/PH18720?locale=en_US.

> Workers cannot bind web server address when it starts
> -----------------------------------------------------
>
>                 Key: TAJO-1797
>                 URL: https://issues.apache.org/jira/browse/TAJO-1797
>             Project: Tajo
>          Issue Type: Bug
>          Components: Worker
>         Environment: Mac OS X
>            Reporter: Jihoon Son
>            Assignee: Jihoon Son
>            Priority: Minor
>             Fix For: 0.11.0
>
>
> Here is the log.
> {noformat}
> 2015-08-22 16:14:34,378 WARN org.apache.tajo.webapp.HttpServer: listener.getLocalPort returned -1
> 2015-08-22 16:14:34,378 INFO org.apache.tajo.webapp.HttpServer: Retrying listener.getLocalPort()
> 2015-08-22 16:14:34,583 INFO org.apache.tajo.webapp.HttpServer: Retrying listener.getLocalPort()
> 2015-08-22 16:14:34,789 INFO org.apache.tajo.webapp.HttpServer: Bouncing the listener
> 2015-08-22 16:14:35,892 WARN org.apache.tajo.webapp.HttpServer: listener.getLocalPort returned -1
> 2015-08-22 16:14:35,892 INFO org.apache.tajo.webapp.HttpServer: Retrying listener.getLocalPort()
> 2015-08-22 16:14:36,095 INFO org.apache.tajo.webapp.HttpServer: Retrying listener.getLocalPort()
> 2015-08-22 16:14:36,296 INFO org.apache.tajo.webapp.HttpServer: Bouncing the listener
> 2015-08-22 16:14:36,441 ERROR org.apache.tajo.worker.TajoWorker: RECEIVED SIGNAL 15: SIGTERM
> 2015-08-22 16:14:36,442 INFO org.apache.tajo.worker.TajoWorker: ============================================
> 2015-08-22 16:14:36,442 INFO org.apache.tajo.worker.TajoWorker: TajoWorker received SIGINT Signal
> 2015-08-22 16:14:36,442 INFO org.apache.tajo.worker.TajoWorker: ============================================
> 2015-08-22 16:14:36,443 INFO org.apache.tajo.worker.TajoWorker: SHUTDOWN_MSG:
> /************************************************************
> SHUTDOWN_MSG: Shutting down TajoWorker at SonJihoonui-MacBook-Pro.local/218.38.137.8
> ************************************************************/
> 2015-08-22 16:14:37,401 WARN org.apache.tajo.webapp.HttpServer: listener.getLocalPort returned -1
> 2015-08-22 16:14:37,401 INFO org.apache.tajo.webapp.HttpServer: Retrying listener.getLocalPort()
> 2015-08-22 16:14:37,607 INFO org.apache.tajo.webapp.HttpServer: Retrying listener.getLocalPort()
> 2015-08-22 16:14:37,812 INFO org.apache.tajo.webapp.HttpServer: Bouncing the listener
> ...
> {noformat}
> As you can see in the log, worker is not stopped even though it received the SIGTERM signal.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)