Hi Jeff


1.     I have created it as a task ZEPPELIN-4794
<https://issues.apache.org/jira/browse/ZEPPELIN-4794> and not as a bug.
Please change it if required. Despite having good understanding of java
port bindings, this one slipped my attention. I am sure there will be
others who will be caught up with this when trying to install it on Windows
WSL. Since flink 1.10.0 has already switched to WSL for windows users, I
thought it would be appropriate for Zeppelin to be in line with windows
WSL.



Thanks

Ravi Pullareddy



*From:* Jeff Zhang <zjf...@gmail.com>
*Sent:* Monday, 4 May 2020 9:18 AM
*To:* users <users@zeppelin.apache.org>
*Subject:* Re: Zeppelin 0.9 flink interpreter on WSL ubuntu Linux



Hi Ravi,



Glad to hear you solve this issue, Do you mind to create a ticket for it ?



Ravi Pullareddy <ravi.pullare...@minlog.com.au> 于2020年5月4日周一 上午6:56写道:

Hi Jeff



Thanks for the suggestion. Your suggestion gave me a hint and I was able to
solve this issue. I did not set the properties your specified but got it
working. I looked in the source code and found that Interpreter server uses
java.net.InetAddress to find the Ipaddress of the host. Since my machine
had two network addresses it was getting confused with port binding. I
changed the server setting in zeppelin-site.xml to 0.0.0.0 . This enables
proper binding and the issue was solved.



I suggest that you update your install documents that when running in
Windows WSL to set the server address to 0.0.0.0  This will save time for
other users trying to install Zeppelin on Windows WSL.



<property>

  <name>zeppelin.server.addr</name>

  <value>0.0.0.0</value>

  <description>Server binding address</description>

</property>



Regards



Ravi Pullareddy



*From:* Jeff Zhang <zjf...@gmail.com>
*Sent:* Sunday, 3 May 2020 6:59 PM
*To:* users <users@zeppelin.apache.org>
*Subject:* Re: Zeppelin 0.9 flink interpreter on WSL ubuntu Linux



There're 2 properties you can set to control the port range:

zeppelin.server.rpc.portRange

zeppelin.interpreter.rpc.portRange





Ravi Pullareddy <ravi.pullare...@minlog.com.au> 于2020年5月3日周日 上午5:51写道:

Hi Jeff

Has anyone tried running flink interpreter on  Zeppelin 0.8 or Zeppelin 0.9
on Windows WSL ubuntu? Since WSL does not allow creation of random ports,
flink interpreter fails as below. Any suggestion is much appreciated.


INFO [2020-05-02 07:43:53,211] ({main}
RemoteInterpreterServer.java[main]:261) -
URL:jar:file:/mnt/d/zeppelin-0.8.1-bin-all/lib/interpreter/zeppelin-interpreter-0.8.1.jar!/org/apache/zeppelin/interpreter/remote/RemoteInterpreterServer.class
 INFO [2020-05-02 07:43:53,274] ({main}
RemoteInterpreterServer.java[<init>]:162) - Launching ThriftServer at
169.254.47.73:62115
 INFO [2020-05-02 07:43:53,282] ({main}
RemoteInterpreterServer.java[<init>]:166) - Starting remote interpreter
server on port 62115
 INFO [2020-05-02 07:43:53,283] ({Thread-0}
RemoteInterpreterServer.java[run]:203) - Starting remote interpreter server
on port 62115
 INFO [2020-05-02 07:57:47,187] ({main}
RemoteInterpreterServer.java[main]:261) -
URL:jar:file:/mnt/d/zeppelin-0.8.1-bin-all/lib/interpreter/zeppelin-interpreter-0.8.1.jar!/org/apache/zeppelin/interpreter/remote/RemoteInterpreterServer.class
 INFO [2020-05-02 07:57:47,255] ({main}
RemoteInterpreterServer.java[<init>]:162) - Launching ThriftServer at
169.254.47.73:62223
 INFO [2020-05-02 07:57:47,262] ({main}
RemoteInterpreterServer.java[<init>]:166) - Starting remote interpreter
server on port 62223
 INFO [2020-05-02 07:57:47,264] ({Thread-0}
RemoteInterpreterServer.java[run]:203) - Starting remote interpreter server
on port 62223
 INFO [2020-05-02 07:57:48,273] ({Thread-1}
RemoteInterpreterUtils.java[registerInterpreter]:165) - callbackHost:
169.254.47.73, callbackPort: 62221, callbackInfo:
CallbackInfo(host:169.254.47.73, port:62223)
ERROR [2020-05-02 07:57:48,279] ({Thread-1}
RemoteInterpreterServer.java[run]:192) - Error while registering
interpreter: CallbackInfo(host:169.254.47.73, port:62223)
org.apache.thrift.transport.TTransportException: java.net.SocketException:
Network is unreachable (connect failed)
        at org.apache.thrift.transport.TSocket.open(TSocket.java:187)
        at
org.apache.zeppelin.interpreter.remote.RemoteInterpreterUtils.registerInterpreter(RemoteInterpreterUtils.java:168)
        at
org.apache.zeppelin.interpreter.remote.RemoteInterpreterServer$1.run(RemoteInterpreterServer.java:190)
        at java.lang.Thread.run(Thread.java:748)
Caused by: java.net.SocketException: Network is unreachable (connect failed)
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
        at
java.net
.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
        at
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
        at java.net.Socket.connect(Socket.java:606)
        at org.apache.thrift.transport.TSocket.open(TSocket.java:182)
        ... 3 more
 INFO [2020-05-02 07:57:48,281] ({Thread-1}
RemoteInterpreterServer.java[shutdown]:209) - Shutting down...




-- 

Best Regards

Jeff Zhang




-- 

Best Regards

Jeff Zhang

Reply via email to