Apache Zeppelin仅监听tcp6地址问题求助
Hey there, I’ve run into this exact issue with older Zeppelin versions before—let’s get this sorted out for you!
First, the key configuration you’re missing is hidden in the conf directory, but you need to convert the template file into an active config first. Here’s what to do step by step:
Activate the core config file
Navigate to your Zeppelin installation’sconffolder. By default, Zeppelin only provides a template file, so you’ll need to copy it to create a usable config:cp zeppelin-site.xml.template zeppelin-site.xmlModify the listening address and port
Openzeppelin-site.xmlwith your favorite text editor. Look for these two properties (they might be commented out initially):zeppelin.server.addr: This controls which IP address Zeppelin binds to. By default, it’s not set, so Zeppelin uses the IPv6 wildcard address::(which is why you only see tcp6 listening). To make it listen on all IPv4 and IPv6 addresses, set this to0.0.0.0. If you want to restrict it to a specific IPv4 address, enter that instead (e.g.,192.168.0.10).zeppelin.server.port: This sets the listening port (default is 8080—you can leave it as is or change it if needed).
Here’s what the uncommented properties should look like:
<property> <name>zeppelin.server.addr</name> <value>0.0.0.0</value> <description>Server binding address</description> </property> <property> <name>zeppelin.server.port</name> <value>8080</value> <description>Server port.</description> </property>Restart Zeppelin
Stop your running Zeppelin instance and start it up again. Once it’s running, check the listening ports with a command like:netstat -tulpn | grep zeppelinYou should now see Zeppelin listening on both tcp4 and tcp6 (or just tcp4 if you specified an IPv4 address).
A quick note: If your system has IPv6 enabled, binding to 0.0.0.0 will still allow IPv6 connections, but it ensures IPv4 clients can connect too. If you want to disable IPv6 entirely for Zeppelin, setting zeppelin.server.addr to a specific IPv4 address is the way to go.
内容的提问来源于stack exchange,提问作者rabinnh

