Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Strange behavior when schema.url cannot be found #19

Open
cwsteinbach opened this issue May 15, 2012 · 2 comments
Open

Strange behavior when schema.url cannot be found #19

cwsteinbach opened this issue May 15, 2012 · 2 comments

Comments

@cwsteinbach
Copy link

hive>  CREATE TABLE test_avro
    >  ROW FORMAT SERDE
    >  'com.linkedin.haivvreo.AvroSerDe'
    >  WITH SERDEPROPERTIES (
    >    'schema.url'='hdfs://localhost:8020/user/training/test.avsc')
    >  STORED as INPUTFORMAT
    >  'com.linkedin.haivvreo.AvroContainerInputFormat'
    >  OUTPUTFORMAT
    >  'com.linkedin.haivvreo.AvroContainerOutputFormat';
OK
hive> describe test_avro;
OK
error_error_error_error_error_error_error   string  from deserializer
cannot_determine_schema string  from deserializer
check   string  from deserializer
schema  string  from deserializer
url string  from deserializer
and string  from deserializer
literal string  from deserializer
Time taken: 0.062 seconds
hive> drop table 'test_avro';
@jghoman
Copy link
Owner

jghoman commented May 15, 2012

yeah, that's expected. Back in Hive 7, it was expected that initialize would return successfully. Throwing an exception left the table in a state where you couldn't change the table (fix it via alter table). This was our way of saying something way wrong but leaving the table in a state where it could be fixed. In Hive 8, I believe the behavior was changed so the init could throw an exception correctly (I think I did that patch...), but Haivvreo hasn't been updated yet.

@jghoman
Copy link
Owner

jghoman commented Jun 2, 2012

@cwsteinbach Anything left to do here, or can I close this ticket?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants