<?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: Error when i try to import a table from postgres to hive in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182833#M144999</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I create a sqoop job in workflow manager and works, now i try to execute this command and the job failed, you can help me ?&lt;/P&gt;&lt;PRE&gt;sqoop import --connect jdbc:postgresql://10.0.0.78:5433/cr4prd --username ambari --password xxxxxx --table tb_con_contatos --hive-database cr4prd --hive-import -m1&lt;/PRE&gt;</description>
    <pubDate>Tue, 07 Nov 2017 02:22:17 GMT</pubDate>
    <dc:creator>collamorelli</dc:creator>
    <dc:date>2017-11-07T02:22:17Z</dc:date>
    <item>
      <title>Error when i try to import a table from postgres to hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182823#M144989</link>
      <description>&lt;P&gt;When i try to execute a shell job with  sqoop or sqoop job in workflow manager i have a error:&lt;/P&gt;&lt;P&gt;I am try to import tables from postgres to hive&lt;/P&gt;&lt;PRE&gt;2017-11-06 13:58:46,622  WARN ShellActionExecutor:523 - SERVER[ambari.4linux.com.br] USER[admin] GROUP[-] TOKEN[] APP[Fluxo_BigDatinha] JOB[0000003-171106133302301-oozie-oozi-W] ACTION[0000003-171106133302301-oozie-oozi-W@Verifica_Sujeira_HDFS] Launcher ERROR, reason: Main class [org.apache.oozie.action.hadoop.ShellMain], exit code [1]&lt;/PRE&gt;&lt;P&gt;My Shell Script:&lt;/P&gt;&lt;PRE&gt;sqoop import --connect jdbc:postgresql://10.0.0.78:5433/cr4prd --username ambari --password xxxxxxx --table tb_con_contatos --target-dir /user/admin/teste2&lt;/PRE&gt;&lt;P&gt;My Cluster Configuration:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.cloudera.com/legacyfs/online/attachments/42475-screenshot-2017-11-6-ambari-bigdatinha.png" target="_blank"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="42475-screenshot-2017-11-6-ambari-bigdatinha.png" style="width: 761px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19114i5802BCC60988861D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="42475-screenshot-2017-11-6-ambari-bigdatinha.png" alt="42475-screenshot-2017-11-6-ambari-bigdatinha.png" /&gt;&lt;/span&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="42475-screenshot-2017-11-6-ambari-bigdatinha.png" style="width: 761px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19115i4CD025B08CEFA5F7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="42475-screenshot-2017-11-6-ambari-bigdatinha.png" alt="42475-screenshot-2017-11-6-ambari-bigdatinha.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am running in /user/admin/sqoop and inside this directory have a paste with lib:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="42476-screenshot-2017-11-6-ambari-bigdatinha1.png" style="width: 1264px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19116iAF3B5F21AA905D07/image-size/medium?v=v2&amp;amp;px=400" role="button" title="42476-screenshot-2017-11-6-ambari-bigdatinha1.png" alt="42476-screenshot-2017-11-6-ambari-bigdatinha1.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 08:48:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182823#M144989</guid>
      <dc:creator>collamorelli</dc:creator>
      <dc:date>2019-08-18T08:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Error when i try to import a table from postgres to hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182824#M144990</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/146214/error-when-i-try-to-import-a-table-from-postgres-t.html#"&gt;@Guilherme Colla&lt;/A&gt;&lt;/P&gt;&lt;P&gt;There are not much logging in the provided WARN message to identify the root cause of the issue.&lt;/P&gt;&lt;P&gt;But few things we can check like the Postgres JDBC Driver is jar  installed in Oozie sharelib or not? And Sqoop client is installed on all the nodes properly.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 00:17:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182824#M144990</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-07T00:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error when i try to import a table from postgres to hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182825#M144991</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418" target="_blank"&gt;@Jay Kumar SenSharma&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;my sharelib is:&lt;/P&gt;&lt;PRE&gt;oozie admin -oozie &lt;A href="http://ambari.4linux.com.br:11000/oozie" target="_blank" rel="nofollow noopener noreferrer"&gt;http://ambari.4linux.com.br:11000/oozie&lt;/A&gt; -shareliblist[Available ShareLib]
