<?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>topic Re: Splunk DB Connect 1.1.6 with Hive jdbc: Why am I getting &amp;quot;command=&amp;quot;dbinfo&amp;quot;, Error getting database connection: Method not supported&amp;quot;? in All Apps and Add-ons</title>
    <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-1-1-6-with-Hive-jdbc-Why-am-I-getting-quot/m-p/154200#M72344</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;The 'read-only' option is not supported by Hive jdbc driver yet.&lt;BR /&gt;
To fix the issue you'll have to edit database.conf and set 'readonly = 0'.&lt;/P&gt;

&lt;P&gt;You can uncheck 'read-only' in the 'External Databases' configuration menu of DBConnect also.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
Stephane &lt;/P&gt;</description>
    <pubDate>Fri, 26 Dec 2014 12:55:46 GMT</pubDate>
    <dc:creator>slapie_splunk</dc:creator>
    <dc:date>2014-12-26T12:55:46Z</dc:date>
    <item>
      <title>Splunk DB Connect 1.1.6 with Hive jdbc: Why am I getting "command="dbinfo", Error getting database connection: Method not supported"?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-1-1-6-with-Hive-jdbc-Why-am-I-getting-quot/m-p/154199#M72343</link>
      <description>&lt;P&gt;Hi, &lt;/P&gt;

&lt;P&gt;I have Splunk 6.1.3 with Splunk DB Connect 1.1.6 (updated from 1.1.4). &lt;BR /&gt;
I'm getting an error when trying to use Splunk DB Connect with Hive jdbc (hiveserver2). &lt;BR /&gt;
When validating the "External Database", the request works fine. &lt;BR /&gt;
When trying to browse the database from App: Splunk DB Connect, I get the following error: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;command="dbinfo", Error getting database connection: Method not supported
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here are my configs: &lt;BR /&gt;
I added hiveserver2 jars in /dbx/bin/lib&lt;BR /&gt;
database_types.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[hive]
displayName = hive
jdbcDriverClass = org.apache.hive.jdbc.HiveDriver
defaultPort = 10000
connectionUrlFormat = jdbc:hive2://{0}:{1}/{2}
testQuery = select * from test_table
defaultSchema = default
defaultCatalogName = default
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;database.conf&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[hive]
database = default
host = host.name
isolation_level = DATABASE_SETTING
password = password
port = 10000
readonly = 1
type = hive
username = hive
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Here are the logs from Database validation: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2014-12-18 17:05:38.173 :DEBUG:BridgeSession - Starting BridgeSession...
2014-12-18 17:05:38.173 :DEBUG:LRUCache - Cache hit for key com.splunk.dbx.sql.validate.DatabaseValidator (no need to handleResult producer)
2014-12-18 17:05:38.173 dbx3272:DEBUG:ExecutionContext - Initializing execution context with app.ctx=dbx and execId=dbx3272
2014-12-18 17:05:38.173 dbx3272:INFO:BridgeSession - Executing Bridge command: BridgeExecutionInfo{className=com.splunk.dbx.sql.validate.DatabaseValidator}
2014-12-18 17:05:38.173 dbx3272:DEBUG:BridgeSession - Bridge commands arguments: 
 [isolation_level=DATABASE_SETTING, password=password, type=hive, host=host.name, arguments=, username=hive, validate=1, readonly=1, port=10000, database=database_name]
