<?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: How to setup to connect apache-hive-server with JDBC? in ThingWorx Developers</title>
    <link>https://community.ptc.com/t5/ThingWorx-Developers/How-to-setup-to-connect-apache-hive-server-with-JDBC/m-p/523103#M17901</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.thingworx.com/u1/9108"&gt;Nakam t&lt;/A&gt; Could you please send your "catalina.properties" file of tomcat?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 02 Dec 2015 09:15:53 GMT</pubDate>
    <dc:creator>maneeshr</dc:creator>
    <dc:date>2015-12-02T09:15:53Z</dc:date>
    <item>
      <title>How to setup to connect apache-hive-server with JDBC?</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/How-to-setup-to-connect-apache-hive-server-with-JDBC/m-p/523102#M17900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;Hi.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;I want to connect from thingworx to the apache-hive-server with JDBC. but, i'm run into probrem.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;connection-pool settings occured something wrong? &lt;SPAN style="font-size: 13.3333px;"&gt;Network is not wrong.(Other java native client is correct moving.)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;■&lt;/SPAN&gt;my settings&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="2015y11m30d_171015724.jpg" class="image-1 jive-image" src="https://www.ptcusercommunity.com/servlet/JiveServlet/downloadImage/95542/2015y11m30d_171015724.jpg" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;■&lt;/SPAN&gt;error message.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;IMG alt="2015y11m30d_171045989.jpg" class="image-2 jive-image" src="https://www.ptcusercommunity.com/servlet/JiveServlet/downloadImage/95543/2015y11m30d_171045989.jpg" /&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;■ApplicationLog:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;2015-11-30 16:11:18.328+0900 [L: ERROR] [O: c.t.w.BaseService] [I: ] [U: Administrator] [S: ] [T: http-nio-80-exec-7] [context: com.thingworx.webservices.context.HttpExecutionContext@11123240][message: Unable to Invoke Service SelectData on hiveConnection : Cannot get a connection, pool error Unable to validate object]&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;・ "&lt;SPAN style="font-size: 13.3333px;"&gt;Cannot get a connection, pool error Unable to validate object"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;-&amp;gt; "connectionValidationString" is wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;i tried to enter "select now()" and "select 1" and "select * from dual" ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;but still give same error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;■Added Libraries for Hive JDBC&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;slf4j-log4j12-1.5.11.jar&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;slf4j-api-1.5.11.jar&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;log4j-1.2.16.jar&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;libthrift-0.9.2.jar&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;httpcore-4.2.5.jar&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;httpclient-4.2.5.jar&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;hive-service-1.1.1.jar&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;hive-jdbc-1.1.1.jar&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;hive-common-1.1.1.jar&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;hive-cli-1.1.1.jar&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;hadoop-common-2.7.1.jar&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;guava-18.0.jar&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;commons-logging-1.1.3.jar&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;ThingWorx version is 5.4&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Please let me know how connect apache-hive-server.&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Nov 2015 08:40:31 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/How-to-setup-to-connect-apache-hive-server-with-JDBC/m-p/523102#M17900</guid>
      <dc:creator>nt</dc:creator>
      <dc:date>2015-11-30T08:40:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup to connect apache-hive-server with JDBC?</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/How-to-setup-to-connect-apache-hive-server-with-JDBC/m-p/523103#M17901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.thingworx.com/u1/9108"&gt;Nakam t&lt;/A&gt; Could you please send your "catalina.properties" file of tomcat?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Dec 2015 09:15:53 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/How-to-setup-to-connect-apache-hive-server-with-JDBC/m-p/523103#M17901</guid>
      <dc:creator>maneeshr</dc:creator>
      <dc:date>2015-12-02T09:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup to connect apache-hive-server with JDBC?</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/How-to-setup-to-connect-apache-hive-server-with-JDBC/m-p/523104#M17902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rao.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is all "catalina.properties" file of tomcat.&lt;/P&gt;&lt;P&gt;--catalina.properties (exclude comments)----------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;package.access=sun.,org.apache.catalina.,org.apache.coyote.,org.apache.jasper.,\&lt;/P&gt;&lt;P&gt;org.apache.naming.resources.,org.apache.tomcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;package.definition=sun.,java.,org.apache.catalina.,org.apache.coyote.,\&lt;/P&gt;&lt;P&gt;org.apache.jasper.,org.apache.naming.,org.apache.tomcat.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;common.loader=${catalina.base}/lib,${catalina.base}/lib/*.jar,${catalina.home}/lib,${catalina.home}/lib/*.jar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;server.loader=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;shared.loader=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tomcat.util.scan.DefaultJarScanner.jarsToSkip=\&lt;/P&gt;&lt;P&gt;bootstrap.jar,commons-daemon.jar,tomcat-juli.jar,\&lt;/P&gt;&lt;P&gt;annotations-api.jar,el-api.jar,jsp-api.jar,servlet-api.jar,websocket-api.jar,\&lt;/P&gt;&lt;P&gt;catalina.jar,catalina-ant.jar,catalina-ha.jar,catalina-tribes.jar,\&lt;/P&gt;&lt;P&gt;jasper.jar,jasper-el.jar,ecj-*.jar,\&lt;/P&gt;&lt;P&gt;tomcat-api.jar,tomcat-util.jar,tomcat-coyote.jar,tomcat-dbcp.jar,\&lt;/P&gt;&lt;P&gt;tomcat-jni.jar,tomcat-spdy.jar,\&lt;/P&gt;&lt;P&gt;tomcat-i18n-en.jar,tomcat-i18n-es.jar,tomcat-i18n-fr.jar,tomcat-i18n-ja.jar,\&lt;/P&gt;&lt;P&gt;tomcat-juli-adapters.jar,catalina-jmx-remote.jar,catalina-ws.jar,\&lt;/P&gt;&lt;P&gt;tomcat-jdbc.jar,\&lt;/P&gt;&lt;P&gt;tools.jar,\&lt;/P&gt;&lt;P&gt;commons-beanutils*.jar,commons-codec*.jar,commons-collections*.jar,\&lt;/P&gt;&lt;P&gt;commons-dbcp*.jar,commons-digester*.jar,commons-fileupload*.jar,\&lt;/P&gt;&lt;P&gt;commons-httpclient*.jar,commons-io*.jar,commons-lang*.jar,commons-logging*.jar,\&lt;/P&gt;&lt;P&gt;commons-math*.jar,commons-pool*.jar,\&lt;/P&gt;&lt;P&gt;jstl.jar,\&lt;/P&gt;&lt;P&gt;geronimo-spec-jaxrpc*.jar,wsdl4j*.jar,\&lt;/P&gt;&lt;P&gt;ant.jar,ant-junit*.jar,aspectj*.jar,jmx.jar,h2*.jar,hibernate*.jar,httpclient*.jar,\&lt;/P&gt;&lt;P&gt;jmx-tools.jar,jta*.jar,log4j.jar,log4j-1*.jar,mail*.jar,slf4j*.jar,\&lt;/P&gt;&lt;P&gt;xercesImpl.jar,xmlParserAPIs.jar,xml-apis.jar,\&lt;/P&gt;&lt;P&gt;junit.jar,junit-*.jar,hamcrest*.jar,org.hamcrest*.jar,ant-launcher.jar,\&lt;/P&gt;&lt;P&gt;cobertura-*.jar,asm-*.jar,dom4j-*.jar,icu4j-*.jar,jaxen-*.jar,jdom-*.jar,\&lt;/P&gt;&lt;P&gt;jetty-*.jar,oro-*.jar,servlet-api-*.jar,tagsoup-*.jar,xmlParserAPIs-*.jar,\&lt;/P&gt;&lt;P&gt;xom-*.jar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;org.apache.catalina.startup.ContextConfig.jarsToSkip=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;org.apache.catalina.startup.TldConfig.jarsToSkip=tomcat7-websocket.jar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;tomcat.util.buf.StringCache.byte.enabled=true&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nakam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Dec 2015 02:33:16 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/How-to-setup-to-connect-apache-hive-server-with-JDBC/m-p/523104#M17902</guid>
      <dc:creator>nt</dc:creator>
      <dc:date>2015-12-03T02:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to setup to connect apache-hive-server with JDBC?</title>
      <link>https://community.ptc.com/t5/ThingWorx-Developers/How-to-setup-to-connect-apache-hive-server-with-JDBC/m-p/523105#M17903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ThingWorx is to use method - "PreparedStatement.setQueryTimeout", but that is not supported on hive-jdbc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is more information log.&lt;/P&gt;&lt;P&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;PoolableConnectionFactory - Failed to validate a poolable connection&lt;/P&gt;&lt;P&gt;java.sql.SQLException: Method not supported&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.apache.hive.jdbc.HiveStatement.setQueryTimeout(HiveStatement.java:739)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.apache.commons.dbcp2.PoolableConnection.validate(PoolableConnection.java:234)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.apache.commons.dbcp2.PoolableConnectionFactory.validateConnection(PoolableConnectionFactory.java:303)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.apache.commons.dbcp2.PoolableConnectionFactory.validateObject(PoolableConnectionFactory.java:288)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:488)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.apache.commons.pool2.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:361)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at org.apache.commons.dbcp2.PoolingDataSource.getConnection(PoolingDataSource.java:102)&lt;/P&gt;&lt;P&gt;&amp;nbsp; at com.thingworx.things.database.QueryHandler.internalExecute(QueryHandler.java:51)&lt;/P&gt;&lt;P&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;org.apache.hive.jdbc.HiveStatement.setQueryTimeout&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;public void setQueryTimeout(int seconds) throws SQLException {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;throw new SQLException("Method not supported");&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your support!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Dec 2015 07:38:25 GMT</pubDate>
      <guid>https://community.ptc.com/t5/ThingWorx-Developers/How-to-setup-to-connect-apache-hive-server-with-JDBC/m-p/523105#M17903</guid>
      <dc:creator>nt</dc:creator>
      <dc:date>2015-12-18T07:38:25Z</dc:date>
    </item>
  </channel>
</rss>

