You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Venkat Atmuri (JIRA)" <ji...@apache.org> on 2018/03/19 15:55:00 UTC

[jira] [Updated] (HIVE-18014) HIVE UDF jar_ Error ST_Point _ GIS ESRI

     [ https://issues.apache.org/jira/browse/HIVE-18014?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Venkat Atmuri updated HIVE-18014:
---------------------------------
    Priority: Critical  (was: Major)

> HIVE UDF jar_    Error ST_Point _  GIS ESRI
> -------------------------------------------
>
>                 Key: HIVE-18014
>                 URL: https://issues.apache.org/jira/browse/HIVE-18014
>             Project: Hive
>          Issue Type: Bug
>         Environment: CDH-5.10.1 
> Hive 1.1.0
>            Reporter: Venkat Atmuri
>            Priority: Critical
>
> When I'm trying to create a geometric consultation with ST_Point :
> hive> add jar esri-geometry-api-1.1-sources.jar;
> Added [esri-geometry-api-1.1-sources.jar] to class path
> Added resources: [esri-geometry-api-1.1-sources.jar]
> hive> add jar esri-geometry-api-1.1.jar;
> Added [esri-geometry-api-1.1.jar] to class path
> Added resources: [esri-geometry-api-1.1.jar]
> hive> add jar spatial-sdk-hadoop.jar;
> Added [spatial-sdk-hadoop.jar] to class path
> Added resources: [spatial-sdk-hadoop.jar]
> hive> add jar spatial-sdk-hive.jar ;
> Added [spatial-sdk-hive.jar] to class path
> Added resources: [spatial-sdk-hive.jar]
> hive> add jar spatial-sdk-json.jar;
> Added [spatial-sdk-json.jar] to class path
> Added resources: [spatial-sdk-json.jar]
> hive>create temporary function ST_AsText as 'com.esri.hadoop.hive.ST_AsText';
> OK
> Time taken: 0.309 seconds
> hive> create temporary function ST_Intersects as 'com.esri.hadoop.hive.ST_Intersects';
> OK
> Time taken: 0.005 seconds
> hive> create temporary function ST_Length as 'com.esri.hadoop.hive.ST_Length';
> OK
> Time taken: 0.003 seconds
> hive> create temporary function ST_LineString as 'com.esri.hadoop.hive.ST_LineString';
> OK
> Time taken: 0.004 seconds
> hive> create temporary function ST_Point as 'com.esri.hadoop.hive.ST_Point';
> OK
> Time taken: 0.004 seconds
> hive> create temporary function ST_Polygon as 'com.esri.hadoop.hive.ST_Polygon';
> OK
> Time taken: 0.003 seconds
> hive> create temporary function ST_SetSRID as 'com.esri.hadoop.hive.ST_SetSRID';
> OK
> Time taken: 0.002 seconds
> hive> create temporary function st_geomfromtext as 'com.esri.hadoop.hive.ST_GeomFromText';
> OK
> Time taken: 0.002 seconds
> hive> create temporary function st_geometrytype as 'com.esri.hadoop.hive.ST_GeometryType';
> OK
> Time taken: 0.002 seconds
> hive> create temporary function st_asjson as 'com.esri.hadoop.hive.ST_AsJson';
> OK
> Time taken: 0.003 seconds
> hive> create temporary function st_asbinary as 'com.esri.hadoop.hive.ST_AsBinary';
> OK
> Time taken: 0.003 seconds
> hive> create temporary function st_x as 'com.esri.hadoop.hive.ST_X';
> OK
> Time taken: 0.003 seconds
> hive> create temporary function st_y as 'com.esri.hadoop.hive.ST_Y';
> OK
> Time taken: 0.002 seconds
> hive> create temporary function st_srid as 'com.esri.hadoop.hive.ST_SRID';
> OK
> Time taken: 0.004 seconds
> #Query
> hive>SELECT ST_Point(longitude, latitude) FROM testing_point 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 
> I've used different jars(Latest one and  Jar working fine on my own cluster). Error in my development cluster.
> Any ideas on this error?
> Thanks.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)