Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Sqoop >> mail # user >> QueryResult cannot be cast to org.apache.hadoop.io.WritableComparable


Copy link to this message
-
Re: QueryResult cannot be cast to org.apache.hadoop.io.WritableComparable
Hi sir,
sadly Sqoop imported SequenceFiles can't be directly consumed by Hive. Sqoop generates it's own writable whereas (I believe that) Hive is expecting class Text. I would suggest switching to Avro format - whereas Sqoop can't import avro files directly into Hive yet, imported files are at least consumable by Hive.

Jarcec

On Tue, Mar 04, 2014 at 10:45:20AM -0800, Something Something wrote:

 -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBAgAGBQJTHAR9AAoJEEk45sAabwqGVI4P/3wBLfo9KoosUxRzDgbaPrCI
+nDSD6Q57Q/upoJ4ahLoySDL+D4207eciLeO49a4dfVSEQVb/dQWhw+jD2POwvl6
dYHae9x20JY399nzYrhkQVoXefn0UpqZrNYl/uZtAIfIpD1C72congcxwxfoo+0H
wSrBE0dL8yWNBN80dZRAshl6w6txipS3tXmX5DDuJ8DXrYFuQKDra9PpyRLhy2QK
ixj1z1Qvu1qJRms61nBkYGD5CaJOPMGXpD7Ff1IwuUOxsNFVCrVCPpiGCXbl/WTA
sVdbbe46URTHTn2dvRRxRjguZxbBB7SZ3VJwmAROOd0xChQw6fUjcJ1FXdgG9WqC
RO0ripKKYmaqV5x1DMSGb9WEAjihxvDNhU7Op/XO9sWqMV+ZvT55mw5AuQRA9mjO
NyiBfvWEogmm7wYZuSydRNxWtmiDtpKi+dbc/X1f69UMAYmFK/oGpRrF1dMcWLGq
zRSxlWxTq7gLTlwIkMy7D5ubSMJcrIqh9gEKxD3lK5tFqg1YalprKBomB4lZKTvL
jUUQQHQSC4WSqwGHYW2UsAsobkk+3DGZHORm8gOYtEyLfTfw3q3M+mJmx42oCJKy
1ESRLLk4h0ID2JaOEQbbOr3zNUsw0qcI4j0fZIaPrN6WR/zQhtJHkZB4G81pYoDP
Eu7Yd+cpIhtzA1bx2qE0
=0p6c