hive
distcp
mapreduce-streaming
spark
oozie
hcatalog
hive2
sqoop
pig
spark_orig&amp;lt;br&amp;gt;&lt;/PRE&gt;&lt;P&gt;but i have the postgres.jar inside sqoop folder&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="42477-screenshot-2017-11-6-ambari-bigdatinha2.png" style="width: 1232px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19113i3C35AEDA87E6A8E9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="42477-screenshot-2017-11-6-ambari-bigdatinha2.png" alt="42477-screenshot-2017-11-6-ambari-bigdatinha2.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 08:48:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182825#M144991</guid>
      <dc:creator>collamorelli</dc:creator>
      <dc:date>2019-08-18T08:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Error when i try to import a table from postgres to hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182826#M144992</link>
      <description>&lt;P&gt;When i try to execute anyone command with user oozie i have thist error:&lt;/P&gt;&lt;PRE&gt;ERROR sqoop.Sqoop: Got exception running Sqoop: java.lang.RuntimeException: Could not load db driver class: org.postgresql.Driver
java.lang.RuntimeException: Could not load db driver class: org.postgresql.Driver
    at org.apache.sqoop.manager.SqlManager.makeConnection(SqlManager.java:875)
    at org.apache.sqoop.manager.GenericJdbcManager.getConnection(GenericJdbcManager.java:52)
    at org.apache.sqoop.manager.SqlManager.execute(SqlManager.java:763)
    at org.apache.sqoop.manager.SqlManager.execute(SqlManager.java:786)
    at org.apache.sqoop.manager.SqlManager.getColumnInfoForRawQuery(SqlManager.java:289)
    at org.apache.sqoop.manager.SqlManager.getColumnTypesForRawQuery(SqlManager.java:260)
    at org.apache.sqoop.manager.SqlManager.getColumnTypes(SqlManager.java:246)
    at org.apache.sqoop.manager.ConnManager.getColumnTypes(ConnManager.java:328)
    at org.apache.sqoop.orm.ClassWriter.getColumnTypes(ClassWriter.java:1853)
    at org.apache.sqoop.orm.ClassWriter.generate(ClassWriter.java:1653)
    at org.apache.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:107)
    at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:488)
    at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:615)
    at org.apache.sqoop.Sqoop.run(Sqoop.java:147)
    at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:76)
    at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:183)
    at org.apache.sqoop.Sqoop.runTool(Sqoop.java:225)
    at org.apache.sqoop.Sqoop.runTool(Sqoop.java:234)
    at org.apache.sqoop.Sqoop.main(Sqoop.java:243)&lt;/PRE&gt;&lt;P&gt;But when i execute anyone command with root, the command finish with success.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 01:44:08 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182826#M144992</guid>
      <dc:creator>collamorelli</dc:creator>
      <dc:date>2017-11-07T01:44:08Z</dc:date>
    </item>
    <item>
      <title>Re: Error when i try to import a table from postgres to hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182827#M144993</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44499/collamorelli.html" nodeid="44499"&gt;@Guilherme Colla&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As mentioned earlier the symptoms indicates that you have not placed the Postgres SQL driver inside your  OOzie sharedlib.&lt;/P&gt;&lt;P&gt;can you please try that. May be you can try putting the Postgresql driver jar inside the &lt;STRONG&gt; "/user/oozie/share/lib/lib*/sqoop" &lt;/STRONG&gt; on hdfs.&lt;/P&gt;&lt;P&gt;Then check:&lt;/P&gt;&lt;PRE&gt;# hdfs fs -ls /user/oozie/share/lib/sqoop/&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 01:50:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182827#M144993</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-07T01:50:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error when i try to import a table from postgres to hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182828#M144994</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have the postgres jar inside te /user/oozie/share/lib/*/sqoop&lt;/P&gt;&lt;PRE&gt;hdfs dfs -ls /user/oozie/share/lib/*/sqoop | grep sql
