Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

How do I define ESRI spatial Hive functions to be available across multiple sessions? What happens on Hive service restart?

avatar

How do I define ESRI spatial Hive functions to be available across multiple sessions? What happens on Hive service restart?

1 ACCEPTED SOLUTION

avatar
Super Guru

@sivakumar sudhakarannair girijakumari

If you want the function to be available globally, across multiple sessions, you need to create a permanent function,e.g.

create function ST_AsText as 'com.esri.hadoop.hive.ST_AsText';

You should issue "create function" statements via a global script. Assuming that you modified a function, in order to recreate it, you would need first to drop it. This script should be executed as part of Hive service start/restart such that functions will still be available.

drop function ST_AsText as 'com.esri.hadoop.hive.ST_AsText';

View solution in original post

1 REPLY 1

avatar
Super Guru

@sivakumar sudhakarannair girijakumari

If you want the function to be available globally, across multiple sessions, you need to create a permanent function,e.g.

create function ST_AsText as 'com.esri.hadoop.hive.ST_AsText';

You should issue "create function" statements via a global script. Assuming that you modified a function, in order to recreate it, you would need first to drop it. This script should be executed as part of Hive service start/restart such that functions will still be available.

drop function ST_AsText as 'com.esri.hadoop.hive.ST_AsText';