Hi Tharindu, I tried this feature [1] with the instructions given [2], [3]. Note that I need to check only getCountry method. Below is the steps I have done
1. Created a data source called GEO_LOCATION_DATA and imported CSV files downloaded from given location in [2]. 2. Installed following features in DAS 3.1.0. - Analytics Spark Geolocation UDF - Analytics Spark scripts Common - Analytics Spark Useragent 3. Invoked the getCountry method from analytics console in DAS 3.1.0. But it returns an empty country in the console. What am I missing here? Or any hint to troubleshoot. According to the code, it searches for an entry in IP_LOCATION table. but we are not importing data to that table as specified in the doc? [1] https://github.com/wso2/shared-analytics/tree/v1.0.0/components/spark-udf/org.wso2.carbon.analytics.shared.geolocation.udf [2] https://docs.wso2.com/display/AM200/Configuring+Geolocation+Based+Statistics [3] http://blog.rukspot.com/2016/10/configure-wso2-das-310-for-wso2-apim.html Thanks, Lakshman. -- Lakshman Udayakantha WSO2 Inc. www.wso2.com lean.enterprise.middleware Mobile: *0717429601*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