-rw-r--r--   3 root  hdfs       1208 2017-11-01 13:54 /user/oozie/share/lib/lib_20171030154340/sqoop/db.hsqldb.properties
-rw-r--r--   3 root  hdfs       1081 2017-11-01 13:55 /user/oozie/share/lib/lib_20171030154340/sqoop/db.hsqldb.script
-rw-r--r--   3 oozie hdfs     643727 2017-10-30 15:46 /user/oozie/share/lib/lib_20171030154340/sqoop/hsqldb-1.8.0.7.jar
-rw-r--r--   3 root  hdfs     883898 2017-11-01 12:56 /user/oozie/share/lib/lib_20171030154340/sqoop/mysql-connector-java.jar
-rw-r--r--   3 root  hdfs     579785 2017-10-31 15:40 /user/oozie/share/lib/lib_20171030154340/sqoop/postgresql-9.2-1002.jdbc4.jar
-rw-r--r--   3 root  hdfs     446067 2017-11-06 16:01 /user/oozie/share/lib/lib_20171030154340/sqoop/postgresql-jdbc.jar

&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Nov 2017 01:59:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182828#M144994</guid>
      <dc:creator>collamorelli</dc:creator>
      <dc:date>2017-11-07T01:59:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error when i try to import a table from postgres to hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182829#M144995</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44499/collamorelli.html" nodeid="44499"&gt;@Guilherme Colla&lt;/A&gt;&lt;/P&gt;&lt;P&gt;After putting that Jar in the "/user/oozie/share/lib/lib_20171030154340/sqoop/postgresql-9.2-1002.jdbc4.jar&lt;STRONG&gt;" &lt;/STRONG&gt;location have you run the "&lt;STRONG&gt;sharelibupdate&lt;/STRONG&gt;" command after putting the Jar there?&lt;/P&gt;&lt;PRE&gt;# oozie admin -oozie &lt;A href="http://$HOSTNAME:11000/oozie" target="_blank"&gt;http://$HOSTNAME:11000/oozie&lt;/A&gt; -sharelibupdate &lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 02:07:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182829#M144995</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-07T02:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error when i try to import a table from postgres to hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182830#M144996</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt; &lt;/P&gt;&lt;P&gt;yes, after i put jar i run the sharelibupdate        &lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 02:08:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182830#M144996</guid>
      <dc:creator>collamorelli</dc:creator>
      <dc:date>2017-11-07T02:08:47Z</dc:date>
    </item>
    <item>
      <title>Re: Error when i try to import a table from postgres to hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182831#M144997</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44499/collamorelli.html" nodeid="44499"&gt;@Guilherme Colla&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you also check if your "job.properties" has included the lib?&lt;/P&gt;&lt;PRE&gt;oozie.action.sharelib.for.sqoop=hive,hcatalog,sqoop&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 02:10:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182831#M144997</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-07T02:10:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error when i try to import a table from postgres to hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182832#M144998</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;My "job.properties" hasn't included the lib, i put the lib and the job failed.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":disappointed_face:"&gt;😞&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 02:15:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182832#M144998</guid>
      <dc:creator>collamorelli</dc:creator>
      <dc:date>2017-11-07T02:15:03Z</dc:date>
    </item>
    <item>
      <title>Re: Error when i try to import a table from postgres to hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182833#M144999</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I create a sqoop job in workflow manager and works, now i try to execute this command and the job failed, you can help me ?&lt;/P&gt;&lt;PRE&gt;sqoop import --connect jdbc:postgresql://10.0.0.78:5433/cr4prd --username ambari --password xxxxxx --table tb_con_contatos --hive-database cr4prd --hive-import -m1&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Nov 2017 02:22:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182833#M144999</guid>
      <dc:creator>collamorelli</dc:creator>
      <dc:date>2017-11-07T02:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error when i try to import a table from postgres to hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182834#M145000</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44499/collamorelli.html" nodeid="44499"&gt;@Guilherme Colla&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please check on your HDFS where your "workflow.xml" is present, create "lib" directory there and put the postgresql jdbc driver jar  inside that directory (on HDFS). &lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44499/collamorelli.html" nodeid="44499"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 02:22:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182834#M145000</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-07T02:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: Error when i try to import a table from postgres to hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182835#M145001</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44499/collamorelli.html" nodeid="44499"&gt;@Guilherme Colla&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;sqoop import --connect jdbc:postgresql://10.0.0.78:5433/cr4prd --username ambari --password xxxxxx --table tb_con_contatos --hive-database cr4prd --hive-import -m1&lt;/PRE&gt;&lt;P&gt;If your above Standalone Sqoop  command is failing with the missing driver error then you will need to place your   postgresql jdbc driver inside the&lt;STRONG&gt; "/usr/hdp/current/sqoop-&lt;/STRONG&gt;&lt;STRONG&gt;client/lib/" &lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 02:25:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182835#M145001</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-07T02:25:15Z</dc:date>
    </item>
    <item>
      <title>Re: Error when i try to import a table from postgres to hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182836#M145002</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;In my path &lt;STRONG&gt;"/usr/hdp/current/sqoop-&lt;/STRONG&gt;&lt;STRONG&gt;client/lib/" &lt;/STRONG&gt;i hasn't the driver postgres, i put inside the path and run the job but the same failed.&lt;BR /&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 02:29:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182836#M145002</guid>
      <dc:creator>collamorelli</dc:creator>
      <dc:date>2017-11-07T02:29:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error when i try to import a table from postgres to hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182837#M145003</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44499/collamorelli.html" nodeid="44499"&gt;@Guilherme Colla&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I just tried the following command at my end and it seems to have worked with the following command set.&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;# cp /usr/lib/ambari-server/postgresql-9.3-1101-jdbc4.jar  /usr/hdp/current/sqoop-client/lib/&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;PRE&gt;# su -l sqoop -c "sqoop  import --connect jdbc:postgresql://amb25101.example.com:5432/ambari --username ambari --password bigdata --table hosts  --hive-database default --hive-table ambari_hosts_hive --hive-import -m 1 --target-dir /apps/hive/warehouse/ambari_hosts_hive.db/ambari_hosts_hive"&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Is your Postgressql Jar correct?    I mean is it corrupted by any chance?&lt;/P&gt;&lt;PRE&gt;# grep 'org.postgresql.Driver' /usr/lib/ambari-server/postgresql-9.3-1101-jdbc4.jar

