You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zeppelin.apache.org by "Cupen Noruler (JIRA)" <ji...@apache.org> on 2017/04/13 13:32:41 UTC

[jira] [Created] (ZEPPELIN-2401) Create Interpreter throw a .java.net.UnknownHostException: root: root: Name or service not known

Cupen Noruler created ZEPPELIN-2401:
---------------------------------------

             Summary: Create Interpreter throw a .java.net.UnknownHostException: root: root: Name or service not known
                 Key: ZEPPELIN-2401
                 URL: https://issues.apache.org/jira/browse/ZEPPELIN-2401
             Project: Zeppelin
          Issue Type: Bug
          Components: Interpreters
    Affects Versions: 0.7.1
         Environment: zeppelin 0.7.1
Centos 6.5
openjdk-1.8.0

            Reporter: Cupen Noruler
            Priority: Trivial


I meet a little problem, when I create a interpreter whether python, jdbc or others, zeppelin throw an UnknownHostException. 

My hostname was "root", so I change the hostname to 'localhost', then it works fine. I don't why is the interpreters depend on localhost ?

 WARN [2017-04-13 18:40:27,570] ({qtp510113906-19} ServletHandler.java[doHandle]:628) - /ws
java.net.UnknownHostException: root: root: Name or service not known
        at java.net.InetAddress.getLocalHost(InetAddress.java:1505)
        at org.apache.zeppelin.utils.SecurityUtils.isValidOrigin(SecurityUtils.java:70)
        at org.apache.zeppelin.server.CorsFilter.doFilter(CorsFilter.java:55)
        at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1652)
        at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:585)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
        at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)
        at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)
        at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)
        at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)
        at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
        at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:215)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
        at org.eclipse.jetty.server.Server.handle(Server.java:499)
        at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)
        at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.net.UnknownHostException: root: Name or service not known
        at java.net.Inet6AddressImpl.lookupAllHostAddr(Native Method)
        at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
        at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
        at java.net.InetAddress.getLocalHost(InetAddress.java:1500)
        ... 21 more




--
This message was sent by Atlassian JIRA
(v6.3.15#6346)