找不到虚拟机的主机名
C:\Windows\System32\drivers\etc的hosts文件添加
连接代码val conf = HBaseConfiguration.create() conf.set("hbase.zookeeper.quorum","aa")//aa是主机名(虚拟机) conf.set("hbase.zookeeper.property.clientPort","2181")
找不到虚拟机的主机名
C:\Windows\System32\drivers\etc的hosts文件添加
连接代码val conf = HBaseConfiguration.create() conf.set("hbase.zookeeper.quorum","aa")//aa是主机名(虚拟机) conf.set("hbase.zookeeper.property.clientPort","2181")