Binary file /usr/lib/ambari-server/postgresql-9.3-1101-jdbc4.jar matche&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44499/collamorelli.html" nodeid="44499"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 07 Nov 2017 02:38:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182837#M145003</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-07T02:38:53Z</dc:date>
    </item>
    <item>
      <title>Re: Error when i try to import a table from postgres to hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182838#M145004</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418" target="_blank"&gt;@Jay Kumar SenSharma&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;All commands works fine, but when i try to execute a sqoop job in workflow manager i get a error]&lt;/P&gt;&lt;P&gt;My Job Configuration:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="42479-screenshot-2017-11-6-ambari-bigdatinha3.png" style="width: 759px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19110iBD3370CAE62F43B9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="42479-screenshot-2017-11-6-ambari-bigdatinha3.png" alt="42479-screenshot-2017-11-6-ambari-bigdatinha3.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="42480-screenshot-2017-11-6-ambari-bigdatinha4.png" style="width: 747px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19111i15DB649CF8DA9CF1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="42480-screenshot-2017-11-6-ambari-bigdatinha4.png" alt="42480-screenshot-2017-11-6-ambari-bigdatinha4.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="42481-screenshot-2017-11-6-ambari-bigdatinha5.png" style="width: 745px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19112i5F9358C3B8E4806F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="42481-screenshot-2017-11-6-ambari-bigdatinha5.png" alt="42481-screenshot-2017-11-6-ambari-bigdatinha5.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 08:48:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182838#M145004</guid>
      <dc:creator>collamorelli</dc:creator>
      <dc:date>2019-08-18T08:48:30Z</dc:date>
    </item>
    <item>
      <title>Re: Error when i try to import a table from postgres to hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182839#M145005</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I find this error in log&lt;/P&gt;&lt;PRE&gt;&lt;BR /&gt;2017-11-06 18:09:51,792 INFO [AsyncDispatcher event handler] org.apache.hadoop.mapreduce.v2.app.job.impl.JobImpl: Calling handler for JobFinishedEvent 
