Quantcast
Viewing all articles
Browse latest Browse all 6412

Hana Hadoop Integration

Hi,

 

I'm using hana box which is SPS 09 and I'm trying to integrate it to hadoop.

 

1. I created a remote source using the below script :

 

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';

 

The remote source was created successfully although when I double click on the remote source and try to open it

 

Image may be NSFW.
Clik here to view.
Error.jpg

 

I went ahead to create a Virtual UDF using the below syntax :

 

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.S;enable_remote_cache=true;remote_cache_validity=3600;hdfs_location=/user/hive/warehouse/customer/custs'

AT HADOOP_SOURCE;

 

The entire configuration is in single line. But still it is throwing error as

 

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)

 

Please help, Thanks in advance.

 

-Anil


Viewing all articles
Browse latest Browse all 6412

Trending Articles