Skip to Content
author's profile photo Former Member
Former Member

Problem integrating SAP HANA with Hadoop in SPS09

Hi Experts,

I am facing issue while integrating SAP HANA with Hadoop system.

I am creating the Remote Source using the below code...

CREATE REMOTE SOURCE HADOOP_SOURCE

ADAPTER "hadoop"

CONFIGURATION 'webhdfs_url=http://host:9101;webhcat_url=http://host:50111'

WITH CREDENTIAL TYPE 'PASSWORD'

USING 'user=hduser;password=hdPass'

When we try to open the remote source we get this error.

Is there any thing wrong I am doing while creating remote source.

Created the User defined function "HADOOP_UDF" as shown below.

CREATE VIRTUAL FUNCTION HADOOP_UDF()
RETURNS TABLE
("code" VARCHAR(255), "description" VARCHAR(255), "total_emp" INTEGER, "salary" INTEGER )
CONFIGURATION
'datetime_format=yyyy-MM-dd HH:mm:ss;date_format=yyyy-mm-dd HH:mm:ss;time_format=HH:mm:ss;'
'enable_remote_caching=true;cache_validity=3600;hdfs_location=/user/hduser/samplefile'
AT HADOOP_SOURCE;

and tried to run the UDF in SQL, I get below error.

It says "message": "Permission Denied": user=hduser, access=WRITE

Do we need to have the same user in Hadoop system. Are there any permissions that I need to give to this user in Hadoop system.

Please help me what is that I did wrong in this process.

Thank you.

Best regards,

Ram

udf.png (21.3 kB)
Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 09, 2015 at 02:05 PM

    Hello Experts,

    Do we need to install any ODBC drivers to connect to the Hadoop system?

    Best regards,

    Ram

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.