2017-11-06 18:09:51,792 INFO [AsyncDispatcher event handler] org.apache.hadoop.mapreduce.v2.app.job.impl.JobImpl: job_1509998820430_0003Job Transitioned from COMMITTING to SUCCEEDED
2017-11-06 18:09:51,796 INFO [Thread-68] org.apache.hadoop.mapreduce.v2.app.MRAppMaster: We are finishing cleanly so this is the last retry
2017-11-06 18:09:51,796 INFO [Thread-68] org.apache.hadoop.mapreduce.v2.app.MRAppMaster: Notify RMCommunicator isAMLastRetry: true
2017-11-06 18:09:51,796 INFO [Thread-68] org.apache.hadoop.mapreduce.v2.app.rm.RMCommunicator: RMCommunicator notified that shouldUnregistered is: true
2017-11-06 18:09:51,796 INFO [Thread-68] org.apache.hadoop.mapreduce.v2.app.MRAppMaster: Notify JHEH isAMLastRetry: true
2017-11-06 18:09:51,796 INFO [Thread-68] org.apache.hadoop.mapreduce.jobhistory.JobHistoryEventHandler: JobHistoryEventHandler notified that forceJobCompletion is true
2017-11-06 18:09:51,796 INFO [Thread-68] org.apache.hadoop.mapreduce.v2.app.MRAppMaster: Calling stop for all the services
2017-11-06 18:09:51,810 INFO [Thread-68] org.apache.hadoop.mapreduce.jobhistory.JobHistoryEventHandler: Stopping JobHistoryEventHandler. Size of the outstanding queue size is 0
2017-11-06 18:09:52,093 INFO [eventHandlingThread] org.apache.hadoop.mapreduce.jobhistory.JobHistoryEventHandler: Copying hdfs://ambari.4linux.com.br:8020/user/admin/.staging/job_1509998820430_0003/job_1509998820430_0003_1.jhist to hdfs://ambari.4linux.com.br:8020/mr-history/tmp/admin/job_1509998820430_0003-1509998963150-admin-oozie%3Alauncher%3AT%3Dsqoop%3AW%3DFluxo_BigDatinh-1509998991790-1-0-SUCCEEDED-default-1509998978047.jhist_tmp
2017-11-06 18:09:52,227 INFO [RMCommunicator Allocator] org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator: Before Scheduling: PendingReds:0 ScheduledMaps:0 ScheduledReds:0 AssignedMaps:1 AssignedReds:0 CompletedMaps:1 CompletedReds:0 ContAlloc:1 ContRel:0 HostLocal:0 RackLocal:0
2017-11-06 18:09:52,235 INFO [RMCommunicator Allocator] org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator: Received completed container container_e29_1509998820430_0003_01_000002
2017-11-06 18:09:52,235 INFO [RMCommunicator Allocator] org.apache.hadoop.mapreduce.v2.app.rm.RMContainerAllocator: After Scheduling: PendingReds:0 ScheduledMaps:0 ScheduledReds:0 AssignedMaps:0 AssignedReds:0 CompletedMaps:1 CompletedReds:0 ContAlloc:1 ContRel:0 HostLocal:0 RackLocal:0
2017-11-06 18:09:52,237 INFO [AsyncDispatcher event handler] org.apache.hadoop.mapreduce.v2.app.job.impl.TaskAttemptImpl: Diagnostics report from attempt_1509998820430_0003_m_000000_0: Container killed by the ApplicationMaster.
Container killed on request. Exit code is 143
Container exited with a non-zero exit code 143&lt;/PRE&gt;</description>
      <pubDate>Tue, 07 Nov 2017 04:15:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182839#M145005</guid>
      <dc:creator>collamorelli</dc:creator>
      <dc:date>2017-11-07T04:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error when i try to import a table from postgres to hive</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182840#M145006</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay Kumar SenSharma&lt;/A&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;I solved this problem as follows:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a sqoop job for extract data and load in HDFS&lt;/LI&gt;&lt;LI&gt;Using a hive job for execute a &lt;STRONG&gt;"load data inpath"&lt;/STRONG&gt; for load data inside hive&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Tue, 07 Nov 2017 07:39:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Error-when-i-try-to-import-a-table-from-postgres-to-hive/m-p/182840#M145006</guid>
      <dc:creator>collamorelli</dc:creator>
      <dc:date>2017-11-07T07:39:02Z</dc:date>
    </item>
  </channel>
</rss>

