hbase windowns 下, Will not attempt to authenticate using SASL (无法定位登录配置)
来源:互联网 发布:json转换为字符串 编辑:程序博客网 时间:2024/05/29 15:56
Hbase异常(无法定位登录配置)
散仙,最近再用Sqoop从Mysql数据库里向Hbase里导入数据,导入成功后,在eclipse上使用Java Hbase API的连接集群,打印所有数据,结果一运行程序,日志显示无法定位登录配置,具体信息如下:
其实这个信息,并不是Hbase的异常,而是客户端找不到zookeeper的解析地址,由于Hbase是通过hostname解析IP地址的(DNS),Zookeeper只会返回Hbase的域名,需要客户端通过DNS或本地hosts文件进行解析。
解决办法:
在Linux上,在/etc/hosts文件中添加Hbase Master节点的域名及IP地址映射,
在Windows上,修改C:\Windows\system32\etc\hosts文件,添加Hbase Master节点的域名及IP地址映射。
截图如下:
至此,就可以正常使用了,再次启动程序,已经发现没有刚才的问题了
散仙,最近再用Sqoop从Mysql数据库里向Hbase里导入数据,导入成功后,在eclipse上使用Java Hbase API的连接集群,打印所有数据,结果一运行程序,日志显示无法定位登录配置,具体信息如下:
2013/12/29-02:20:46 INFO ZooKeeper:100 - Client environment:java.library.path=D:\soft\Java\jdk1.6.0_32\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;D:/soft/Java/jdk1.7.0_04/bin/../jre/bin/server;D:/soft/Java/jdk1.7.0_04/bin/../jre/bin;D:/soft/Java/jdk1.7.0_04/bin/../jre/lib/amd64;D:\Python;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;D:\soft\Java\jdk1.7.0_04/bin;D:\soft\Java\jdk1.7.0_04/jre/bin ;E:\SSHClient;D:\soft\eclipse;;.2013/12/29-02:20:46 INFO ZooKeeper:100 - Client environment:java.io.tmpdir=C:\Users\qin\AppData\Local\Temp\2013/12/29-02:20:46 INFO ZooKeeper:100 - Client environment:java.compiler=<NA>2013/12/29-02:20:46 INFO ZooKeeper:100 - Client environment:os.name=Windows 72013/12/29-02:20:46 INFO ZooKeeper:100 - Client environment:os.arch=amd642013/12/29-02:20:46 INFO ZooKeeper:100 - Client environment:os.version=6.12013/12/29-02:20:46 INFO ZooKeeper:100 - Client environment:user.name=qin2013/12/29-02:20:46 INFO ZooKeeper:100 - Client environment:user.home=C:\Users\qin2013/12/29-02:20:46 INFO ZooKeeper:100 - Client environment:user.dir=D:\eclipseworkspace\myfirst2013/12/29-02:20:46 INFO ZooKeeper:438 - Initiating client connection, connectString=192.168.120.129:2181 sessionTimeout=180000 watcher=hconnection2013/12/29-02:20:46 INFO RecoverableZooKeeper:104 - The identifier of this process is 9308@qin-PC2013/12/29-02:20:46 INFO ClientCnxn:966 - Opening socket connection to server namenode/192.168.120.129:2181. Will not attempt to authenticate using SASL (无法定位登录配置)
其实这个信息,并不是Hbase的异常,而是客户端找不到zookeeper的解析地址,由于Hbase是通过hostname解析IP地址的(DNS),Zookeeper只会返回Hbase的域名,需要客户端通过DNS或本地hosts文件进行解析。
解决办法:
在Linux上,在/etc/hosts文件中添加Hbase Master节点的域名及IP地址映射,
在Windows上,修改C:\Windows\system32\etc\hosts文件,添加Hbase Master节点的域名及IP地址映射。
截图如下:
至此,就可以正常使用了,再次启动程序,已经发现没有刚才的问题了
0 0
- hbase windowns 下, Will not attempt to authenticate using SASL (无法定位登录配置)
- zookeeper的Will not attempt to authenticate using SASL (无法定位登录配置)
- Will not attempt to authenticate using SASL (java.lang.SecurityException: 无法定位登录配置)
- Eclipse下调试HBase程序报“Will not attempt to authenticate using SASL (java.lang.SecurityException : 无法定位登”
- Connection refused Will not attempt to authenticate using SASL
- Zookeeper报错Will not attempt to authenticate using SASL解决办法
- Zookeeper报错Will not attempt to authenticate using SASL解决办法
- Dubbo zookeeper:Will not attempt to authenticate using SASL (unknown error)
- Zookeeper报错Will not attempt to authenticate using SASL解决办法
- Zookeeper 错误 Will not attempt to authenticate using SASL (unknown error)
- disconf 报错 Will not attempt to authenticate using SASL (unknown error)
- dubbo+zookeeper框架出现Will not attempt to authenticate using SASL (unknown error)
- Zookeeper报错Will not attempt to authenticate using SASL解决办法
- Opening socket connection to server localhost/0:0:0:0:0:0:0:1:2181. Will not attempt to authenticate
- hbase 无法定位登录配置
- HBase 启动错误,HBase管理zookeeper ,无法定位登录配置
- QQ企业邮箱使用Java代码发送失败,错误DEBUG SMTP: Attempt to authenticate using mechanisms: LOGIN PLAIN DIGEST-MD5 NT
- An attempt was made to authenticate the locked user "tomcat"
- 五大常用算法之回溯法
- Groovy入门教程
- HTTP消息格式
- 不使用if,?:及switch等实现求出两个数的较大值
- 程序员必须知道的10大基础实用算法及其讲解
- hbase windowns 下, Will not attempt to authenticate using SASL (无法定位登录配置)
- 21天学通Java学习笔记-Day03
- 图的遍历
- 使用GridView控件绑定数据
- 网盘背后的秘密
- Python中的生成器在八皇后问题上的应用
- Java 8新特性: lambda
- win7 远程桌面连接
- 解析数据库生成XML文件及解析XML文件插入数据库