分享

eclipse 连接hbase 异常为:java.lang.SecurityException: 无法定位登录配置

desehawk 发表于 2014-9-4 08:59:19 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 2 24873
本帖最后由 desehawk 于 2014-9-4 09:03 编辑
eclipse 连接hbase
异常为:
WARN client.ZooKeeperSaslClient: SecurityException: java.lang.SecurityException: 无法定位登录配置 occurred when trying to find JAAS configuration.

已有(2)人评论

跳转到指定楼层
howtodown 发表于 2014-9-4 09:01:31
尝试更换eclipse版本



回复

使用道具 举报

desehawk 发表于 2014-9-4 09:02:41
这个问题最终是解决了
目前是可以在win7下连接hadoop+hbase整个集群
更换了eclipse版本
Myeclipse9测试也ok



On each node that will run a zookeeper, a master, or a regionserver, create a JAAS configuration file in the conf directory of the node's HBASE_HOME directory that looks like the following:
Server {
com.sun.security.auth.module.Krb5LoginModule required
useKeyTab=true
keyTab="$PATH_TO_ZOOKEEPER_KEYTAB"
storeKey=true
useTicketCache=false
principal="zookeeper/$HOST";
};
Client {
com.sun.security.auth.module.Krb5LoginModule required
useKeyTab=true
useTicketCache=false
keyTab="$PATH_TO_HBASE_KEYTAB"
principal="hbase/$HOST";
};


http://hbase.apache.org/book.html#ulimit

2.5.2. SASL Authentication with ZooKeeper
Newer releases of HBase (>= 0.92) will support connecting to a ZooKeeper Quorum that supports SASL authentication (which is available in Zookeeper versions 3.4.0 or later).

This describes how to set up HBase to mutually authenticate with a ZooKeeper Quorum. ZooKeeper/HBase mutual authentication (HBASE-2418) is required as part of a complete secure HBase configuration (HBASE-3025). For simplicity of explication, this section ignores additional configuration required (Secure HDFS and Coprocessor configuration). It's recommended to begin with an HBase-managed Zookeeper configuration (as opposed to a standalone Zookeeper quorum) for ease of learning.






回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条