<?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 Re: getting failed to invoke @OnScheduled method while querydatabasetable processor in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/getting-failed-to-invoke-OnScheduled-method-while/m-p/220434#M72496</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/48584/adeelumer86.html" nodeid="48584" target="_blank"&gt;@Umer Umer&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;As per your logs&lt;/P&gt;&lt;PRE&gt;Caused by: java.sql.SQLException: [Teradata Database] [TeraJDBC 16.00.00.23] [Error 3807] [SQLState 42S02] Object 'DIM_PROD' does not exist.&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;dim_prod does not exist&lt;/STRONG&gt; make sure you are &lt;STRONG&gt;connecting to right database&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;In your &lt;STRONG&gt;JDBC connection string&lt;/STRONG&gt; in connection pool, if you have mentioned &lt;STRONG&gt;database name&lt;/STRONG&gt; then check the &lt;STRONG&gt;table dim_prod&lt;/STRONG&gt; &lt;STRONG&gt;exists&lt;/STRONG&gt; in that &lt;STRONG&gt;database&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Sample Teradata JDBC connection string:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="42979-teradata-connectionpool.png" style="width: 2008px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15881i9D978F505CEDD1DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="42979-teradata-connectionpool.png" alt="42979-teradata-connectionpool.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Make sure you are having the below jars in your nifi lib path.&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt; tdgssconfig.jar&lt;/LI&gt;&lt;LI&gt; teradata-connector-1.5.1-hadoop2.jar&lt;/LI&gt;&lt;LI&gt;terajdbc4.jar&lt;/LI&gt;&lt;LI&gt;hortonworks-teradata-connector-1.5.1.2.5.0.0-1245.jar&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Teradata Connection Pool Configs:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="42978-teradata-connectionpool.png" style="width: 1607px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15882i1CABD1D8E1CC9285/image-size/medium?v=v2&amp;amp;px=400" role="button" title="42978-teradata-connectionpool.png" alt="42978-teradata-connectionpool.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If above jars &lt;STRONG&gt;not in nifi lib&lt;/STRONG&gt; path then you need to give path to all those jars with comma separated list.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Database Driver Location(s)&lt;/TD&gt;&lt;TD&gt;Comma-separated list of files/folders and/or URLs containing the driver JAR and its dependencies (if any). For example '/var/tmp/mariadb-java-client-1.1.7.jar'&lt;BR /&gt;&lt;STRONG&gt;Supports Expression Language: true&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;For both cases &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Database Driver Class Name &lt;/STRONG&gt;property should be&lt;/P&gt;&lt;PRE&gt;com.teradata.jdbc.TeraDriver&lt;/PRE&gt;</description>
    <pubDate>Sun, 18 Aug 2019 02:28:03 GMT</pubDate>
    <dc:creator>Shu_ashu</dc:creator>
    <dc:date>2019-08-18T02:28:03Z</dc:date>
    <item>
      <title>getting failed to invoke @OnScheduled method while querydatabasetable processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/getting-failed-to-invoke-OnScheduled-method-while/m-p/220433#M72495</link>
      <description>&lt;P&gt;I am new to NIFI, and getting following error while I am trying to access Teradata database(production environment) using &lt;/P&gt;&lt;P&gt;querydatabasetable processor from Nifi. I have tried telnet command to teradata port 1025 from command line and its connecting.  &lt;/P&gt;&lt;P&gt;2017-12-07 17:00:11,753 ERROR [StandardProcessScheduler Thread-4] o.a.n.p.standard.QueryDatabaseTable QueryDatabaseTable[id=2f70c1e5-0160-1000-0000-0000077bf1a3] QueryDatabaseTable[id=2f70c1e5-0160-1000-0000-0000077bf1a3] failed to invoke @OnScheduled method due to java.lang.RuntimeException: Failed while executing one of processor's OnScheduled task.; processor will not be scheduled to run for 30 seconds: java.lang.RuntimeException: Failed while executing one of processor's OnScheduled task.&lt;BR /&gt;2017-12-07 17:00:11,761 ERROR [StandardProcessScheduler Thread-8] org.apache.nifi.engine.FlowEngine A flow controller task execution stopped abnormally&lt;BR /&gt;java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException&lt;BR /&gt;   at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:1.8.0_77]&lt;BR /&gt;   at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[na:1.8.0_77]&lt;BR /&gt;   at org.apache.nifi.engine.FlowEngine.afterExecute(FlowEngine.java:100) ~[na:na]&lt;BR /&gt;   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1150) [na:1.8.0_77]&lt;BR /&gt;   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_77]&lt;BR /&gt;   at java.lang.Thread.run(Thread.java:745) [na:1.8.0_77]&lt;BR /&gt;Caused by: java.lang.reflect.InvocationTargetException: null&lt;BR /&gt;   at sun.reflect.GeneratedMethodAccessor558.invoke(Unknown Source) ~[na:na]&lt;BR /&gt;   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_77]&lt;BR /&gt;   at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_77]&lt;BR /&gt;   at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:137) ~[na:na]&lt;BR /&gt;   at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:125) ~[na:na]&lt;BR /&gt;   at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotations(ReflectionUtils.java:70) ~[na:na]&lt;BR /&gt;   at org.apache.nifi.util.ReflectionUtils.invokeMethodsWithAnnotation(ReflectionUtils.java:47) ~[na:na]&lt;BR /&gt;   at org.apache.nifi.controller.StandardProcessorNode$1$1.call(StandardProcessorNode.java:1244) ~[na:na]&lt;BR /&gt;   at org.apache.nifi.controller.StandardProcessorNode$1$1.call(StandardProcessorNode.java:1240) ~[na:na]&lt;BR /&gt;   at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_77]&lt;BR /&gt;   at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) ~[na:1.8.0_77]&lt;BR /&gt;   at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) ~[na:1.8.0_77]&lt;BR /&gt;   at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_77]&lt;BR /&gt;   ... 2 common frames omitted&lt;BR /&gt;Caused by: org.apache.nifi.processor.exception.ProcessException: Unable to communicate with database in order to determine column types&lt;BR /&gt;   at org.apache.nifi.processors.standard.AbstractDatabaseFetchProcessor.setup(AbstractDatabaseFetchProcessor.java:189) ~[na:na]&lt;BR /&gt;   at org.apache.nifi.processors.standard.QueryDatabaseTable.setup(QueryDatabaseTable.java:164) ~[na:na]&lt;BR /&gt;   ... 15 common frames omitted&lt;BR /&gt;Caused by: java.sql.SQLException: [Teradata Database] [TeraJDBC 16.00.00.23] [Error 3807] [SQLState 42S02] Object 'DIM_PROD' does not exist.&lt;BR /&gt;   at com.teradata.jdbc.jdbc_4.util.ErrorFactory.makeDatabaseSQLException(ErrorFactory.java:309) ~[terajdbc4.jar:16.00.00.23]&lt;BR /&gt;   at com.teradata.jdbc.jdbc_4.statemachine.ReceiveInitSubState.action(ReceiveInitSubState.java:103) ~[terajdbc4.jar:16.00.00.23]&lt;BR /&gt;   at com.teradata.jdbc.jdbc_4.statemachine.StatementReceiveState.subStateMachine(StatementReceiveState.java:311) ~[terajdbc4.jar:16.00.00.23]&lt;BR /&gt;   at com.teradata.jdbc.jdbc_4.statemachine.StatementReceiveState.action(StatementReceiveState.java:200) ~[terajdbc4.jar:16.00.00.23]&lt;BR /&gt;   at com.teradata.jdbc.jdbc_4.statemachine.StatementController.runBody(StatementController.java:137) ~[terajdbc4.jar:16.00.00.23]&lt;BR /&gt;   at com.teradata.jdbc.jdbc_4.statemachine.StatementController.run(StatementController.java:128) ~[terajdbc4.jar:16.00.00.23]&lt;BR /&gt;   at com.teradata.jdbc.jdbc_4.TDStatement.executeStatement(TDStatement.java:389) ~[terajdbc4.jar:16.00.00.23]&lt;BR /&gt;   at com.teradata.jdbc.jdbc_4.TDStatement.executeStatement(TDStatement.java:331) ~[terajdbc4.jar:16.00.00.23]&lt;BR /&gt;   at com.teradata.jdbc.jdbc_4.TDStatement.doNonPrepExecuteQuery(TDStatement.java:319) ~[terajdbc4.jar:16.00.00.23]&lt;BR /&gt;   at com.teradata.jdbc.jdbc_4.TDStatement.executeQuery(TDStatement.java:1121) ~[terajdbc4.jar:16.00.00.23]&lt;BR /&gt;   at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208) ~[na:na]&lt;BR /&gt;   at org.apache.commons.dbcp.DelegatingStatement.executeQuery(DelegatingStatement.java:208) ~[na:na]&lt;BR /&gt;   at org.apache.nifi.processors.standard.AbstractDatabaseFetchProcessor.setup(AbstractDatabaseFetchProcessor.java:173) ~[na:na]&lt;BR /&gt;   ... 16 common frames omitted&lt;/P&gt;</description>
      <pubDate>Fri, 08 Dec 2017 15:12:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/getting-failed-to-invoke-OnScheduled-method-while/m-p/220433#M72495</guid>
      <dc:creator>adeelumer</dc:creator>
      <dc:date>2017-12-08T15:12:41Z</dc:date>
    </item>
    <item>
      <title>Re: getting failed to invoke @OnScheduled method while querydatabasetable processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/getting-failed-to-invoke-OnScheduled-method-while/m-p/220434#M72496</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/48584/adeelumer86.html" nodeid="48584" target="_blank"&gt;@Umer Umer&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;As per your logs&lt;/P&gt;&lt;PRE&gt;Caused by: java.sql.SQLException: [Teradata Database] [TeraJDBC 16.00.00.23] [Error 3807] [SQLState 42S02] Object 'DIM_PROD' does not exist.&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;dim_prod does not exist&lt;/STRONG&gt; make sure you are &lt;STRONG&gt;connecting to right database&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;In your &lt;STRONG&gt;JDBC connection string&lt;/STRONG&gt; in connection pool, if you have mentioned &lt;STRONG&gt;database name&lt;/STRONG&gt; then check the &lt;STRONG&gt;table dim_prod&lt;/STRONG&gt; &lt;STRONG&gt;exists&lt;/STRONG&gt; in that &lt;STRONG&gt;database&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Sample Teradata JDBC connection string:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="42979-teradata-connectionpool.png" style="width: 2008px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15881i9D978F505CEDD1DC/image-size/medium?v=v2&amp;amp;px=400" role="button" title="42979-teradata-connectionpool.png" alt="42979-teradata-connectionpool.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Make sure you are having the below jars in your nifi lib path.&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt; tdgssconfig.jar&lt;/LI&gt;&lt;LI&gt; teradata-connector-1.5.1-hadoop2.jar&lt;/LI&gt;&lt;LI&gt;terajdbc4.jar&lt;/LI&gt;&lt;LI&gt;hortonworks-teradata-connector-1.5.1.2.5.0.0-1245.jar&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;STRONG&gt;&lt;U&gt;Teradata Connection Pool Configs:-&lt;/U&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="42978-teradata-connectionpool.png" style="width: 1607px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15882i1CABD1D8E1CC9285/image-size/medium?v=v2&amp;amp;px=400" role="button" title="42978-teradata-connectionpool.png" alt="42978-teradata-connectionpool.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If above jars &lt;STRONG&gt;not in nifi lib&lt;/STRONG&gt; path then you need to give path to all those jars with comma separated list.&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Database Driver Location(s)&lt;/TD&gt;&lt;TD&gt;Comma-separated list of files/folders and/or URLs containing the driver JAR and its dependencies (if any). For example '/var/tmp/mariadb-java-client-1.1.7.jar'&lt;BR /&gt;&lt;STRONG&gt;Supports Expression Language: true&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;For both cases &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Database Driver Class Name &lt;/STRONG&gt;property should be&lt;/P&gt;&lt;PRE&gt;com.teradata.jdbc.TeraDriver&lt;/PRE&gt;</description>
      <pubDate>Sun, 18 Aug 2019 02:28:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/getting-failed-to-invoke-OnScheduled-method-while/m-p/220434#M72496</guid>
      <dc:creator>Shu_ashu</dc:creator>
      <dc:date>2019-08-18T02:28:03Z</dc:date>
    </item>
    <item>
      <title>Re: getting failed to invoke @OnScheduled method while querydatabasetable processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/getting-failed-to-invoke-OnScheduled-method-while/m-p/220435#M72497</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/18929/yaswanthmuppireddy.html" nodeid="18929"&gt;@Shu&lt;/A&gt;&lt;/P&gt;&lt;P&gt;thanks, I was missing "/database" in connection URL.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 13:55:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/getting-failed-to-invoke-OnScheduled-method-while/m-p/220435#M72497</guid>
      <dc:creator>adeelumer</dc:creator>
      <dc:date>2017-12-11T13:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: getting failed to invoke @OnScheduled method while querydatabasetable processor</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/getting-failed-to-invoke-OnScheduled-method-while/m-p/220436#M72498</link>
      <description>&lt;P&gt;Iam new to NIFI i want to sqoop the data from Mysql to Hive,and i am using  HDP 2.6,I have configured QueryDatabasetable Processor with DBCP and enable the same but when iam trying to start the processor i could see the below error.Please help me out. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="67540-capture.png" style="width: 1234px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15880i82E297D3E3487F49/image-size/medium?v=v2&amp;amp;px=400" role="button" title="67540-capture.png" alt="67540-capture.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6489i85E9D036A70EC289/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="1.png" title="1.png" /&gt;&lt;IMG src="https://community.cloudera.com/t5/image/serverpage/image-id/6490iBEFA6874C9CB8994/image-size/large?v=1.0&amp;amp;px=999" border="0" alt="2.png" title="2.png" /&gt;</description>
      <pubDate>Sun, 18 Aug 2019 02:27:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/getting-failed-to-invoke-OnScheduled-method-while/m-p/220436#M72498</guid>
      <dc:creator>sanduruamulya</dc:creator>
      <dc:date>2019-08-18T02:27:50Z</dc:date>
    </item>
  </channel>
</rss>

