Hi,

This is an ORC transactional table

Hive 2, Spark 1.6.1

hive> show create table payees;
OK
CREATE TABLE `payees`(
  `transactiondescription` string,
  `hits` int,
  `hashtag` string)
CLUSTERED BY (
  transactiondescription)
INTO 256 BUCKETS
ROW FORMAT SERDE
  'org.apache.hadoop.hive.ql.io.orc.OrcSerde'
STORED AS INPUTFORMAT
  'org.apache.hadoop.hive.ql.io.orc.OrcInputFormat'
OUTPUTFORMAT
  'org.apache.hadoop.hive.ql.io.orc.OrcOutputFormat'
LOCATION
  'hdfs://rhes564:9000/user/hive/warehouse/accounts.db/payees'
TBLPROPERTIES (
  'COLUMN_STATS_ACCURATE'='{\"BASIC_STATS\":\"true\"}',
  'numFiles'='887',
  'numRows'='620',
  'orc.compress'='ZLIB',
  'rawDataSize'='0',
  'totalSize'='844236',
  'transactional'='true',
  'transient_lastDdlTime'='1470085025')


With a number of delta files due to updates

drwxr-xr-x   - hduser supergroup          0 2016-07-31 17:50
/user/hive/warehouse/accounts.db/payees/.hive-staging_hive_2016-07-31_17-50-32_170_8812909383478460781-1
drwxr-xr-x   - hduser supergroup          0 2016-07-31 17:52
/user/hive/warehouse/accounts.db/payees/.hive-staging_hive_2016-07-31_17-52-07_293_1488464319826411209-1
drwxr-xr-x   - hduser supergroup          0 2016-07-31 17:53
/user/hive/warehouse/accounts.db/payees/.hive-staging_hive_2016-07-31_17-53-50_895_2719298331883820815-1
drwxr-xr-x   - hduser supergroup          0 2016-07-31 17:55
/user/hive/warehouse/accounts.db/payees/.hive-staging_hive_2016-07-31_17-55-05_534_3195777747078132526-1
drwxr-xr-x   - hduser supergroup          0 2016-07-31 20:26
/user/hive/warehouse/accounts.db/payees/.hive-staging_hive_2016-07-31_20-25-47_734_1633377491601926952-1
drwxr-xr-x   - hduser supergroup          0 2016-07-29 21:01
/user/hive/warehouse/accounts.db/payees/delta_0000099_0000099_0000
drwxr-xr-x   - hduser supergroup          0 2016-07-29 21:02
/user/hive/warehouse/accounts.db/payees/delta_0000100_0000100_0000
drwxr-xr-x   - hduser supergroup          0 2016-07-29 21:20
/user/hive/warehouse/accounts.db/payees/delta_0000101_0000101_0000

Spark fails reading this table. What options do I have here?


And interestingly Hive running on Spark engine and its works fine


Thanks


Dr Mich Talebzadeh



LinkedIn * 
https://www.linkedin.com/profile/view?id=AAEAAAAWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw
<https://www.linkedin.com/profile/view?id=AAEAAAAWh2gBxianrbJd6zP6AcPCCdOABUrV8Pw>*



http://talebzadehmich.wordpress.com


*Disclaimer:* Use it at your own risk. Any and all responsibility for any
loss, damage or destruction of data or any other property which may arise
from relying on this email's technical content is explicitly disclaimed.
The author will in no case be liable for any monetary damages arising from
such loss, damage or destruction.

Reply via email to