根据github文档(https://github.com/linkedin/WhereHows/blob/master/wherehows-docs/getting-started.md#getting-started)安装Linkedin' WhereHows
后,发现我无法登录登录屏幕wherehows
抱怨凭据无效(使用一些LDAP用户)
有谁知道这是怎么回事?
** Play
前端(https://github.com/linkedin/WhereHows/blob/master/wherehows-docs/getting-started.md#frontend-setup)的配置变量如下所示:
export WHZ_DB_USERNAME="wherehows"
export WHZ_DB_PASSWORD="wherehows"
export WHZ_DB_URL="jdbc:mysql://localhost/wherehows"
export WHZ_ES_DATASET_URL="localhost:9200/wherehows"
export WHZ_ES_METRIC_URL="localhost:9200/_nodes/stats"
export WHZ_ES_FLOW_URL="localhost:9200/wherehows/flows_jobs"
export YOUR_HDFS_BROWSER_LINK="http://node004.myco.local:8888/filebrowser/#"
export WHZ_LDAP_URL="ldap://co.myco.local:389"
export WHZ_LDAP_PRINCIPAL_DOMAIN="@co.local"
export WHZ_LDAP_SEARCH_BASE="ou=mapr access,dc=co,dc=local"
答案 0 :(得分:0)
从此github帖子(https://github.com/linkedin/WhereHows/issues/874#issuecomment-346031871)中获取提示,wherehows
似乎在数据库后端中查找有效用户(请参阅https://github.com/linkedin/WhereHows/blob/master/wherehows-docs/getting-started.md#database-setup)wherehows.users
。
这样做
> [me@mapr07 wherehows-frontend]$ mysql -u root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 231
Server version: 5.6.40 MySQL Community Server (GPL)
Copyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.
Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.
Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
mysql> select * from wherehows.users;
Empty set (0.00 sec)
mysql> INSERT INTO wherehows.users
(name, email, username, password_digest, password_digest_type, authentication_type)
VALUES ('testuser', 'rvillanueva@ucera.org', 'testuser', SHA1('testuser'), 'SHA1', 'default');
Query OK, 1 row affected (0.02 sec)
mysql> exit
然后我们可以使用name = testuser和password = testuser登录wherehows
登录屏幕。
**虽然这确实让我有点困惑,但是如果唯一重要的事情就是在sql后端存在用户安装的一部分,那么确切地说LDAP就会出现在图片中(如果有人知道答案,请告诉我)。
<强>更新强>: 看来这只是一个已知的解决方法,并且用户应该能够使用LDAP(https://github.com/linkedin/WhereHows/issues/616#issuecomment-323164744),因此可以通过调查根来改进这个答案导致无法在登录屏幕上使用LDAP凭据的问题。