<?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: Sqoop import from Sybase to Hive failing when the complete table name is given in the import statement in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-from-Sybase-to-Hive-failing-when-the-complete/m-p/97156#M10635</link>
    <description>&lt;P&gt;Have you tried using the --query option directly and specifying the Sybase query to fetch data?&lt;/P&gt;&lt;PRE&gt;--query "select * from trim_bw..account where \$CONDITIONS"
&lt;/PRE&gt;</description>
    <pubDate>Wed, 18 Nov 2015 05:28:07 GMT</pubDate>
    <dc:creator>deepesh1</dc:creator>
    <dc:date>2015-11-18T05:28:07Z</dc:date>
    <item>
      <title>Sqoop import from Sybase to Hive failing when the complete table name is given in the import statement</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-from-Sybase-to-Hive-failing-when-the-complete/m-p/97155#M10634</link>
      <description>&lt;P&gt;Trying to import table data from Sybase table to Hive using the below command:&lt;/P&gt;&lt;PRE&gt; sqoop import --verbose  --driver com.sybase.jdbc4.jdbc.SybDriver --connect jdbc:sybase:Tds:dbgbl-tst:8032/DATABASE=trim_bw --username hrongali -P --table trim_bw..account --hive-database trim_bw --hive-table account --hive-import -m 1&lt;/PRE&gt;&lt;P&gt;Sqoop is generating the below alias(&lt;STRONG&gt;AS trim_bw..account&lt;/STRONG&gt;) which is failing to execute in Sybase and the below exception is thrown:&lt;/P&gt;&lt;PRE&gt;2015-11-17 14:29:48,511 INFO [main] org.apache.sqoop.mapreduce.db.DBRecordReader: Executing query: SELECT col_1, col_2, col_3, col_4 FROM trim_bw..account AS trim_bw..account WHERE ( 1=1 ) AND ( 1=1 )
2015-11-17 14:29:48,514 ERROR [main] org.apache.sqoop.mapreduce.db.DBRecordReader: Top level exception: 
com.sybase.jdbc4.jdbc.SybSQLException: Incorrect syntax near '.'.

	at com.sybase.jdbc4.tds.Tds.processEed(Tds.java:4084)
	at com.sybase.jdbc4.tds.Tds.nextResult(Tds.java:3174)
	at com.sybase.jdbc4.tds.Tds.getResultSetResult(Tds.java:3940)
	at com.sybase.jdbc4.tds.TdsCursor.open(TdsCursor.java:328)
	at com.sybase.jdbc4.jdbc.SybStatement.executeQuery(SybStatement.java:2370)
	at com.sybase.jdbc4.jdbc.SybPreparedStatement.executeQuery(SybPreparedStatement.java:264)
	at org.apache.sqoop.mapreduce.db.DBRecordReader.executeQuery(DBRecordReader.java:111)
	at org.apache.sqoop.mapreduce.db.DBRecordReader.nextKeyValue(DBRecordReader.java:235)
&lt;/PRE&gt;&lt;P&gt;Note: Tried with out giving the database name in the --table parameter, but the table object is not being recognized with that convention&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 03:46:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-from-Sybase-to-Hive-failing-when-the-complete/m-p/97155#M10634</guid>
      <dc:creator>hrongali</dc:creator>
      <dc:date>2015-11-18T03:46:51Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop import from Sybase to Hive failing when the complete table name is given in the import statement</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-from-Sybase-to-Hive-failing-when-the-complete/m-p/97156#M10635</link>
      <description>&lt;P&gt;Have you tried using the --query option directly and specifying the Sybase query to fetch data?&lt;/P&gt;&lt;PRE&gt;--query "select * from trim_bw..account where \$CONDITIONS"
&lt;/PRE&gt;</description>
      <pubDate>Wed, 18 Nov 2015 05:28:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-from-Sybase-to-Hive-failing-when-the-complete/m-p/97156#M10635</guid>
      <dc:creator>deepesh1</dc:creator>
      <dc:date>2015-11-18T05:28:07Z</dc:date>
    </item>
    <item>
      <title>Re: Sqoop import from Sybase to Hive failing when the complete table name is given in the import statement</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-from-Sybase-to-Hive-failing-when-the-complete/m-p/97157#M10636</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/267/hrongali.html" nodeid="267"&gt;@hrongali&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I am following stackoverflow link. Can you try this?&lt;/P&gt;&lt;P&gt;sqoop import --verbose  --driver com.sybase.jdbc4.jdbc.SybDriver --connect jdbc:sybase:Tds:dbgbl-tst:8032/DATABASE=trim_bw --query "select * from trim_bw..account where \$CONDITIONS" --fields-terminated-by ',' --username hrongali -P  --hive-database trim_bw --hive-table account --hive-import -m 1&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2015 08:47:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Sqoop-import-from-Sybase-to-Hive-failing-when-the-complete/m-p/97157#M10636</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-11-18T08:47:53Z</dc:date>
    </item>
  </channel>
</rss>

