Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

HIVE UDF jar_ Error ST_Point _ GIS ESRI

avatar
Contributor

Hi,

When I'm trying to create a geometric consultation with ST_Point.

 

add jar esri-geometry-api-1.1-sources.jar;
add jar esri-geometry-api-1.1.jar;
add jar spatial-sdk-hadoop.jar;
add jar spatial-sdk-hive.jar ;
add jar spatial-sdk-json.jar;

create temporary function ST_AsText as 'com.esri.hadoop.hive.ST_AsText';
create temporary function ST_Intersects as 'com.esri.hadoop.hive.ST_Intersects';
create temporary function ST_Length as 'com.esri.hadoop.hive.ST_Length';
create temporary function ST_LineString as 'com.esri.hadoop.hive.ST_LineString';
create temporary function ST_Point as 'com.esri.hadoop.hive.ST_Point';
create temporary function ST_Polygon as 'com.esri.hadoop.hive.ST_Polygon';
create temporary function ST_SetSRID as 'com.esri.hadoop.hive.ST_SetSRID';
create temporary function st_geomfromtext as 'com.esri.hadoop.hive.ST_GeomFromText';
create temporary function st_geometrytype as 'com.esri.hadoop.hive.ST_GeometryType';
create temporary function st_asjson as 'com.esri.hadoop.hive.ST_AsJson';
create temporary function st_asbinary as 'com.esri.hadoop.hive.ST_AsBinary';
create temporary function st_x as 'com.esri.hadoop.hive.ST_X';
create temporary function st_y as 'com.esri.hadoop.hive.ST_Y';
create temporary function st_srid as 'com.esri.hadoop.hive.ST_SRID';

 


SELECT ST_Point(longitude, latitude) from mytable LIMIT 1;

 

 

I get  the below error:

 

 

Caused by: org.apache.hadoop.hive.ql.exec.UDFArgumentException: Unable to instantiate UDF implementation class com.esri.hadoop.hive.ST_Point: java.lang.IllegalAccessException: Class org.apache.hadoop.hive.ql.udf.generic.GenericUDFBridge can not access a member of class com.esri.hadoop.hive.ST_Point with modifiers ""

 

 

Any ideas on this error?

 

Thanks.

 

 

1 ACCEPTED SOLUTION

avatar
Contributor

Solved.Problem with Sentry.

View solution in original post

2 REPLIES 2

avatar
Contributor

Solved.Problem with Sentry.

avatar
New Contributor

How did you solve the issue?

 

I am getting the same error.

 

Unable to instantiate UDF implementation class com.esri.hadoop.hive.ST_Point: java.lang.IllegalAccessException: Class org.apache.hadoop.hive.ql.udf.generic.GenericUDFBridge can not access a member of class com.esri.hadoop.hive.ST_Point with modifiers ""