在Linkedin的WhereHows中获取实体时出错

时间:2018-05-14 22:51:06

标签: linkedin linkedin-api

在github文档(https://github.com/linkedin/WhereHows/blob/master/wherehows-docs/getting-started.md#getting-started)之后安装Linkedin的WhereHows,登录Web UI并导航到数据集标签后,它会抱怨

An error occurred getting entities

SyntaxError: JSON.parse: unexpected character at line 3 column 1 of the JSON data

enter image description here

在Web浏览器中查看开发人员控制台,可以看到错误输出

SyntaxError: JSON.parse: unexpected character at line 3 column 1 of the JSON data[Learn More]  vendor-01c52695e9f268de5628f7bec75d6bb1.js:65255:14
    tryCatcher http://localhost:9001/assets/assets/vendor-01c52695e9f268de5628f7bec75d6bb1.js:65255:14
    invokeCallback http://localhost:9001/assets/assets/vendor-01c52695e9f268de5628f7bec75d6bb1.js:65437:15
    publish http://localhost:9001/assets/assets/vendor-01c52695e9f268de5628f7bec75d6bb1.js:65422:9
    Queue</Queue.prototype.invoke http://localhost:9001/assets/assets/vendor-01c52695e9f268de5628f7bec75d6bb1.js:27963:17
    Queue</Queue.prototype.flush http://localhost:9001/assets/assets/vendor-01c52695e9f268de5628f7bec75d6bb1.js:27848:25
    DeferredActionQueues</DeferredActionQueues.prototype.flush http://localhost:9001/assets/assets/vendor-01c52695e9f268de5628f7bec75d6bb1.js:28035:25
    Backburner</Backburner.prototype.end http://localhost:9001/assets/assets/vendor-01c52695e9f268de5628f7bec75d6bb1.js:28169:26
    Backburner/this._boundAutorunEnd http://localhost:9001/assets/assets/vendor-01c52695e9f268de5628f7bec75d6bb1.js:28131:17
Unhandled promise rejection SyntaxError: JSON.parse: unexpected character at line 3 column 1 of the JSON data
Stack trace:
tryCatcher@http://localhost:9001/assets/assets/vendor-01c52695e9f268de5628f7bec75d6bb1.js:65255:14
invokeCallback@http://localhost:9001/assets/assets/vendor-01c52695e9f268de5628f7bec75d6bb1.js:65437:15
publish@http://localhost:9001/assets/assets/vendor-01c52695e9f268de5628f7bec75d6bb1.js:65422:9
Queue</Queue.prototype.invoke@http://localhost:9001/assets/assets/vendor-01c52695e9f268de5628f7bec75d6bb1.js:27963:17
Queue</Queue.prototype.flush@http://localhost:9001/assets/assets/vendor-01c52695e9f268de5628f7bec75d6bb1.js:27848:25
DeferredActionQueues</DeferredActionQueues.prototype.flush@http://localhost:9001/assets/assets/vendor-01c52695e9f268de5628f7bec75d6bb1.js:28035:25
Backburner</Backburner.prototype.end@http://localhost:9001/assets/assets/vendor-01c52695e9f268de5628f7bec75d6bb1.js:28169:26
Backburner/this._boundAutorunEnd@http://localhost:9001/assets/assets/vendor-01c52695e9f268de5628f7bec75d6bb1.js:28131:17

有没有人知道这个错误意味着什么,以及在哪里进一步调查(第一次使用wherehows和给定的输出本身对我不熟悉的自己没有帮助?)

**请注意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" (honestly don't know if this is correct (don't use elasticsearch much))
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"

1 个答案:

答案 0 :(得分:0)

看看这个github问题似乎可以解决类似的近期问题(2018年5月1日左右)(https://github.com/linkedin/WhereHows/issues/1131#issuecomment-385882867)。回复是中文,但使用谷歌翻译,它显示:

  

最新的代码有一个dao方法没有写SQL,直接抛出异常,可能是作者还没有完成,你可以尝试使用1.0.0这个标签,我试过这个没问题

所以用标签v1.0.0检查提交

git checkout tags/v1.0.0

添加重做需要重做的安装部分(例如添加extralib,设置前端配置变量,启动前端和后端),我看到不再出现错误消息。 enter image description here