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

JSON dependencies update and Obsolete previously-deprecated classes #128

Merged
merged 6 commits into from
Oct 5, 2017

Conversation

randallwhitman
Copy link
Contributor

@randallwhitman randallwhitman commented Jul 12, 2017

Compatibility with Geometry v2.0 - #127
Bump version from 1.x to 2.0

@randallwhitman randallwhitman added this to the v2.0 milestone Jul 12, 2017
@randallwhitman
Copy link
Contributor Author

randallwhitman commented Jul 14, 2017

Java code can update, but Hive tables are stored with the InputFormat and SerDe - data persistence. Obsoleting old names probably needs be deferred.
Also, doc update had been deferred to pushing artifacts to Maven Central, which is stalled (#123).

@randallwhitman
Copy link
Contributor Author

Not sure if it is possible to ALTER TABLE so as to change the SerDe to the newer name. If so, then that would be a reasonable migration such that we can obsolete/remove the old names.

Else it is possible to define a second Hive table on the same data, without need to copy nor delete the data. Would such be reasonable for a migration for v1 to v2, versus better to log/print a warning but defer full obsolescence post-v2.

@randallwhitman
Copy link
Contributor Author

https://cwiki.apache.org/confluence/display/Hive/LanguageManual+DDL

ALTER TABLE table_name [PARTITION partition_spec] SET SERDE serde_class_name [WITH SERDEPROPERTIES serde_properties];

I'll try that out on some test data, and see whether that was recently added to hive versus already supported in all versions that are supported by Spatial Framework.

@randallwhitman
Copy link
Contributor Author

Confirmed I read successfully from a Hive table after altering InputFormat and SeDe with:
ALTER TABLE randall.counties SET FILEFORMAT INPUTFORMAT 'com.esri.json.hadoop.EnclosedEsriJsonInputFormat' OUTPUTFORMAT 'org.apache.hadoop.hive.ql.io.HiveIgnoreKeyTextOutputFormat' SERDE 'com.esri.hadoop.hive.serde.EsriJsonSerDe';

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

Successfully merging this pull request may close these issues.

None yet

1 participant