2014-12-18 17:05:38.174 dbx3272:DEBUG:Database - Validating database connection for database Database{name='database', databaseType=GenericDatabaseType{name='hive'}, host='host.name', port=10000, username='hive', database='database_name'}
2014-12-18 17:05:38.174 dbx3272:DEBUG:Database - Connecting to database database
…
2014-12-18 17:05:38.368 dbx3272:DEBUG:Database - Database validation successful
2014-12-18 17:05:38.369 dbx3272:INFO:BridgeSession - Execution finished in duration=196 ms with status=0
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Results from trying to display Hive database from Splunk DB Connect: &lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;2014-12-18 16:58:21.163 :DEBUG:BridgeSession - Starting BridgeSession...
2014-12-18 16:58:21.163 :DEBUG:LRUCache - Cache hit for key com.splunk.dbx.command.DatabaseInfoCommand (no need to handleResult producer)
2014-12-18 16:58:21.164 dbx1881:DEBUG:ExecutionContext - Initializing execution context with app.ctx=dbx and execId=dbx1881
2014-12-18 16:58:21.164 dbx1881:INFO:BridgeSession - Executing Bridge command: BridgeExecutionInfo{className=com.splunk.dbx.command.DatabaseInfoCommand}
2014-12-18 16:58:21.164 dbx1881:DEBUG:BridgeSession - Bridge commands arguments: [database=Hive, type=schemas]
2014-12-18 16:58:21.164 dbx1881:INFO:DatabaseInfoCommand - Fetching schemas for database=Hive
2014-12-18 16:58:21.164 dbx1881:DEBUG:Database - Fetching connection from factory...
2014-12-18 16:58:21.164 dbx1881:DEBUG:PooledConnectionFactory - Fetching connection from pool...
2014-12-18 16:58:21.164 dbx1881:DEBUG:PooledConnectionFactory - Creating database connection for database=Hive
2014-12-18 16:58:21.164 dbx1881:DEBUG:Database - Connecting to database Hive
…
2014-12-18 16:58:21.186 dbx1881:ERROR:DatabaseInfoCommand - Error while executing command: Error getting database connection: Method not supported
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;From Hive logs, the creation is working fine and the testQuery = select * from test_table returns without problem. The second case to display database starts "use database_name" fine and then stops when the error appears on Splunk side. &lt;/P&gt;

&lt;P&gt;HBase and Postgres connectors work fine. &lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2020 18:24:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-1-1-6-with-Hive-jdbc-Why-am-I-getting-quot/m-p/154199#M72343</guid>
      <dc:creator>DSigogne</dc:creator>
      <dc:date>2020-09-28T18:24:30Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 1.1.6 with Hive jdbc: Why am I getting "command="dbinfo", Error getting database connection: Method not supported"?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-1-1-6-with-Hive-jdbc-Why-am-I-getting-quot/m-p/154200#M72344</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;

&lt;P&gt;The 'read-only' option is not supported by Hive jdbc driver yet.&lt;BR /&gt;
To fix the issue you'll have to edit database.conf and set 'readonly = 0'.&lt;/P&gt;

&lt;P&gt;You can uncheck 'read-only' in the 'External Databases' configuration menu of DBConnect also.&lt;/P&gt;

&lt;P&gt;Cheers,&lt;BR /&gt;
Stephane &lt;/P&gt;</description>
      <pubDate>Fri, 26 Dec 2014 12:55:46 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-1-1-6-with-Hive-jdbc-Why-am-I-getting-quot/m-p/154200#M72344</guid>
      <dc:creator>slapie_splunk</dc:creator>
      <dc:date>2014-12-26T12:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Splunk DB Connect 1.1.6 with Hive jdbc: Why am I getting "command="dbinfo", Error getting database connection: Method not supported"?</title>
      <link>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-1-1-6-with-Hive-jdbc-Why-am-I-getting-quot/m-p/154201#M72345</link>
      <description>&lt;P&gt;Thanks Stephane, &lt;BR /&gt;
Hive jdbc is working now. &lt;/P&gt;</description>
      <pubDate>Mon, 05 Jan 2015 11:08:41 GMT</pubDate>
      <guid>https://community.splunk.com/t5/All-Apps-and-Add-ons/Splunk-DB-Connect-1-1-6-with-Hive-jdbc-Why-am-I-getting-quot/m-p/154201#M72345</guid>
      <dc:creator>DSigogne</dc:creator>
      <dc:date>2015-01-05T11:08:41Z</dc:date>
    </item>
  </channel>
</rss>

