imjuni / jshs2

jsHS2 is a node.js client driver for hive server 2
http://imjuni.github.io/jshs2/
MIT License
34 stars 12 forks source link

I am facing an issue with timed out when i run test run #14

Closed sandeepvedavyas closed 6 years ago

sandeepvedavyas commented 7 years ago

Below is the details , i have increased timeout to 60000ms but still same issue node_modules/.bin/mocha test/PromiseTest.js --timeout 60000 ThriftDriverTest 1) "before all" hook 2) "after all" hook 0 passing (1m) 2 failing

1) ThriftDriverTest "before all" hook: Error: Timeout of 60000ms exceeded. For async tests and hooks, ensure "done()" is called; if returning a Promise, ensure it resolves.

2) ThriftDriverTest "after all" hook: Uncaught AssertionError: expected [TypeError: Cannot read property 'close' of undefined] to not exist at Immediate.setImmediate (test/PromiseTest.js:80:27)

my config is with below properties "hiveVer": "0.13.1", "cdhVer": "5.3.0", "thriftVer": "0.9.2",

imjuni commented 7 years ago

Hi,

I think that error caused from hive server 2 security configuration.

See below wiki page,

https://cwiki.apache.org/confluence/display/Hive/Setting+Up+HiveServer2#SettingUpHiveServer2-Authentication/SecurityConfiguration

And than, you configure security setting to NOSASL.

Because default hiveserver2 security set SASL, but jshs2 not work SASL. Thank.