Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Getting Error while connecting impala with node JS

Getting Error while connecting impala with node JS

New Contributor

I have been trying to connect the impala hosted on AWS EMR with node js.


Code :-

var JDBC = require('jdbc');
var jinst = require('jdbc/lib/jinst');

if (!jinst.isJvmCreated()){


var conf = {
url: 'jdbc:hive2://AWS_MASTER_NODE_URL:21050/default;auth=noSasl',
drivername: 'org.apache.hive.jdbc.HiveDriver',

var hive = new JDBC(conf);


hive.initialize( function(err) {
if (err) {

I am getting the below error :- 


[Error: Error running static method
org.apache.hive.service.cli.HiveSQLException: Ignoring invalid configuration option: use:database
at org.apache.hive.jdbc.Utils.verifySuccess(
at org.apache.hive.jdbc.Utils.verifySuccess(
at org.apache.hive.jdbc.HiveConnection.openSession(
at org.apache.hive.jdbc.HiveConnection.<init>(
at org.apache.hive.jdbc.HiveDriver.connect(
at java.sql.DriverManager.getConnection(
at java.sql.DriverManager.getConnection(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
] {
cause: nodeJava_org_apache_hive_service_cli_HiveSQLException {}

Does anyone have any idea why this does not work?

Don't have an account?
Coming from Hortonworks? Activate your account here