Hi Jonathan,
I'm running the script pasted below with corresponding hostname, username and password.
CREATE REMOTE SOURCE HADOOP_SOURCE
ADAPTER "hadoop"
CONFIGURATION 'webhdfs.url=http://hostA:50070;webhcat.url=http://hostA:50111'
WITH CREDENTIAL TYPE 'PASSWORD' USING 'user=user_name;password=password';
This script is successfully executed and I'm able to see the HADOOP_SOURCE remote source created under Data Provisioning folder. This was not a problem.
But when I try to create a virtual function using below script, It is the one which is throwing some syntactical error which I'm not able to get over.
CREATE VIRTUAL FUNCTION HADOOP_CUST_UDF RETURNS TABLE
("id" integer, "f_name" varchar(255), "l_name" varchar(255), "age" integer, "profession" varchar(255))
CONFIGURATION
'datetime_format=yyyy-MM-dd HH:mm:ss;date_format=yyyy-MM-dd;time_format=HH:mm:ss;enable_remote_caching=true;cache_validity=3600;hdfs_location=/user/hive/warehouse/customer/custs'
AT HADOOP_SOURCE;
This throws an error saying :
Could not execute 'CREATE VIRTUAL FUNCTION HADOOP_CUST_UDF RETURNS TABLE ("id" integer, "f_name" varchar(255), ...'
SAP DBTech JDBC: [470]: invalid data source configuration: Invalid UDF Properties: line 4 col 1 (at pos 176)
I don't see anything incorrect in the script and I'm stuck at this point.
Please help
Regards
-Anil