<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Hive Database connection in nodejs in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Hive-Database-connection-in-nodejs/m-p/397623#M249927</link>
    <description>&lt;P&gt;Iam trying to connect hive database using hive-driver npm package in nodejs. But the session can't be established. If anyone please help me on this&lt;/P&gt;</description>
    <pubDate>Mon, 18 Nov 2024 08:08:29 GMT</pubDate>
    <dc:creator>Arun0811</dc:creator>
    <dc:date>2024-11-18T08:08:29Z</dc:date>
    <item>
      <title>Hive Database connection in nodejs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Database-connection-in-nodejs/m-p/397623#M249927</link>
      <description>&lt;P&gt;Iam trying to connect hive database using hive-driver npm package in nodejs. But the session can't be established. If anyone please help me on this&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 08:08:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Database-connection-in-nodejs/m-p/397623#M249927</guid>
      <dc:creator>Arun0811</dc:creator>
      <dc:date>2024-11-18T08:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Database connection in nodejs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Database-connection-in-nodejs/m-p/397644#M249933</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/120425"&gt;@Arun0811&lt;/a&gt;&amp;nbsp;Thank you for posting your query with us, I believe you are trying to use Hive with NodeJS application using Hive-Driver&amp;nbsp;&lt;A href="https://www.npmjs.com/package/hive-driver" target="_blank"&gt;https://www.npmjs.com/package/hive-driver&lt;/A&gt;&amp;nbsp;and it fails&lt;/P&gt;&lt;P&gt;Could you share us the ERROR message which you are receiving while connecting the same&lt;/P&gt;&lt;P&gt;Along with the configuration samples which you are trying&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 13:47:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Database-connection-in-nodejs/m-p/397644#M249933</guid>
      <dc:creator>satz</dc:creator>
      <dc:date>2024-11-18T13:47:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hive Database connection in nodejs</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Hive-Database-connection-in-nodejs/m-p/397669#M249941</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/27216"&gt;@satz&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;this is my code,Here I put log for both client and session variable.The client variable returns circular json response and session variable does not return anything.so please help me on this.&lt;/P&gt;&lt;P&gt;const hive = require('hive-driver');&lt;BR /&gt;const { TCLIService, TCLIService_types } = hive.thrift;&lt;BR /&gt;const client = new hive.HiveClient(&lt;BR /&gt;TCLIService,&lt;BR /&gt;TCLIService_types&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;client.connect(&lt;BR /&gt;{&lt;BR /&gt;host : "xxxxx" ,&lt;BR /&gt;port : "xxx",&lt;BR /&gt;database: "xxxx",&lt;BR /&gt;username :"xxxx",&lt;/P&gt;&lt;P&gt;password: "xxxxx",&lt;BR /&gt;},&lt;BR /&gt;new hive.connections.TcpConnection(),&lt;BR /&gt;new hive.auth.NoSaslAuthentication()&lt;BR /&gt;).then(async client =&amp;gt; {&lt;BR /&gt;console.log('client',client);&lt;BR /&gt;const session = await client.openSession({&lt;BR /&gt;client_protocol: TCLIService_types.TProtocolVersion.HIVE_CLI_SERVICE_PROTOCOL_V10&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;console.log('session',session);&lt;BR /&gt;const response = await session.getInfo(&lt;BR /&gt;TCLIService_types.TGetInfoType.CLI_DBMS_VER&lt;BR /&gt;);&lt;/P&gt;&lt;P&gt;console.log(response.getValue());&lt;/P&gt;&lt;P&gt;await session.close();&lt;BR /&gt;}).catch(error =&amp;gt; {&lt;BR /&gt;console.log(error);&lt;BR /&gt;});&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2024 05:37:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Hive-Database-connection-in-nodejs/m-p/397669#M249941</guid>
      <dc:creator>Arun0811</dc:creator>
      <dc:date>2024-11-19T05:37:44Z</dc:date>
    </item>
  </channel>
</rss>

