Reply
Explorer
Posts: 9
Registered: ‎09-13-2017

HIVE UDF jar_ Error ST_Point _ GIS ESRI

[ Edited ]

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.

 

 

Announcements