Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate

  1. 确认自己的 zookeeper 地址是不是正确
  2. 确认自己的 zookeeper jar 包版本是不是合适
  3. 我的一个可以连接到 zookeeper 3.4.6 的 maven 配置

        <dependency>
            <groupId>com.alibabagroupId>
            <artifactId>dubboartifactId>
            <version>2.5.3version>
            <exclusions>
                <exclusion>
                    <groupId>org.springframeworkgroupId>
                    <artifactId>springartifactId>
                exclusion>
                <exclusion>
                    <groupId>log4jgroupId>
                    <artifactId>log4jartifactId>
                exclusion>
                <exclusion>
                    <groupId>commons-logginggroupId>
                    <artifactId>commons-loggingartifactId>
                exclusion>
                <exclusion>
                    <groupId>org.jboss.nettygroupId>
                    <artifactId>nettyartifactId>
                exclusion>
            exclusions>
        dependency>
        
        <dependency>
            <groupId>com.github.sgroschupfgroupId>
            <artifactId>zkclientartifactId>
            <version>0.1version>
        dependency>
        
        <dependency>
            <groupId>org.apache.zookeepergroupId>
            <artifactId>zookeeperartifactId>
            <version>3.3.6version>
        dependency>

        <dependency>
            <groupId>org.jboss.nettygroupId>
            <artifactId>nettyartifactId>
            <version>3.2.5.Finalversion>
        dependency>
    

你可能感兴趣的:(7_dubbo,25_zookeeper,zookeeper,dubbo)